Viewing 15 posts - 46 through 60 (of 89 total)
Sergiy (4/17/2008)
You need to pass @rowcount as na OUTPUT parameter to sp_executesql.
i dont get can you alter my query and show me
thanks in advance
April 18, 2008 at 5:26 am
Highwayman (4/15/2008)
damn them once for creating the whole mess...
damn me for not jumping ship as soon as I realize what a steaming pile I jumped head...
April 18, 2008 at 12:28 am
SQL King (4/17/2008)
April 17, 2008 at 9:44 pm
Grant Fritchey (4/11/2008)
You could...
April 16, 2008 at 4:15 am
Vijai (4/16/2008)
I just testing it. I will modify this and use it to change the default value of column by deleting the previous constraint and recreating it...
April 16, 2008 at 3:53 am
Vijai (4/16/2008)
Create table tbl(title nvarchar(40))
Create procedure df_bppr @de nvarchar(30)
As
Begin
Declare @sstr nvarchar(500)
If Not exists(select * from sys.objects where...
April 16, 2008 at 2:13 am
vijai
try this
Create table tbl(title nvarchar(40))
declare @sstr nvarchar(500)
set @sstr = 'alter table tbl add constraint df_little default ''' + 'yes' + ''' for title'
exec sp_executesql @sstr
hope it will...
April 15, 2008 at 10:34 pm
Vijai (4/15/2008)
Create procedure df_bppr @de nvarchar(30)
As
Begin
Declare @sstr nvarchar(500)
Set @sstr = N'Alter Table tbl Add Constraint df_title Default '+ @de + N' For title'
Exec...
April 15, 2008 at 10:25 pm
Yes You people has good stuff, you are right. I was checking myself that is there a way which i might not known
Thanks guys
April 15, 2008 at 9:45 pm
i want to create a view inside my stored procedure.if i give create view inside my stored procedure.it does not accepting
April 15, 2008 at 7:34 am
you mean all procedures in the database
if single then try this
sp_helptext 'procedure name'
April 15, 2008 at 4:55 am
Vijai (4/15/2008)
Create procedure df_bppr @de nvarchar(30)
As
Begin
Declare @sstr nvarchar(500)
Set @sstr = N'Alter Table tbl Add Constraint df_title Default '+ @de + ' For title'
Exec...
April 15, 2008 at 3:45 am
seankerr (4/14/2008)
I trying to use the TSQL case statement to return a varchar value relating to a column. I'm passing in the value of int and it's telling me...
April 15, 2008 at 3:35 am
ya Grant you are providing right solution
i am using sql svr 2000 , i dont find INFORMATION_SCHEMA views
April 15, 2008 at 2:02 am
Thanks Gail Shaw
i have another question related to this topic. i am having a view of joining two table with one key and each table have multiple indexes.my question is...
April 15, 2008 at 1:57 am
Viewing 15 posts - 46 through 60 (of 89 total)