Link to home
Start Free TrialLog in
Avatar of dory550 lambert
dory550 lambertFlag for United States of America

asked on

Inserting array into an mssql table

Hi Guys
I have to insert an array of 6000 rows and 50 columns to an existing remote mssql table
with the correct field sequence
Can anyone provide me with the shortest code to do that
Thank you for your help
Dory

Avatar of imran_fast
imran_fast

What is the format for your source?
Is it a text file?
Then use DTS.
Avatar of dory550 lambert

ASKER

To Imran fast
Actually I need to transfer periodically aN MsAccess table to An MsSql table
I am using ASP/VBscript/ADO
I simply use rs.getrows to create the array with code.
I assumed this would the quickest method since a text file would require 6000 disk accesses
The only access I have to the MsSql is through an admin tool which is provided by ny webhosting company and does not have DTS enabled.
Your input is appreciated
thank you
Dory
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<<well, the fastest would be the following:
create a linked table from access pointing to the mssql table, and then do a simple insert (append) query from the access table to the mssql linked table.>>I concurr...use that method and package it in a scheduled job...