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
User profile service in Sharepoint 2010
Roaming Profiles in Windows 7 Pro and SBS 2008
Automatically do a release build
Cisco Unity Express to Trigger MWI on overlay DN
Multiple repeat regions on 1 page with 1 recordset
Er diagram for university accommodation office
navigation bumps down in ie
Strip out ’s in mySQL query | XML Parsing Error: undefined entity
Problems sharing iTunes between accounts on a Mac
Is this html markup flexible enough to accomodate various designs?