Viewing 15 posts - 6,181 through 6,195 (of 7,185 total)
Use DBCC INPUTBUFFER to see what query is running on the blocking process. Then go through the normal steps to troubleshoot that query - eliminating any row-by-row processing, ensuring...
November 17, 2007 at 2:26 am
I haven't tested this, but even if it's not entirely syntactically correct, it'll point you in the right direction.
SELECT m.IdSeq, m.MyName
FROM MyTable m JOIN (
SELECT MAX(IdSeq) AS IDS
WHERE KeyValue =...
November 17, 2007 at 2:21 am
pamarant (11/15/2007)
If that db crashes at 12:40PM, you can only recover up until your last full backup and apply any differential and log backups, for which you would have none.
Not...
November 16, 2007 at 2:01 am
Sorry but we're not going to do your homework for you unless you show you've made some attempt to solve the problem yourself.
John
November 16, 2007 at 1:41 am
SELECT * FROM MyTable
WHERE MyColumn LIKE '%''%'
John
November 15, 2007 at 2:01 am
Great article, Andy - thanks. Can I just ask a question about Tip#4?
If you want to really make sure no resultsets occur you can use spconfigure to set disallow...
November 13, 2007 at 5:16 am
I think by "a quick example" you mean you want us to do all the work for you. You've been posting here for a long time so I don't...
November 12, 2007 at 8:26 am
If you're writing the procedures yourself, rather than working with existing ones, then why not just use an output parameter to return the name(s) of the table(s) used? You...
November 12, 2007 at 8:20 am
You can't use dynamic SQL in a view, since you would need EXEC or sp_executesql to execute the SQL, and a view definition can only consist of a SELECT statement....
November 9, 2007 at 9:35 am
Ties
No, but you can create a user-defined function instead. Look in Books Online for CREATE FUNCTION.
John
November 9, 2007 at 4:11 am
You can script it using sp_configure (I think), or you can use the GUI. It's all in the documentation if you search for it. Set up a test...
November 9, 2007 at 2:23 am
Look at the SQL Server Properties (Security Tab) topic in (the most recent version of) SQL Server 2000 Books Online.
John
November 9, 2007 at 2:04 am
Well, if you have a standard installation it's Start -> All Programs -> Microsoft SQL Server 2005 -> Documentation and Tutorials -> SQL Server Books Online. It's all on...
November 8, 2007 at 1:44 am
Matt Miller (11/6/2007)
Mark Green (11/6/2007)
This code does not give me a random order of numbers. It just gives me them in numerical order. Albeit 10,000 times.
I'm not sure...
November 7, 2007 at 1:34 am
Mark
It's to save you having to use a cursor or loop. Row-by-row processing is nearly always less efficient than set-based processing in T-SQL, and the numbers table allows you...
November 6, 2007 at 7:45 am
Viewing 15 posts - 6,181 through 6,195 (of 7,185 total)