Microsoft
Software
Hardware
Network
Question : How to use Database name variable in ALTER DATABASE sql script
I need to create a script that is equivalent to the following:
ALTER DATABASE DB_NAME()
but that isn't valid syntax.
Is there anyway to do this via Transact SQL or SQLCMD mode other than by using dynamic sql?
Answer : How to use Database name variable in ALTER DATABASE sql script
>>Is there anyway to do this via Transact SQL or SQLCMD mode other than by using dynamic sql? <<
I am afraid not. You will have to use Dynamic SQL.
Random Solutions
How to commit changes of a Typed Dataset to database at once
Somebody is sending emials form my hotmail account
PL/SQL Performance
Creating digital certificates for individual employee timesheet
Dynamic naming of Java objects
How to sync a shared calendar Exchange 2003 Outloook 2007 and Iphones
Sync Access database contacts with Exchange Contacts list
URGENT: copy files from one node to another node using pyxmlrpcClient
phpbb forum
Jython - need try / except Logic for .py Script