Viewing 15 posts - 571 through 585 (of 691 total)
Mark,
I would definitely use a correlated subquery for this:
SELECT *
FROM #queue q
WHERE Success = 0
AND Batch =
(SELECT MAX(Batch)
FROM #queue q1
WHERE...
October 25, 2004 at 2:31 pm
Dave,
What constitutes a failure?
October 25, 2004 at 2:16 pm
Are you thinking of an MSDN subscription? I believe there are some packages available for ISVs for around $700, if you sign a contract stating that you're going to...
October 25, 2004 at 2:16 pm
If the explanation had been, "you should pay attention to formatting," this would have been a great question.
However, this was obviously the result of a total accident by someone who...
October 21, 2004 at 8:51 am
Good catch Yuvraj... I was too quick on the copy and paste, I'm afraid!
October 20, 2004 at 9:47 am
Rajiv,
What error did you get?
October 19, 2004 at 1:35 pm
Are you certain? You said you were getting NULL errors...
Anyway:
UPDATE YourTable
SET YourColumn = NULL
WHERE YourColumn = ''
October 19, 2004 at 9:25 am
Scott,
For that purpose I usually do something along the lines of:
UPDATE Tbl
SET x = 'y'
WHERE x = 'abc'
IF @@ROWCOUNT = 0
INSERT Tbl (x) VALUES ('y')
... but in this...
October 19, 2004 at 9:01 am
Can you post DDL and sample data to reproduce the problem?
October 19, 2004 at 8:48 am
Joe,
I'm pretty sure that none of the Perfect Shuffle algorithms had a DBMS in mind! Do you really believe that a cursor is better than the ORDER BY NEWID()...
October 19, 2004 at 8:45 am
Have you tried updating statistics on both databases?
Run sp_updatestats and see if that fixes the issue.
October 19, 2004 at 8:37 am
Maybe you can explain what's wrong with the code? Are you getting an error? Is it doing the wrong thing? It's difficult to tell just by eyeballing...
October 19, 2004 at 8:33 am
What does "empty" mean? It sounds as though your columns are already NULL. Replacing that with another NULL probably won't help you too much.
Have you looked into using...
October 19, 2004 at 8:31 am
SELECT MIN(CASE Description WHEN 'Tiering' THEN Value ELSE NULL END) AS Tiering,
SELECT MIN(CASE Description WHEN 'Strategic Overview' THEN Value ELSE NULL END) AS StrategicOverview,
SELECT MIN(CASE Description WHEN 'Tier Pricing Report'...
October 18, 2004 at 2:21 pm
Hari,
How can a result set possibly contain only distinct user_ids, yet contain multiple rows for each ID which has more than one row? Can you show some example output?
October 18, 2004 at 2:19 pm
Viewing 15 posts - 571 through 585 (of 691 total)