PROBLEM WHITH BCP

PROBLEM WHITH BCP

Post by ttam.sa.. » Wed, 18 Oct 2000 04:00:00



I dont understand very well why i have this error when  I want to copy
data base table "Doss" into  a  file (exempl.txt)

my request in sqlserver 6.5 is :

bcp Doss out  c:\exemple.txt  /c /Uusername /Ppassword /Sserver

 I have this error:
Impossible to use the option OUTPUT while passing a constant with a
stored procedure.

Please if you can telle me what's wrong with this requet , Ill be very
glad and Ill thanks you very much.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

PROBLEM WHITH BCP

Post by hty » Wed, 18 Oct 2000 04:00:00


I think your question placed in wrong news group.


Quote:> I dont understand very well why i have this error when  I want to copy
> data base table "Doss" into  a  file (exempl.txt)

> my request in sqlserver 6.5 is :

> bcp Doss out  c:\exemple.txt  /c /Uusername /Ppassword /Sserver

>  I have this error:
> Impossible to use the option OUTPUT while passing a constant with a
> stored procedure.

> Please if you can telle me what's wrong with this requet , Ill be very
> glad and Ill thanks you very much.

> Sent via Deja.com http://www.deja.com/
> Before you buy.


 
 
 

PROBLEM WHITH BCP

Post by ank.. » Wed, 18 Oct 2000 04:00:00


Hi,
I think that you have to give the name of the database in front of the
name of table.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. Problems whith null terminatin on strings

When I use MFC ODBC connection to MS SQL 6.5 I have problems returning
strings and varchars.

On some tables when I do a select the string i get back does not get
null terminated and is filled whith spaces.

Then on other tables it is just fine.

Does anyone know what to do to get rid of those extra spaces.

if i got a varchar[32] field and i got "Test" stored in that field. Then
I get "Test                            " back.

-Ronny Nyg?rd-
Software Engineer EUnet Medai AS

2. Pdox 4.5 Win Contractor Wanted

3. problem whith files from as\400

4. Grafsman

5. Problem whith Crystal Report and OLAP cube

6. distinct

7. Problem whith stored procedure and Delphi 2

8. Sorted CRW report with parameters input in VB

9. problem whith processing

10. do you know problems whith security ODBC and SQL V8

11. Problem whith transactions (beginTrans, etc)

12. Problem with Date field whith SQL query

13. Problems whith Cloudscape running in a Psion SQL Exception: MetaData for Container C8e.z.v@655797