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
Emphasize an out of range value in Excel.
Upgrade Sqlite in RHEL5.4
How do I enable audio mapping over RDP on Windows 7?
OMA problem in Exchange 2010 - HTTP Error 500.24
Which is better G711 alaw, or GSm codecs
Folders UNIDs and Duplicates
Motherboard driver CD for HCL - P5GD2-TVM/GB/SI
OpenOffice 3.2 GPO Install Problem
SQL Simple syntax issue - based on Group By / Having
Automatically Adding Text to Cells