General information
Forum:
Microsoft SQL Server
Environment versions
SQL Server:
SQL Server 2000
Hi All,
I this simple t-sql statement:
Declare @Meet char(10),
@cmd varchar(20)
set @Meet = 'Meet152'
Select @Cmd = 'Use ' + @Meet
exec(@cmd)
When I execute this in a query analyzer, it completes successfully, however this does not opens a Meet152 database.
What am I doing wrong here?
Thanks so much!!!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only