Viewing 15 posts - 31 through 45 (of 327 total)
Sorry, yes you are correct. It seems that until the "GO" sql server doesn't stop to make the ddl change so you are stuck with naming the columns.
ron
December 5, 2005 at 2:36 pm
Try putting a "GO" just after the ALTER table statement. It should work ok after that.
ALTER TABLE #temp DROP COLUMN ProjectID
GO <-----
SET @i=0
ron
December 5, 2005 at 2:19 pm
Just in case you want a general soulution to the padding problem you can try this if you ever have a need.
declare @month as varchar(10)
set @month = datepart(month,...
December 5, 2005 at 1:42 pm
However, now I'm also getting an error message from SQL Server which says:
Warning: Null value is eliminated by an aggregate or other SET operation.
What does that mean, and what...
December 1, 2005 at 2:50 pm
Also, please note that if your DateReferred contains date and time values you will need to change that statement to:
And r.DateReferred >= '2005-11-1' And r.DateReferred < '2005-12-01'
Otherwise you will miss records...
December 1, 2005 at 2:42 pm
In some cases the called procedure will fail and NOT set the return code at all.
So you need to be careful. If your @return_code was 0 before calling a stored...
November 21, 2005 at 1:07 pm
I found this note in Books online but I didn't see anything on how to resolve this situation.
Note If backing up the log...
November 18, 2005 at 3:01 pm
You might want to try posting in the "Backups" forum. I'm sure you'll get some answers there.
November 18, 2005 at 2:46 pm
This is not one of my best areas but if you could tell use whether your recovery mode is set for Simple or Full backups I'm sure that will help...
November 18, 2005 at 2:32 pm
Similar to the answer above, I record the spid and login_time from master..sysprocesses when recording the locking info.
Anytime I create a new lock I first delete all lock entries where...
November 17, 2005 at 9:50 am
The error handling in sql server 2000 is not very good and there may not be a reasonable way around your problem. The only other thing I can think of...
November 17, 2005 at 9:29 am
In testing I noticed that as you stated you can't trap the error but at the same time the stored procedure does NOT abort. If you don't test for the...
November 15, 2005 at 2:32 pm
Ten years ago I don't think the truncate feature exisited (sysbase). I gave up looking. Sergiy, thanks so much for posting. I wonder how long the truncate feature has been...
November 9, 2005 at 11:58 am
This (very long) article explains the new isolation levels in sql 2005. Using SNAPSHOT should eliminate the problem.
http://www.microsoft.com/technet/prodtechnol/sql/2005/SQL05B.mspx
ron
November 2, 2005 at 8:21 am
Viewing 15 posts - 31 through 45 (of 327 total)