Viewing 15 posts - 2,176 through 2,190 (of 8,416 total)
glennhill (2/23/2011)
However I was surprised to find that the DMV was populated with 21 rows ALL of which had request_status WAIT but no rows with GRANT status.
What resource were the...
February 24, 2011 at 2:13 am
There are many ways to write these types of query - not all of which are strictly the same. There are frequently slight semantic differences which mean that LEFT...
February 24, 2011 at 1:44 am
Indianrock (2/23/2011)
This query finds duplicate values and inserts the results into another table using the basic structure shown below.
An alternative solution would be to create insert, update, and delete triggers...
February 23, 2011 at 11:54 pm
coder_t2 (2/21/2011)
February 23, 2011 at 11:31 pm
CREATE TABLE #User (userID INT PRIMARY KEY, email VARCHAR(100) NOT NULL);
CREATE TABLE #UserProfile (userID INT NOT NULL, fieldID INT NOT NULL, value VARCHAR(50) NOT NULL, PRIMARY KEY (userID,...
February 23, 2011 at 11:17 pm
It looks like you are trying to create some sort of structured output data file from SQL Server using xp_cmdshell. This is usually a bad idea, for all sorts...
February 23, 2011 at 10:47 pm
Did you try Lowell's suggestion? The 'missing' column in your data should work just fine I think. I'm too lazy to set up a test myself - perhaps...
February 23, 2011 at 10:28 pm
TheSQLGuru (2/23/2011)
if you think that query should do an index seek and bookmark lookup to return your results...
I think you missed the fact that there is only one index, and...
February 23, 2011 at 10:25 pm
Khades (2/23/2011)
Is bulk insert only from file -> table?
Yes.
Or can you use bulk insert from table -> table without having to create a file using bcp.
In 2008, you can often...
February 23, 2011 at 10:19 pm
SELECT A.NameA, C.NameC
FROM #TempA AS A
CROSS
APPLY (
SELECT TOP (1)
...
February 23, 2011 at 10:09 pm
Using the OUTPUT clause is a much better option - I can't remember the last time I used SCOPE_IDENTITY, @@IDENTITY, or IDENT_CURRENT. Not only is OUTPUT more flexible (you...
February 23, 2011 at 9:50 pm
Craig Farrell (2/23/2011)
I'm going to need to read that a...
February 23, 2011 at 4:46 am
ken.trock (2/22/2011)
February 22, 2011 at 11:21 pm
Steve Jones - SSC Editor (2/22/2011)
February 22, 2011 at 12:27 pm
Viewing 15 posts - 2,176 through 2,190 (of 8,416 total)