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
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
Remove header from array created using Get-QADComputer cmdlet?
Cable Type/Pinout for RJ45 to RJ45 T1/E1 between two routers
using ubuntu 10.4 to format a drive for apple OS ?
importing to firefox
SQL 2005 on a windows 2003 cluster , how to back up
vbscript exit if file exists
RWW Screen Resolution
Looking for Video Recording Software for Samsung Cameras
Problems moving L2L IPSec VPN from Cisco PIX to Cisco ASA 5520, connecting from Cisco 877