|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
bcp invalid object namebcp xxxxx.FASTECHTIME.EmpEvals out C:\EmpEvalsDue.txt -STime -Uxxxxx -Pxxxxxxxxxxx for which I receive the error SQLState = 37000, NativeError = 4060 Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database requested in login 'xxxxx'. Login fails. The other error I get is SQLState = S0002, NativeError = 208 Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'FASTECHTIME.EmpEvals'. The server is Time, the database is FASTECHTIME, and the table is EmpEvals. What is the proper way to code access to the object? I have tried EmpEvals FASTECHTIME.EmpEvals xxxxx.FASTECHTIME.EmpEvals TIA. Mike Hi Mike
A full object qualification is database_name.object_owner.object What is xxxxx? You need to have the owner in between the db and the object, so if the user dbo is the owner, you would specify as: FASTECHTIME.dbo.EmpEvals or, since dbo is one of the default owners, you can leave it out, but you still need the two dots: FASTECHTIME..EmpEvals -- Show quoteHide quoteHTH Kalen Delaney, SQL Server MVP "Mike" <mav***@shoremortgage.com> wrote in message news:OyTDWkgmGHA.2204@TK2MSFTNGP03.phx.gbl... >I have a bcp command > > bcp xxxxx.FASTECHTIME.EmpEvals out > C:\EmpEvalsDue.txt -STime -Uxxxxx -Pxxxxxxxxxxx > > for which I receive the error > > SQLState = 37000, NativeError = 4060 > Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open > database requested in login 'xxxxx'. Login fails. > > The other error I get is > > SQLState = S0002, NativeError = 208 > Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name > 'FASTECHTIME.EmpEvals'. > > The server is Time, the database is FASTECHTIME, and the table is > EmpEvals. > > What is the proper way to code access to the object? I have tried > > EmpEvals > FASTECHTIME.EmpEvals > xxxxx.FASTECHTIME.EmpEvals > > > TIA. > > Mike > > >
Other interesting topics
2005 Fonts and Colors for Management Studio
OSQL Input File Size need tool for managing database object ownership Backup and Restore How to Remove "SQL Server Management Studio" from My Docs? save query results to formatted text file SQL Server Management Studio - one file per object Management Studio: Backup and Restore Events Report Outlook locked with sql 2005 SQL Server Management Studio - Script Objects to Individual Files |
|||||||||||||||||||||||