Setting Server Name In Trace

Jul 18, 2002

I am working with 3 sql 7.0 servers (Servers A, B, C) and am trying to create a trace via profiler to run against server B.

Every trace that I create keeps pointing to server A even though I have server B defined in the properties of the trace - (when I edit the trace properties it REALLY does show server B). I have server B defined in the screen where you 'Select the SQL Server to run the trace on'. I even used the wizard to run one of the canned traces and it still points to server A. Every trace I set up runs against server A. Can anyone think of what the heck I'm doin' wrong? Is is a configuration setting somewhere?

View 1 Replies


ADVERTISEMENT

Setting Trace Flag

Jun 24, 2007

In order to use Microsoft Dynamics NAV with the SQL Server 2005, I need to set Trace Flag 4616, and I know it's a setting somwhere, where I can add this flag no. -but I can't remember where? Please help?

View 1 Replies View Related

Setting Up Continuous Trace File

Jan 29, 2002

Does anyone know exactly how to create a trace that runs continuously on a server and writes the data to a table? Now I know how to create a trace file with the profiler, but I want something set up so that I don't have to have the profiler running on the server all the time. As well as soemthing that will restart itself if the server is rebooted. I have been looking at these x(xp_trace.*) procedures. Is this the way to do it?

I have to trap login information in a table and have a scheduled job that runs once a month and look for specific data in the table and send out e-mails based on certain values.

I have written the procedure which does this I just need to know how to set up the trace so it runs in the background continuously.

Can anyone help?

Thanks............

View 1 Replies View Related

Setting Duration Druing SQL 2k Profiler Trace

Dec 9, 2004

I've set the Duration of my trace to "Greater than or Equal to: 1000". However when I start my trace the Duration column is now empty. Prior to the setting, there were values showing in this column. Any ideas on how to fix this?

View 1 Replies View Related

How Can Trace SQL Server

Jun 9, 2008

How can trace SQL server without SQL profiler?

View 5 Replies View Related

Server-Side Trace

Jan 29, 2008


I have created a server-side procedure which captures evenst for audit purposes and save to a file onto the SQL Server. This procedure has been defined as an autoload so that when the server is restarted, this procedure automatically loads.

However, there is a fundemental flaw with this routine. When the procedure attempts to execute, it will abort due to the fact that the trace file already exists.

I have two choices:-

1. When the procedure restarts, append to existing file or
2. Make a folder which comprise of today's day ie 20080128 and move trace file/s to this folder.

Option 2 is preferred.

How can I make this achievable?

Please note I'm using SQL Server 2005.

Ken

Below is a sample of my Code


-- Create a Queue
-- Declare Control Variable
declare @ReturnCode int
declare @Rc int
-- Declare Option Variable
declare @TraceID int
declare @maxfilesize bigint
declare @ColumnId int
declare @LogicalOperator int
declare @ComparisonOperator int
declare @Value int
declare @Option int
declare @on bit
declare @Event int
-- Set Option Variables
set @maxfilesize = 100 -- Maximum file size in megabytes
set @Option = 6 -- TraceFileRollOver and ShutdownOnError
set @on = 1 -- True
set @ReturnCode = 0 -- No Error
exec @Rc = sp_trace_create @TraceID output, @Option, N'\Server_named$SQLTraceActivity', @maxfilesize, NULL
select @ReturnCode=@@Error
if @ReturnCode <> 0
Begin
if @ReturnCode = 1
Print 'Error 1 - Unknown error.'
if @ReturnCode = 10
Print 'Error 10 - Invalid options. Returned when options specified are incompatible.'
if @ReturnCode = 12
Print 'Error 12 - Cannot create tracefile - check if file already exists, or this trace already running'
if @ReturnCode = 13
Print 'Error 13 - Out of memory. Returned when there is not enough memory to perform the specified action.'
if @ReturnCode = 14
Print 'Error 14 - Invalid stop time. Returned when the stop time specified has already happened.'
if @ReturnCode = 15
Print 'Error 15 - Invalid parameters. Returned when the user supplied incompatible parameters.'
else
Print 'Unexpected and Unknown error In creating trace - Please review'
Goto ErrorHandler
End
-- Set Events
-- Trace NTDomainName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 7, @on
-- Trace HostName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 8, @on
-- Trace IndexID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 24, @on
-- Trace RequestID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 56, @on
-- Trace SessionLoginName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 64, @on
-- Trace ClientProccessID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 9, @on
-- Trace IntegerData for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 25, @on
-- Trace LogionSid for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 41, @on
-- Trace RequestID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 49, @on
-- Trace NTUserName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 6, @on
-- Trace ApplicationName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 10, @on
-- Trace StartTime for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 14, @on
-- Trace ObjectID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 22, @on
-- Trace ServerName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 26, @on
-- Trace ObjectName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 34, @on
-- Trace XactSequence for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 50, @on
-- Trace DatabaseID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 3, @on
-- Trace LoginName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 11, @on
-- Trace NTDomainName for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 35, @on
-- Trace EventSequence for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 51, @on
-- Trace TransactionID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 4, @on
-- Trace SPID for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 12, @on
-- Trace ObjectType for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 28, @on
-- Trace IsSystem for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 60, @on
-- Trace EventSubClass for Object:Altered event
exec sp_trace_setevent @TraceID, 164, 21, @on

