Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Bulk insert problem

 
   Database Help (Home) -> Programming RSS
Next:  simple upload and save jpeg  
Author Message
piyush1

External


Since: Jan 17, 2005
Posts: 4



(Msg. 1) Posted: Wed Feb 09, 2005 1:41 am
Post subject: Bulk insert problem
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hi!
I have done bcp out using -V and -q switch from one table and using only -V
switch on another table on the server running on sql server 2000. the
datatype used is native i.e. -n switch.

When I am trying to import it using BCP IN in the server having same table
structures running on sql server 7.0, process is completing successfully. But
I want to use Bulk Insert and its not importing data on sql server 2000
rather throwing error.

ref:
truncate table rplctn_cnt_lg
Bulk insert rplctn_cnt_lg from 'c:\rpl\11072CNT.txt' with
(DATAFILETYPE='NATIVE')

Error

Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'STREAM' reported an error. The provider did not give any
information about the error.
The statement has been terminated.

Kindly help me with this solution. We have one project in hand where the
replication uses BCP and Bulk Insert combination. No of tables affected more
than 200. No. of sites more than 1000 where sql server 7.0/msde is there. One
master database running on sql server 2000.

TIA.... Regards,
Piyush Agarwal

 >> Stay informed about: Bulk insert problem 
Back to top
Login to vote
John Bell4

External


Since: Aug 17, 2004
Posts: 27



(Msg. 2) Posted: Wed Feb 09, 2005 6:53 am
Post subject: RE: Bulk insert problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

Assuming you are using the correct version number with the -V flags, you may
want to check out:

<a rel="nofollow" style='text-decoration: none;' href="http://tinyurl.com/6fg44" target="_blank">http://tinyurl.com/6fg44</a>

John

"Piyush" wrote:

 > Hi!
 > I have done bcp out using -V and -q switch from one table and using only -V
 > switch on another table on the server running on sql server 2000. the
 > datatype used is native i.e. -n switch.
 >
 > When I am trying to import it using BCP IN in the server having same table
 > structures running on sql server 7.0, process is completing successfully. But
 > I want to use Bulk Insert and its not importing data on sql server 2000
 > rather throwing error.
 >
 > ref:
 > truncate table rplctn_cnt_lg
 > Bulk insert rplctn_cnt_lg from 'c:\rpl\11072CNT.txt' with
 > (DATAFILETYPE='NATIVE')
 >
 > Error
 >
 > Server: Msg 7399, Level 16, State 1, Line 1
 > OLE DB provider 'STREAM' reported an error. The provider did not give any
 > information about the error.
 > The statement has been terminated.
 >
 > Kindly help me with this solution. We have one project in hand where the
 > replication uses BCP and Bulk Insert combination. No of tables affected more
 > than 200. No. of sites more than 1000 where sql server 7.0/msde is there. One
 > master database running on sql server 2000.
 >
 > TIA.... Regards,
 > Piyush Agarwal
 >

 >> Stay informed about: Bulk insert problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
BULK insert - I am trying to do bulk insert 5000 rows into a simple table that has: id pk identity, col_text nvarchar(500) How do i do bulk insert but to only insert data that is not duplicated eg. if i have already in table 'some_text' and bulk inserting ..

Permissions and Bulk Insert - SS2005. I have a need for users to BULK INSERT files on an adhoc basis. Basically they want to upload a file and have immediate access. Right now, I'm doing that by assigning those users to the bulkadmin server role, and having them call a procedure..

Bulk Insert into New Table - I'm trying to Bulk Insert data but the table has yet to be created. I don't know what the definition of the table should be so the data imports without a hitch. Any suggestions?

bulk insert and openrowset - i'm having the strangest problem right now and can't seem to figure out what's going on- here's the deal: i'm trying to use the openrowset command, in combination with the bulk insert command to load data from a text file into sql server. the text..

block Bulk insert - Hi, I was asked at a job interview to create a trigger that will block the bulk insert in a table. I HAVE NO IDEA OF HOW TO BLOCK BULK INSERT!! Any ideas? Thanks, Carly
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]