Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
An issue occurs while executing system stored procedure 'sp_helpdb'.

Eg : On entering database name="Motor Vehicle DB - car" and executing the source code an exception occurs -Incorrect syntax near 'Vehicle'.(Windows Application)
Posted
Comments
jim lahey 19-Sep-11 8:26am    
Sounds like there's a problem with the query you're running. Post a bit more info please

1 solution

Put the name in brackets, like so:

SQL
[dbo].[Motor Vehicle DB - car]
 
Share this answer
 
Comments
VaniPramod 20-Sep-11 7:47am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900