View 16 Replies View Related

Server-Side Trace

Jan 28, 2008



I have created a server-side procedure which captures evenst for audit purposes and save to a file onto the SQL Server. This procedure has been defined as an autoload so that when the server is restarted, this procedure automatically loads.



However, there is a fundemental flaw with this routine. When the procedure attempts to execute, it will abort due to the fact that the trace file already exists.



I have two choices:-



1. When the procedure restarts, append to existing file or

2. Make a folder which comprise of today's day ie 20080128 and move trace file/s to this folder.



Option 2 is preferred.



How can I make this achievable?



Please note I'm using SQL Server 2005.



Ken



Below is a sample of my Code





-- Create a Queue

-- Declare Control Variable

declare @ReturnCode int

declare @Rc int

-- Declare Option Variable

declare @TraceID int

declare @maxfilesize bigint

declare @ColumnId int

declare @LogicalOperator int

declare @ComparisonOperator int

declare @Value int

declare @Option int

declare @on bit

declare @Event int

-- Set Option Variables

set @maxfilesize = 100 -- Maximum file size in megabytes

set @Option = 6 -- TraceFileRollOver and ShutdownOnError

set @on = 1 -- True

set @ReturnCode = 0 -- No Error

exec @Rc = sp_trace_create @TraceID output, @Option, N'\Server_named$SQLTraceActivity', @maxfilesize, NULL

select @ReturnCode=@@Error

if @ReturnCode <> 0

Begin

if @ReturnCode = 1

Print 'Error 1 - Unknown error.'

if @ReturnCode = 10

Print 'Error 10 - Invalid options. Returned when options specified are incompatible.'

if @ReturnCode = 12

Print 'Error 12 - Cannot create tracefile - check if file already exists, or this trace already running'

if @ReturnCode = 13

Print 'Error 13 - Out of memory. Returned when there is not enough memory to perform the specified action.'

if @ReturnCode = 14

Print 'Error 14 - Invalid stop time. Returned when the stop time specified has already happened.'

if @ReturnCode = 15

Print 'Error 15 - Invalid parameters. Returned when the user supplied incompatible parameters.'

else

Print 'Unexpected and Unknown error In creating trace - Please review'

Goto ErrorHandler

End

-- Set Events

-- Trace NTDomainName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 7, @on

-- Trace HostName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 8, @on

-- Trace IndexID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 24, @on

-- Trace RequestID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 56, @on

-- Trace SessionLoginName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 64, @on

-- Trace ClientProccessID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 9, @on

-- Trace IntegerData for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 25, @on

-- Trace LogionSid for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 41, @on

-- Trace RequestID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 49, @on

-- Trace NTUserName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 6, @on

-- Trace ApplicationName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 10, @on

-- Trace StartTime for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 14, @on

-- Trace ObjectID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 22, @on

-- Trace ServerName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 26, @on

-- Trace ObjectName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 34, @on

-- Trace XactSequence for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 50, @on

-- Trace DatabaseID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 3, @on

-- Trace LoginName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 11, @on

-- Trace NTDomainName for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 35, @on

-- Trace EventSequence for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 51, @on

-- Trace TransactionID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 4, @on

-- Trace SPID for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 12, @on

-- Trace ObjectType for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 28, @on

-- Trace IsSystem for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 60, @on

