Viewing 15 posts - 20,296 through 20,310 (of 26,484 total)
The first GO ends your batch. That is what is causing your problem. Try this:
DECLARE @SQLCmd nvarchar(4000);
set @SQLCmd = '
ALTER DATABASE test SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
SP_RENAMEDB test,test_Old
GO
ALTER...
June 23, 2009 at 8:26 pm
The first GO ends your batch. That is what is causing your problem. Try this:
DECLARE @SQLCmd nvarchar(4000);
set @SQLCmd = '
ALTER DATABASE test SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
SP_RENAMEDB test,test_Old
GO
ALTER...
June 23, 2009 at 8:25 pm
Thank you. That explaination is sure to help someone else out in a similar situation. It will provide them with a direction to look at things in their...
June 23, 2009 at 8:17 pm
Perfect! Just the change I made in my copy here at home. Of course the 4 minutes it took on my part would have saved you quite a...
June 23, 2009 at 7:58 pm
shane94 (6/23/2009)
Yea that's what I just finished doing actually 🙂and finally found the nested down culprit
Thanks for the advice
Since you came looking for help, forum etiquette would have tell all...
June 23, 2009 at 7:53 pm
And, for the record, I have made a simple correction to my code and have the results you are expecting: 3 and 6.
Show me what you can do with the...
June 23, 2009 at 6:40 pm
ahmet erispaha (6/23/2009)
June 23, 2009 at 6:36 pm
Give the following a try. If not completely successful, let us know what issues you run into.
Code is in the attachment. Once again I just can't seem to...
June 23, 2009 at 5:03 pm
When you applied the last transaction log, did you use the WITH RECOVERY clause or did you use the WITH NORECOVERY clause?
If the latter, try RESTORE DATABASE dbname WITH RECOVERY
June 23, 2009 at 4:46 pm
lmu92 (6/23/2009)
Lynn Pettis (6/23/2009)
First of all this:UPDATE tablename SET
@variablename = [i]columnname[/i] = somevalue
is a documented feature of Microsoft SQL Server. ...
Hi Lynn,
would you mind quoting the...
June 23, 2009 at 4:40 pm
Carl Federl (6/23/2009)
First, the term "Triangle Join" is a wonderfull term that...
June 23, 2009 at 4:01 pm
It would help if you let is know what you have tried so far to solve the task at hand and where you are having problems.
We are all volunteers on...
June 23, 2009 at 3:04 pm
You can't disable Windows Authentication. The best you can do is not grant access to your servers to windows user or group accounts. If you don't authorize them...
June 23, 2009 at 2:43 pm
Roy Ernest (6/23/2009)
June 23, 2009 at 1:50 pm
kiranjanga2 (6/23/2009)
can u pls change that code and post the complete code.
You really must be kidding, right? This is your code, why should we do your work for you?...
June 23, 2009 at 1:46 pm
Viewing 15 posts - 20,296 through 20,310 (of 26,484 total)