|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
bcp invalid object name errorHello All,
I am trying to perform the following bcp command but keep getting "invalid object name error". Please help. C:\Documents and Settings\radhikari>bcp lp_risk.dbo.risk_hourly_var out test.xls /Ubcp_user -c Password: SQLState = 42S02, NativeError = 208 Error = [Microsoft][SQL Native Client][SQL Server]Invalid object name 'lp_risk.d bo.risk_hourly_var'. Raja (raja_adhik***@hotmail.com) writes:
> I am trying to perform the following bcp command but keep getting Apparently there is no table by that name in the server you are connecting> "invalid object name error". Please help. > > C:\Documents and Settings\radhikari>bcp lp_risk.dbo.risk_hourly_var out > test.xls > /Ubcp_user -c > Password: > SQLState = 42S02, NativeError = 208 > Error = [Microsoft][SQL Native Client][SQL Server]Invalid object name > 'lp_risk.dbo.risk_hourly_var'. to. Maybe the database is not called lp_risk? Maybe the table is not called risk_hourly_var? (Keep in mind that depending on collation, object names may be case-sensitive.) Maybe the table is not in the dbo schema? Maybe you are connecting to the wrong server? Judging from the command line above, you are connecting to the default instance of the local machine. Maybe the database is in a name instance on the same machine? Or on a remote server? -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx |
|||||||||||||||||||||||