-- Trace EventSubClass for Object:Altered event

exec sp_trace_setevent @TraceID, 164, 21, @on

View 7 Replies View Related

SQL Server 2008 :: Audit Trace Enabled And Server Not Starting

Aug 12, 2014

I restarted the sql server after c2 audit was enabled and now i can not start the instance getting this error below. how do i bring the sql server up?

Cannot start C2 audit trace. SQL Server is shutting down. Error = 0x80070003(The system cannot find the path specified.)

View 2 Replies View Related

How To Trace Modification On SQL Server 2005

Mar 6, 2008

Hello ;Can any one point me how to trace any modification made on a certain tabeles with in any data base?what i mean is if i have table "a" and i add updated some rows with it ... is there a way to figure iut the old data and the new data?simply i can create another table "history_on_a" which will be filled by a trigger when any updates happen ...this solution will consume my hard disk so is ther a built in funtion with sql ?so if any one can tell me what to search for or any idea 

View 1 Replies View Related

SQL Server Stored Procedure Trace

Jan 18, 2006

Hello,
I am using a component (infragistics netadvantage) within my application which uses a default database.  Unfortunately this database doesn't provide me with all the functionality I need. Since the component uses stored procedures.
Is there anyway I can see what stored procedures are called when an event occurs?
That way I can copy over the tables and the stored procedures I need and I can alter them to suit my database.

View 3 Replies View Related

Urgent >>>Want To Trace The Each Activity Of Sql Server

Jul 9, 2001

Hi,
sir, i have used Trace But it does not start automaticaly when server starts, is there any other way to track the Events, Because i have to track all the updates (Insert,Delete, UPdate etc.) of all the tables of my particuylar database .

Pls Help ME.

Atul

View 1 Replies View Related

Have Trace Flags Changed In SQL Server 7?

Dec 14, 1998

Have Trace Flags changed in SQL Server 7?
I need to use T204 because of getting error:

'ORDER BY items must appear in the select list if SELECT DISTINCT IS USED'
when I try to compile stor proc.

I entered T204 as startup parameter and restarted server
but doesn't seem to work.

Any experience with that?
Thanks

View 1 Replies View Related

The Server Trace In Query Analyzer

Aug 2, 2006

Hi,

When looking in the server trace in query analyzer – I can see how many ‘reads’ a stored procedure does.
So I'm wondering if we can determine whether our query is good or bad by looking at the number of reads/writes that showing in the Trace.

Thanks in advance

View 1 Replies View Related

The Server Trace In Query Analyzer

Aug 2, 2006

Hi,

When looking in the server trace in query analyzer – I can see how many ‘reads’ a stored procedure does.
So I'm wondering if we can determine whether our query is good or bad by looking at the number of reads/writes that showing in the Trace.

Thanks in advance

View 3 Replies View Related

How Use The Show Server Trace Option.

May 26, 2008

Sir

How to used Show Server Trace option.
Where I got this option in SQL server .
Pls Help me .

Yaman

View 3 Replies View Related

Server-Side Trace Enhancements

Feb 7, 2008


I have decided that I needed to modify my trace file name to include date and time in a further attempt to make my file name unique. See below snippet:-


-- Build File Name

select @hr = datepart(hh,getdate())

select @min = datepart(mi,getdate())

select @sec = datepart(ss,getdate())

set @time = convert(char(2),@hr) + convert(char(2),@min) + convert(char(2),@sec)

set @filedate = CONVERT(char(8),getdate(),112)

If @Hr = '12'

set @filename = @path + 'Activity_' + @filedate

Else

set @filename = @path + 'Activity_' + @filedate + '_' + @time

End


This works in part. However, when the time has a zero in it, the program will substitue the zero with a blank.

Can someone suggest a better method

View 3 Replies View Related

SQL Server 2008 :: Server Is Not Responding - Default Trace

May 30, 2015

We are using sql server 2008r2 standard edition.

We have replication set up. Publisher and distributor are on the same server, subscriber is in different server.

Suddenly the replication started failing and continued more than 12 hrs. When I tried to connect to the subscriber server, I am able to connect to the server but not able to run any queries or not able to open the error log from SSMS.

Is there any way to find from the default trace why the replication failed and the server is not responded?

What columns do I need to query from the trace?

View 5 Replies View Related

