Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 solve this one plz..........

Author  Topic 

raky
Aged Yak Warrior

767 Posts

Posted - 2008-01-10 : 08:48:02
hi,
i have a doubt whether constraints(for eg:default constraint ) can be applied on table variable or not. plz let me know. iam presenting the table variable which iam using.

declare @t table (a int constraint d default 1 ,b varchar(10) constraint a default 'india' )
insert into @t values ( 1,'ic')


thanks

nr
SQLTeam MVY

12543 Posts

Posted - 2008-01-10 : 08:54:23
declare @t table (a int default 1 ,b varchar(10) default 'india' )
insert into @t default values

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

raky
Aged Yak Warrior

767 Posts

Posted - 2008-01-10 : 08:57:20
quote:
Originally posted by nr

declare @t table (a int default 1 ,b varchar(10) default 'india' )
insert into @t default values

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.



Thanks alot .
Go to Top of Page
   

- Advertisement -