Groups | Blog | Home
all groups > sql server clients > december 2003 >

sql server clients : Bulk insert error message


Olu Falowo
12/29/2003 10:39:43 AM
Dear All
I am carrying out a bulk insert from a csv file into a
SQL Server table using the 'Bulk insert' statement within
a stored procedure. This operation works okay whenever I
manually run this sp on the server. However it generates
the error message shown below whenever I call this sp
from a VB6 form. The db I am using is a SQL7 db which I
have restored on a SQL2000 db XP Prof machine, thereby
making it a SQL2000 db.

Thanks for your help.

Olu

------- start error message ----
'A different operation is preventing this operation from
being executed'.
Erland Sommarskog
12/29/2003 11:09:55 PM
Olu Falowo (ofalowo@hotmail.com) writes:
[quoted text, click to view]

I can't find this message in sysmssages, so it is not likely to be a
message from SQL Server. The .Error object in ADO includes a few more
members beside the .Description field. One of them is .Source.

It might help if you post the relevant code, including the VB code.

(And, you can always try SET NOCOUNT ON.)

--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
Olu Falowo
12/30/2003 4:08:09 AM
Erland,

The code I am refering to is inherited (i.e. written by
someone else). It refers to a DSN, which I have just
discovered, is wrongly configured. I have re-cofigured
this DSN and the system works okay. I would have expected
the error message to have narrowed down this problem!!

Anyway thanks very much for your time.

Olu

[quoted text, click to view]
AddThis Social Bookmark Button