[SQL Server 2000] How To Interpret Server Trace / How To Get More Details?

Apr 4, 2007

Hello all,

An application that i wrote (that interacts with SQL Server 2000) is causing deadlocks on the server. i have no direct access to the server, but the user have sent me a server trace.

The relevant part of the trace is:




Code Snippet



2007-04-04 11:29:13.01 spid4 End deadlock search 296 ... a deadlock was found.
2007-04-04 11:29:13.01 spid4
2007-04-04 11:29:13.01 spid4 ResType:LockOwner Stype:'OR' Mode: S SPID:116 ECID:0 Ec:(0xC62A54F8) Value:0x80
2007-04-04 11:29:13.01 spid4 Victim Resource Owner:
2007-04-04 11:29:13.01 spid4 ResType:LockOwner Stype:'OR' Mode: IX SPID:122 ECID:0 Ec:(0xC61DF4F8) Value:0xa
2007-04-04 11:29:13.01 spid4 Requested By:
2007-04-04 11:29:13.01 spid4 Input Buf: RPC Event: sp_execute;1
2007-04-04 11:29:13.01 spid4 SPID: 116 ECID: 0 Statement Type: UPDATE Line #: 1
2007-04-04 11:29:13.01 spid4 Owner:0x8849cba0 Mode: X Flg:0x0 Ref:2 Life:02000000 SPID:116 ECID:0
2007-04-04 11:29:13.01 spid4 Grant List 0::
2007-04-04 11:29:13.01 spid4 PAG: 12:1:42176 CleanCnt:2 Mode: X Flags: 0x2
2007-04-04 11:29:13.01 spid4 Node:2
2007-04-04 11:29:13.01 spid4
2007-04-04 11:29:13.01 spid4 ResType:LockOwner Stype:'OR' Mode: S SPID:116 ECID:0 Ec:(0xC62A54F8) Value:0x80
2007-04-04 11:29:13.01 spid4 Requested By:
2007-04-04 11:29:13.01 spid4 Input Buf: RPC Event: sp_execute;1
2007-04-04 11:29:13.01 spid4 SPID: 122 ECID: 0 Statement Type: INSERT Line #: 1
2007-04-04 11:29:13.01 spid4 Owner:0x800936e0 Mode: IX Flg:0x0 Ref:0 Life:02000000 SPID:122 ECID:0
2007-04-04 11:29:13.01 spid4 Grant List 2::
2007-04-04 11:29:13.01 spid4 PAG: 12:1:42157 CleanCnt:2 Mode: IX Flags: 0x0
2007-04-04 11:29:13.01 spid4 Node:1
2007-04-04 11:29:13.01 spid4
2007-04-04 11:29:13.01 spid4 Wait-for graph
2007-04-04 11:29:13.01 spid4
2007-04-04 11:29:13.01 spid4 ...
2007-04-04 11:29:13.01 spid4
2007-04-04 11:29:13.01 spid4 Cycle: ResType:LockOwner Stype:'OR' Mode: S SPID:116 ECID:0 Ec:(0xC62A54F8) Va
2007-04-04 11:29:13.01 spid4 Node:2 ResType:LockOwner Stype:'OR' Mode: IX SPID:122 ECID:0 Ec:(0xC61DF4F8) V
2007-04-04 11:29:13.01 spid4 Node:1 ResType:LockOwner Stype:'OR' Mode: S SPID:116 ECID:0 Ec:(0xC62A54F8) Va
2007-04-04 11:29:13.01 spid4 Deadlock cycle was encountered .... verifying cycle
2007-04-04 11:29:13.01 spid4
2007-04-04 11:29:13.01 spid4
2007-04-04 11:29:13.01 spid4 Cycle: ResType:LockOwner Stype:'OR' Mode: S SPID:116 ECID:0 Ec:(0xC62A54F8) Va
2007-04-04 11:29:13.01 spid4 Node:2 ResType:LockOwner Stype:'OR' Mode: IX SPID:122 ECID:0 Ec:(0xC61DF4F8) V
2007-04-04 11:29:13.01 spid4 Node:1 ResType:LockOwner Stype:'OR' Mode: S SPID:116 ECID:0 Ec:(0xC62A54F8) Va
2007-04-04 11:29:13.01 spid4 ResType:LockOwner Stype:'OR' Mode: S SPID:116 ECID:0 Ec:(0xC62A54F8) Value:0x80
2007-04-04 11:29:13.01 spid4 Target Resource Owner:
2007-04-04 11:29:13.01 spid4 Starting deadlock search 296



