Viewing 15 posts - 48,466 through 48,480 (of 49,552 total)
I must've missed that MS session on wednesday. With only a couple of exceptions, I found the presentations to be good and relatively informative. The ones I didn't, I left...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 22, 2007 at 2:28 pm
Try this
select cast(Msg_ID as varchar(36)), count(*)
from AgentsStateChanges
group by cast(Msg_ID as varchar(36))
having count(*)>1
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 22, 2007 at 9:15 am
Update the table's statistics. Out of date stats can result in exactly the problem you describe. Index defrag doesn't update stat, an index rebuild will. Otherwise, run UPDATE STATISTICS [table...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 22, 2007 at 9:03 am
Not in SQL 2005. You'll have to write the code somewhere. In a trigger, or in a procedure if all data modification is done through procedures.
I would recommend a trigger...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2007 at 10:07 pm
I don't think studio has perfmon on it
Performance monitor is a windows app, not a sql tool. All the windows OSs since windows 2000 (at least) has it.
There are other...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2007 at 4:31 pm
p.s. Use perfmon to see if it really is SQL Server. Task manager's memory reading is hard to understand.
Process(sqlsrvr.exe)/private bytes (What it has comitted)
Process(sqlsrvr.exe)/virtual bytes (virtual memory pool)
Process(sqlsrvr.exe)/working set (memory...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2007 at 7:11 am
In addition, the index definitions would assist and, if possible, the xml query plan (link, not post, it will be huge)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2007 at 11:39 pm
How much memory do you have on your server?
What service pack of SQL 2005 do you have?
Have you set max and min server memory?
What else is running on the server?
Run...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2007 at 11:37 pm
SQL already automatically adds random numbers to temp table names. Adding your own will just make scripts more complex, nothing else.
Nolock will help with the shared locks, but will not...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2007 at 11:30 pm
Jay, I do apologise. This completely slipped my mind on the run up to PASS. I hope this makes up for the delay.
I don't normally recommend cursors, but this...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2007 at 11:28 pm
Select... into puts locks on some of the TempDB system pages until the select is finished. Try using Create Table... Insert into...
Post the entire code if you can. Maybe someone...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 12, 2007 at 2:03 am
Is the full error message "The row was not found at the Subscriber when applying the replicated command." I didn't have a clue what you were talking about until I...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 12, 2007 at 2:01 am
There shouldn't be. Views are inlined when SQL runs the query. But as I often tell my developes, try both ways and see if there's a difference
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 12, 2007 at 1:38 am
Even, in terms of what? Row position based on a certain order, an identity column, something else ????
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 11, 2007 at 3:48 am
Define 'even rows'
Do you have an identity column and only want rows where the id is 2,4,6,... ?
Do you want every other row as defined by a certain order by?
Off...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 10, 2007 at 1:34 am
Viewing 15 posts - 48,466 through 48,480 (of 49,552 total)