Home All Groups Group Topic Archive Search About

BCP Error w/SQL 2005

Author
21 Mar 2007 4:30 PM
Tessitura Network, Inc.
In SQL Server 2000, we were able to BCP out of a table-based function with a
command like this:

BCP Impresario.dbo.LFT_GL_POSTING(91) out c:\impftp\gl.txt -c -T -STESS3

The version of BCP.EXE that comes with SQL Server 2005 (2005.90.1399.0)
raises the following error when attempting this:

An error occurred while processing the command line.

Thanks for any help!

Author
21 Mar 2007 4:35 PM
Tessitura Network, Inc.
Adding my managed newsgroup email id.
--
Steven Bras
Tessitura Network, Inc.


Show quote
"Tessitura Network, Inc." wrote:

> In SQL Server 2000, we were able to BCP out of a table-based function with a
> command like this:

> BCP Impresario.dbo.LFT_GL_POSTING(91) out c:\impftp\gl.txt -c -T -STESS3

> The version of BCP.EXE that comes with SQL Server 2005 (2005.90.1399.0)
> raises the following error when attempting this:

>  An error occurred while processing the command line.
>
> Thanks for any help!
Author
21 Mar 2007 6:20 PM
Roy Harvey
Try using the option of specifying a "query inside double quotes" in
place of just the the table name.

Roy Harvey
Beacon Falls, CT

On Wed, 21 Mar 2007 09:30:39 -0700, Tessitura Network, Inc. <Tessitura
Network, I***@discussions.microsoft.com> wrote:

Show quote
>In SQL Server 2000, we were able to BCP out of a table-based function with a
>command like this:
>
>BCP Impresario.dbo.LFT_GL_POSTING(91) out c:\impftp\gl.txt -c -T -STESS3
>
>The version of BCP.EXE that comes with SQL Server 2005 (2005.90.1399.0)
>raises the following error when attempting this:
>
> An error occurred while processing the command line.
>
>Thanks for any help!
Author
22 Mar 2007 4:20 PM
Tessitura Network, Inc.
Thanks! That solved the problem.
--
Steven Bras
Tessitura Network, Inc.


Show quote
"Roy Harvey" wrote:

> Try using the option of specifying a "query inside double quotes" in
> place of just the the table name.
>
> Roy Harvey
> Beacon Falls, CT
>
> On Wed, 21 Mar 2007 09:30:39 -0700, Tessitura Network, Inc. <Tessitura
> Network, I***@discussions.microsoft.com> wrote:
>
> >In SQL Server 2000, we were able to BCP out of a table-based function with a
> >command like this:
> >
> >BCP Impresario.dbo.LFT_GL_POSTING(91) out c:\impftp\gl.txt -c -T -STESS3
> >
> >The version of BCP.EXE that comes with SQL Server 2005 (2005.90.1399.0)
> >raises the following error when attempting this:
> >
> > An error occurred while processing the command line.
> >
> >Thanks for any help!
>

AddThis Social Bookmark Button