Having very little experience with SQL Server 2000, all that i learn from the trace is that, well, there is a deadlock, but i had already known that beforehand.

What other useful details can be interpreted from the trace above?
How can i obtain information like the specific statement(s) which cause the deadlock, etc?



Thanks in Advance,
Edwin

View 1 Replies View Related

SQL7 Profiler - Trace Properties - Server

Mar 30, 2001

Hi

We have two servers each running SQL7. I cannot run a trace on one server from the other. Whatever server name I enter in the drop down box, the trace only records activity on the server that profiler is running on. Even if I put a non-existent server name in the box (!), the trace accepts the name but still only runs on the host server.

Any explanations please.
Keith

View 2 Replies View Related

How Autorestart Sql Prifile Trace After Server Reboot ?

Sep 5, 2001

how autorestart sql prifile trace after NT server reboot or or after shotdown and restart of Sql server ?

thanks

View 1 Replies View Related

Unable To Run Trace Definitions In SQL Server 2000

Jan 7, 2002

Hi All,
In SQL Server 7, we had the option of opening a previously saved trace template and running it inorder to run a previously saved trace defintion repeatedly.
File > Open > Trace Definition
and choosing the Trace Name. Clicking OK would run the trace.

How do we do the same in SQL Server 2000?
File > Open > Trace Template
opens a Trace template but has only a 'Save' button and I'm therefore unable to run it.

How is it possible to run a previously defined trace repeatedly in SQL server 2000?
Thanks in advance,
Praveena

View 1 Replies View Related

Any Way To Trace Why Application Loose Conenction To Sql Server ?

Jul 25, 2002

Hi,
We have 3 -rd party application connected to one of our sql server 24 X 7
Once or twice a day application crashes
with application error (connection lost).

1.Is possible to trace application errors using SQL profiler ?
2. Create SQL alert or write to SQL log in case of falure for specific application ?
Thank you
Alex

View 2 Replies View Related

SQL 2012 :: Turn Off Server Audit Trace

Mar 21, 2014

Somehow someone turned on a audit on the sql server and it is filling up our hard drive and shutting down sql server eventually. Been trying to google how to shut this audit off but coming up with no via soolution yet. how can I turn this trace off. Each fiel says AuditTrace and date and they happen every other minute. I went into the sql profiler and can pull up the files but how to shut the trace off, it does not say.

View 9 Replies View Related

Getting The Database Name In Server-Side Trace Event

Feb 1, 2006

I'm trying to audit all the database activities using Server-side tracein SQL Server 2000.Basically I need to get the login information (login Id, Login timeetc) along with the name of the database.Can some one suggest a way todo that?Thanks in advance.J

View 1 Replies View Related

Trace Flags Compatibility In SQL Server 2005

Sep 11, 2007

We have the following trace flags present in startup in SQL server 2000:

809
1204
3605
3913

Need to understand if these should be required in SQL Server 2005 + SP2 version. I have run the upgrade advisor tool which indcates that the behaviour of some flags has changed and some other TFs are no longer applicable. Hence, I want to know about the above mentioned TFs.


Regards,

Chetan

View 1 Replies View Related

Trace Sql Statements In Sql Server Express Edition

May 30, 2007

Hi,



I have recently started using sql server express edition in place of my oracle db instance and have a need to enable trace on this to view some of the selects that are being fired by the application. I am unable to find out how exactly this is done. I was taken to a couple of sites that said that I needed SSEUtil and have installed that also.



Could one of you gurus out there, please help me out as this is pretty urgent for me to find.



TIA

View 2 Replies View Related

Profiler Trace With SSE 2005 (SQL Server Express)

Aug 15, 2007

Someone Please Help!

How on earth can a Profile Trace be run where SSE 2005 is installed??? In the past, with MSDE, we always installed the 'tools' on a local workstation, so that we had EnterPrise Manager and its suite of tools...no problem. Yet, with Management Studio Express (err...Distress?), there's no way to do this! I've scoured the net, and I see threads where people have done it, yet, no one seems to be clear...including Microsoft...on how to obtain this MOST IMPORTANT of all tools for an SQL deployment.

