Home All Groups Group Topic Archive Search About
Author
7 Apr 2006 5:54 AM
GH
When I run the following BOL example:

bcp AdventureWorks.Sales.Currency out Currency.dat -T -c

I get the following error message:
   Msg 102, Level 15, State 1, Line 2
   Incorrect syntax near '.'.

I have tried multiple variations ... still get the same error ...

This cannot be this hard.

--
Thanks in advance
G

Author
7 Apr 2006 6:14 AM
Omnibuzz
I hope you didn't give it in the SSMS. you are supposed to give it in command
prompt
Author
7 Apr 2006 3:35 PM
GH
Geeez ...

Thanks for the wake up call ... Doing SQL past 10PM should be a misdemeanor!!
--
Thanks in advance
G


Show quote
"Omnibuzz" wrote:

> I hope you didn't give it in the SSMS. you are supposed to give it in command
> prompt
Author
7 Apr 2006 6:37 AM
Enric
Please find attached personal examples for that stuff...

C:\>bcp abs.abs_diario in c:\20050929.dat -n -Ssql4 -Uusrdts1 -Pdts1
C:\>bcp ABS_Diario_Dat in Diariomes10.dat -c -U ABS -P -S SQL1
C:\OFI0501>BCP abs.dbo.ABS_OF501 IN 20050726.DAT -e enric.txt -C -c  -Ssql4
-Uusrdts1 -Pdts1

hope that helps

--
Please post DDL, DCL and DML statements as well as any error message in
order to understand better your request. It''''s hard to provide information
without seeing the code. location: Alicante (ES)


Show quote
"GH" wrote:

> When I run the following BOL example:
>
> bcp AdventureWorks.Sales.Currency out Currency.dat -T -c
>
> I get the following error message:
>    Msg 102, Level 15, State 1, Line 2
>    Incorrect syntax near '.'.
>
> I have tried multiple variations ... still get the same error ...
>
> This cannot be this hard.
>
> --
> Thanks in advance
> G
Author
7 Apr 2006 3:36 PM
GH
Thanks Eric
--
Thanks in advance
GH


Show quote
"Enric" wrote:

> Please find attached personal examples for that stuff...
>
> C:\>bcp abs.abs_diario in c:\20050929.dat -n -Ssql4 -Uusrdts1 -Pdts1
> C:\>bcp ABS_Diario_Dat in Diariomes10.dat -c -U ABS -P -S SQL1
> C:\OFI0501>BCP abs.dbo.ABS_OF501 IN 20050726.DAT -e enric.txt -C -c  -Ssql4
> -Uusrdts1 -Pdts1
>
> hope that helps
>
> --
> Please post DDL, DCL and DML statements as well as any error message in
> order to understand better your request. It''''s hard to provide information
> without seeing the code. location: Alicante (ES)
>
>
> "GH" wrote:
>
> > When I run the following BOL example:
> >
> > bcp AdventureWorks.Sales.Currency out Currency.dat -T -c
> >
> > I get the following error message:
> >    Msg 102, Level 15, State 1, Line 2
> >    Incorrect syntax near '.'.
> >
> > I have tried multiple variations ... still get the same error ...
> >
> > This cannot be this hard.
> >
> > --
> > Thanks in advance
> > G

AddThis Social Bookmark Button