Re: Access to SQL 2000 by William
William
Thu Mar 04 01:48:15 CST 2004
Jerry, you can load a Dataset and use its .WriteXML(Pathname:\Filename).to
serialize it. From there, you can use another
DataSet.ReadXml(Pathname:\Filename) and walk through the dataset firing
insert queries at each pass.
however, this is a fugly approach if you have SQL Server. I'd write a DTS
package and if you need to do it on a recurring basis, schedule it as a job
or rerun the package. DTS is very easy to use if this is all you are doing,
it's designed specifically for tasks like this, and it's very fast. ADO.NET
is a super technology and it's very powerful and will allow you to do
transfers, but it's not specifically designed for large scale data transfers
whereas DTS is. If simplicity is your goal, you won't beat DTS.
"Jerry" <JerryOfBorg@Yahoo.com> wrote in message
news:%23dFTr4aAEHA.2600@TK2MSFTNGP09.phx.gbl...
> I would like to write a program to convert Access tables to SQL 2000
tables.
> I could certainly write a program which collects each field in the access
> table and creates a similar field in SQL 2000 and then populates the file,
> however I am assuming that XML may offer a solution which would require
only
> a few statements. Does anyone with XML expertise have an idea of this?
>
> Regards
>
>