Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data transfer msaccess to sqlserver

Status
Not open for further replies.

pflangan

Programmer
Jun 13, 2001
49
GB
I've got a problem transferring data from msaccess to sqlserver. the set up is as follows.

on the remote site i have an asp file that writes an xml file to the response object.

on my side of things (sql server) i open a recordset to that page

rs.open " "Provider=MSPERSIST", adOpenStatic, adLockBatchOptimistic, adCmdFile

Then i reconnect to my sqlserver, and call rs.updatebatch

here's where the problem is. If i transfer between two access database, or two sqlserver databases, there's no problem. even transferring from a sqlserver database to an access database is no problem.

the errors arise because the rowset schema from an access database comes out with attributes in alphabetical order, whereas sqlserver expects them in the order of which they appear in the table definition.

has any one got any ideas.
ps. sorry for posting this all over the place. it's such an all rounder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top