Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Problems using OpenDataSource in MS SQL to export to Dbase III sizes over 262,144 KB

Avatar of dbmgroup
dbmgroupFlag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005Microsoft Applications
8 Comments1 Solution1904 ViewsLast Modified:
Hi all,

Have this snippet of code that I use fairly often:

insert into OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0', 'Data Source=D:\DP1_DBF\;Extended Properties=dBASE III;')...Any_DBF
	(Field1, Field2, Field3)
select Field1, Field2, Field3
from dbo.Any_Name

Usually works great (and it's perfect for a lot of the dynamic stuff we do), but I run into this error on large tables when the .dbf size hits exactly 262,144 KB.  (2^18 in KB, so not a random number).

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Could not update; currently locked.".
Msg 7343, Level 16, State 2, Line 1
The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" could not INSERT INTO table "[Microsoft.Jet.OLEDB.4.0]".

Any ideas to get around this limitation or possible workarounds?  It would need to work in SQL 2000/2005/2008.  Thanks in advance =)
Avatar of pcelba
pcelbaFlag of Czechia image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answers