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
Flex Passing parameter to a class + loader external jpg
Cisco VPN and xDSL
Printers Having issue From EXCEL
Windows cannot connect to the printer. The local print spooler service is not running. Please restart the spooler or restart the machine.
Advice on upgrading a SBS 2003 R1 server
Java SAX
filezilla "could not start transfer"
How Do I Deal with Null Values in SQL Pivot Queries
Null query causes other queries to return no records
Failure Audit/Account Lockout