Question : drop multiple DBs

i am getting syntax issue on
"DROP DATABASE @DBName"

how should you do it differently?

thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
DECLARE @DBName VARCHAR(60) 
DECLARE DropDBCur CURSOR FOR 
SELECT name FROM sys.databases WHERE name like 'PRRS%'
OPEN DropDBCur  
FETCH NEXT FROM DropDBCur INTO @DBName  
WHILE @@FETCH_STATUS = 0  
BEGIN  
       DROP DATABASE @DBName
       FETCH NEXT FROM DropDBCur INTO @DBName  
END  
CLOSE DropDBCur  
DEALLOCATE DropDBCur

Answer : drop multiple DBs

Do the same in te rest of the function's code...

form['PriceOption'+coupon].disabled=false;
instead of
'form.PriceOption' + coupon + '.disabled=false';

and so on...
Random Solutions  
 
programming4us programming4us