Re: Alter command in SP
- From: "Rogers" <naissani@xxxxxxxxxxx>
- Date: Mon, 15 Jan 2007 13:28:38 -0500
Thanks Hari, can you try this one. It wont work from my side.
create table xx( i int)
go
create proc xproc
as
Begin
alter table xx add j int
End
select * from xx where j is null
go
exec xproc
go
select * from xx
"Hari Prasad" <HariPrasad@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:54156A3D-DD59-4466-9BFC-BD94ADA4142C@xxxxxxxxxxxxxxxx
It works good for me in SQL 2000 and SQL 2005. See the sample below.
create table xx( i int)
go
create proc xproc
as
Begin
alter table xx add j int
End
go
exec xproc
go
select * from xx
Thanks
Hari
"Rogers" wrote:
Can I Alter any of the table through stored procedure. I tried but it
didn't
work, if any one guide then I would really appreciated.
Thanks
.
- References:
- Alter command in SP
- From: Rogers
- Alter command in SP
- Prev by Date: Re: Domain or Workgroup
- Next by Date: Re: Transaction and locks
- Previous by thread: Alter command in SP
- Next by thread: Re: Domain or Workgroup
- Index(es):
Relevant Pages
|
Loading