Re: DROP A LIST OF TABLES
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 05/28/04
- Previous message: Hicham Mechmachi: "Re: DROP A LIST OF TABLES"
- In reply to: Hicham Mechmachi: "Re: DROP A LIST OF TABLES"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 28 May 2004 10:53:00 +0530
Hi,
Use the below script:-
declare @tbl_names varchar(300)
set @tbl_names='t1,t2,t3,t4'
exec('drop table '+@tbl_names)
Thanks
Hari
MCDBA
"Hicham Mechmachi" <mechmachi@hotmail.com> wrote in message
news:OyUPKOEREHA.556@TK2MSFTNGP10.phx.gbl...
> How can I declare table name as variale and use it in this script.
>
> Drop table Txx
> where xx is my variable.
>
> Thanks
>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Previous message: Hicham Mechmachi: "Re: DROP A LIST OF TABLES"
- In reply to: Hicham Mechmachi: "Re: DROP A LIST OF TABLES"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|