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 do I recreate the _msdcs.domain.com Forward Lookup Zone.
Drive directory reference change /dev/sda to /dev/sdb etc
Web Server Maintenance Page redirect?
WIX Installer Question
Php concanation text
WordPress - header and footer navigation has suddenly dissappeared
Access Report Help Needed
How to reset PHP Session Handler to default
Use slf4j with properties file
Domain rename prior to consolidation