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
jucheck.exe in Windows 7 with Active Directory
Special Query in Oracle 10 sqlplus
MySQL data need to "replace" CRLF
How do i do PXE Boot using windows 2008 server and Deployment Workbench
Pull report from Active Directory
Modify Excel VBA to include a range of cells
Linking Combo Boxes
Simulate clicking into a textbox
CentOS 5.3: search keyword in array of logs: how?
Sharepoint 2010 guides