Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SQL Server 2000 and BCP utility

Posted on 2004-07-30
6
Medium Priority
?
2,011 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 2000 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
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

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
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

650 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