Viewing 4 posts - 1 through 4 (of 4 total)
why not just use:
DECLARE @test-2 BIT
EXEC @test-2 = SP_TESTLINKEDSERVER [mylinkedservername]
IF @test-2 = 0
BEGIN
PRINT 'test failed'
END
else
BEGIN
PRINT 'test succeeded'
END
October 29, 2007 at 6:54 am
First off, the nature of the indexdefrag is an index at a time...so it won't rollback anything but the one call you are making.
Although I'm guessing that, given the script...
August 18, 2007 at 10:26 pm
if it happens again, try exec sp_who2 to give you an idea of what is causing the problem...there's always a reason for sql server to "hang"..and it's usually something that...
August 18, 2007 at 10:09 pm
That query seems a little confusing: If the person_info table already has an identity column, you shouldn't need to insert the id.
something like this would do it:
Declare @newinsert INT
Insert into...
June 4, 2007 at 4:52 pm
Viewing 4 posts - 1 through 4 (of 4 total)