Solved

SQL Server 2000 and BCP utility

Posted on 2004-07-30
6
1,999 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Read about achieving the basic levels of HRIS security in the workplace.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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…

688 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