Solved

SQL Server 2000 and BCP utility

Posted on 2004-07-30
6
1,991 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How To Choose The Right "Big Data" Certification 5 124
ODBC Question 3 42
Distinct values from all columns in a table?? PL SQL 4 40
Teradata converting character to integer 2 18
In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Creating and Managing Databases with phpMyAdmin in cPanel.
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…

832 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