Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

sql syntax error Incorrect syntax near 'N'.

$
0
0

RESTORE DATABASE [cpsdyn] FROM DISK = N’C:\CSBackup\cpsdyn.bak’ WITH FILE = 1,

MOVE N’cpsdyn_data’ TO N’C:\CsData\ApplicationStore\(default)\dbpath\cpsdyn.mdf’,

MOVE N’cpsdyn_log’ TO N’C:\CsData\ApplicationStore\(default)\dbpath\CPSDYN.LDF’,

NOUNLOAD, REPLACE, STATS = 10

GO

Msg 102, Level 15, State 1, Line 1

Incorrect syntax near 'N'.

Msg 319, Level 15, State 1, Line 1

Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.

Msg 132, Level 15, State 1, Line 2

The label 'C' has already been declared. Label names must be unique within a query batch or stored procedure.

Msg 132, Level 15, State 1, Line 3

The label 'C' has already been declared. Label names must be unique within a query batch or stored procedure.


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>