Microsoft
Software
Hardware
Network
Question : Error on DROP DATABASE @DBName
The follwing is giving me an error -
Declare @DBName as varChar(200)
Set @DBName = 'somedatabase'
IF EXISTS(SELECT name FROM sys.databases WHERE name = @DBName)
DROP DATABASE @DBName
GO
It does not like the line
DROP DATABASE @DBName
Answer : Error on DROP DATABASE @DBName
EXEC('DROP DATABASE ' + @DBName)
Random Solutions
setting text of a dynamic dom element using javascript
Menu settings
Cannot RDP anymore
Exchange 2010 Public Folder Error
WebSphere Application Server Network Deployment
Audit Failure on Windows 2008
Dell PowerEdge Perc 4e/Di RAID 1 expansion
Certain Email messages are shown in OWA but not in Outlook 2010
Server Error in '/Reports' Application in SQL Server Reporting Services
MySql injection hack