Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 OSQL: Storing result of a Stored Procedure in a file

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-09-28 : 07:59:21
Krista writes "I have created a batch file to use the following osql statment:

osql /U xx /P xx /d dealerprofile /S 00.000.000.00 /Q "Select * from dealer" -o d:\dealer.csv

The connection seems to be working but then I get the following error:

Msg 208, Level 16, State 1, Server xxxx, Line 1
Invalid Object Name 'dealer'

I've tried including the dbname in the sql statement and some other things but no luck.

Any ideas?

Thanks."

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-09-28 : 08:01:26
It seems that the table name dealer is invalid. Try to use dbo.dealer

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -