Viewing 4 posts - 1 through 4 (of 4 total)
Thank you very much Gila..
It was my mistake that I used PK_TestTable, but the table, TestTable and the constraint was not existing. When I used an existing table it...
April 21, 2006 at 4:03 am
Nothing is getting printed.
For e.g:
DECLARE @val VARCHAR(50)
select @val = name from dbo.sysobjects where OBJECTPROPERTY(id, N'IsConstraint') = 1 AND name like 'PK__TestTable%'
PRINT ('ALTER TABLE [dbo].[VOIP_CUEUsers] DROP CONSTRAINT...
April 21, 2006 at 3:43 am
Thanks Gila..
But the above query throws an error:
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'CONSTRAINT'.
Any idea how can I solve it?
Regards
Unnic
April 21, 2006 at 2:42 am
Viewing 4 posts - 1 through 4 (of 4 total)