Solved

SQL Server 2000 and BCP utility

Posted on 2004-07-30
6
1,995 Views
Last Modified: 2012-08-13
Hello experts,

I was wondering if someone would not mind leading me in the right direction. I have explored information everywhere I possibley was able to. and am still not able to get this to function.

I am learning SQL server 2000 running the 120 Day Enterprise Evaluation Edition, and am attempting to load a flat txt file into a table via the Command Prompt, continue to obtain ODBC errors each time I run the data transfer.  I even install the MDAC 2.8 version of the ODBC drivers.

These are the statemens in which I key in the Command Prompt.
 C:\Documents and Settings\Owner>bcp brandywade..paintings IN C:\le3_flat.txt -t -c -S -T -P -R

The errors I continue to recieve are

SQLState = 08S01, Native Error = 11
Error = [Microsoft][ODBC SQL Server Driver][Shared Memory] General network error.
Check your network documentation.
SQLState = 01000, NativeError = 10054
Warning = [Microsoft][ODBC SQL Server Driver][Shared Memory] ConnectionRead <recv<>>.

Thank you in advance.


0
Comment
Question by:jdocchio01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 2

Expert Comment

by:Shahankit
ID: 11680914
0
 

Author Comment

by:jdocchio01
ID: 11681406
HI Shahankit,

I have checked out the website you provided, I have gone through every aspect of it, no matter what I do I am still obtaining the ODBC errors in the DOS prompt.  If it is ok I have provided the info from my flat.txt file. and the info in the Design Table view below.  Would you be able to advise me on what I need to change?

1
Untitled
Mark Rothko
Oil
1961
5'9"x4'2"

2
The Letter
Jan Vermeer
Oil
1666
1'5.25"x1'3.75"

3
Four Apostles
Albrecht Durer
Oil
1526
7'1"x2'6"

4
Big Self-Portrait
Chuck Close
Acrylic
1968
8'11"x6'11"x2

5
Three Angels
Andrei Rublyev
Tempura on wood
1410
4'8"x3'9"

6
Voltaire
Jean-Antoine Houdon
Marble
1781

7
Jaguar Devouring a Hare
Antoine-Louis Barye
Bronze
1851
1'4"x3'1"

8
The Peacock Skirt
Aubrey Beardsley
Pen and Ink
1894

9
Untitled Film Still #35
Cindy Sherman
Black-and-white photograph
1979
10"x8"

10
Reclining Figure
Henry Moore
Elm wood
1939
3'1"x2'6"


(Primary Key) PaintID  numeric  9  not Null
                    PaintTitle char    18  not Null
                    PaintAuthor char 18 not Null
                    PaintBrand char 18 not Null
                    PainYr       timestamp 8 not Null
                    PaintSz      decimal   9  not Null


0
 
LVL 2

Accepted Solution

by:
Shahankit earned 500 total points
ID: 11681474
i think its error because of blank line in the flat file .. try after deleting blank line....
else i don't see anything wrong with the steps in the provided website...

cheers
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jdocchio01
ID: 11681517
I'll keep messing around with it and follow the website instructions.
Thank you for all your help.

jd
0
 
LVL 2

Expert Comment

by:Shahankit
ID: 11681540
This is just for referance...
the error was ...

The communication link between the driver and the data source to which the driver was connected failed before the function completed processing

I am happy that link helps

Best Of luck for further
Ankit
0
 

Author Comment

by:jdocchio01
ID: 11686882
Hello Ankit,

Just wanted to let you know I got the bcp utility functional.  I got the flat text file to copy into the table in database in SQL Server. The site you provided did wonders.

Thank you again.

jd
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question