Solved

SQL Server 2000 and BCP utility

Posted on 2004-07-30
6
1,988 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
  • 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now