Please Help! Someone...Anyone!...Thank You!...Michael

View 6 Replies View Related

SQL 2012 :: Server Trace With Missing Column Statistics?

Jul 23, 2014

Getting events in the default trace saying missing column statistics on a column...

1.The column is the primary key column ( identity )

View 2 Replies View Related

SQL 2012 :: Server Profiler - Failed To Start A New Trace

Aug 3, 2014

I am attempting to create a new trace but I get the following error message: "failed to start a new trace".

I have been doing some digging and as I understand it, I had to find the directory Profiler uses for temporary files. So, I typed the following in the command window "SET TMP" and I received the following reply:

C:UsersRossAppDataLocalTemp

Now, according to the forum: [URL] ...

I am supposed to check that the system folder pointed to by the TMP environment variable exists and is not crammed with files.

Well, when I went to the directory C:UsersRossAppDataLocalTemp, it is indeed full of both files and directories. The size is 16.3 MB and has 133 files and 63 folders.

When I had a look at the Environment Variables window and chose TMP the value is "%USERPROFILE%AppDataLocalTemp" which according to my limited understanding is the equivalent to C:UsersRossAppDataLocalTemp.

So, what I am wondering is am I supposed to totally clear out this directory? I am not too keen on doing this because I don't want to stuff my PC up.

View 3 Replies View Related

SQL Server 2014 :: Enable Trace Flags On A View

Aug 10, 2015

I need to enable trace flag

OPTION(QUERYTRACEON 9481)

In one of my views I am having trouble finding where to put it in my existing statement:

USE [pec_prod]
GO
/****** Object: View [dbo].[PEC_Claim_Export_All] Script Date: 8/10/2015 9:18:26 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[PEC_Claim_Export_All]

[Code] ....

Msg 156, Level 15, State 1, Procedure PEC_Claim_Export_All, Line 56
Incorrect syntax near the keyword 'OPTION'.

View 3 Replies View Related

Show Server Trace Missing In SQL Management Studio?

Feb 9, 2006

In Query Analyzer I could go to the Query menu and select Show ServerTrace and it would give me trace information with duration, CPU, Readsand Writes cost. I have been using SQL Server 2005 for a couple monthsnow and I can't seem to find that option in SQL Management Studio. Am Imissing something?Jason

View 1 Replies View Related

SQL Tools :: Cannot Save Server Profiler Trace File

Dec 9, 2011

This is for SQL Server 2005 SP4 Build 5266. We have been having performance issues in production. There are tight deadlines to be met and it is important that they are solved promptly.

Yesterday we replicated the situation in the acceptance testing environment. The jobs take 8 hours to run and we started at 2:00 PM.

Just before the jobs ran I set up an SQL Server Profiler trace to catch processes with a duration of longer then 12 seconds. I set it to save the results to a database table.

Last night I checked the table at 5:00 PM and there were entries in the table. However, I could be mistaken.

At 9:00 PM I checked the table and it was empty.

This morning I arrived at work and checked SQL Server Profiler. The trace was running and within SQL Server Profiler, there are 100s of results. I stopped the trace. However, checking the table, it is empty.

I thought I would be able to save the trace results to a file. When I chose "Save As" from the file menu, all the options are greyed out (trace file, trace template, trace table, etc).

The results are there but there is no way of saving them and no way of exporting them. How could this have happened?

Is there a location, where SQL Server Profiler saves the results in a temporary space. I may be able to open them and retrieve them. How can I save the results? Why are all my options greyed out?

View 3 Replies View Related

Trace Flag 8679 -- Is It Needed Under SQL Server 2005?

Feb 12, 2007

Using SQL Server 2000 std. edition, I was bitten by the bug described in KBs 818671 and 289149. Query optimizer using Hash Match Team operators would sometimes fail. I added -T8679 at SQL Server startup.

Now that I'm upgrading to SQL Server 2005, is this trace flag still required?

I see that "this was fixed in SQL 2000, SP1." However, I would like a more precise confirmation that this flag is no longer needed in SQL 2005. Sometimes, no news is not necessarily good news.

The error is intermittent, and at least partially dependent on data conditions not available to me for exhaustive regression testing (or else of course I would do that).

Any info, comments, etc. ... would be welcome.

Thanks ...

Tracy Slack

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved