Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Monday, October 9, 2017

expecting ID or quoted_ID. Help!

SQLServerCentral » Latest topics
expecting ID or quoted_ID. Help!
error i'm getting  from the below query: Incorrect syntax near '@DatabaseName'.

DECLARE @DatabaseName as NVARCHAR(200);

DECLARE DatabaseCursor CURSOR FOR
SELECT Name FROM sys.databases
WHERE nam

No comments: