laidback313
Programmer
Does anyone know why I'm getting this error when using BCP:
-Incorrect syntax near '9539'-
Here's the BCP syntax I'm using:
(bcp 9539_dev.dbo.table out export.txt -c -S myServer -U user -P password)
Only thing that changed on the server was that 9539_dev used to be the default DB. It was removed as the default by our DBA. Now I can't BCP in or out within that database. However I can BCP in and out to any other DB within the same sql server. Is it because the name of the DB starts with a NUMBER not a CHARACTER? If so, is there a way around that, i.e. enclose the DB name in brackets or single/double qoutes? Or will I have to rename the DB to start with a Character?
Thanks,
cM
-Incorrect syntax near '9539'-
Here's the BCP syntax I'm using:
(bcp 9539_dev.dbo.table out export.txt -c -S myServer -U user -P password)
Only thing that changed on the server was that 9539_dev used to be the default DB. It was removed as the default by our DBA. Now I can't BCP in or out within that database. However I can BCP in and out to any other DB within the same sql server. Is it because the name of the DB starts with a NUMBER not a CHARACTER? If so, is there a way around that, i.e. enclose the DB name in brackets or single/double qoutes? Or will I have to rename the DB to start with a Character?
Thanks,
cM