Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubleshoot
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Troubleshoot
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01159501
Message ID:
01159501
Views:
59
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
Map
View

Click here to load this message in the networking platform