Re: load data from Access to SQL
From: Al Reid (areidjr_at_reidDASHhome.com)
Date: 08/31/04
- Next message: Tom Moreau: "Re: load data from Access to SQL"
- Previous message: ron: "Re: runtime error **URGENT**"
- Next in thread: Tom Moreau: "Re: load data from Access to SQL"
- Reply: Tom Moreau: "Re: load data from Access to SQL"
- Maybe reply: Paul Clement: "Re: load data from Access to SQL"
- Reply: Andre: "Re: load data from Access to SQL"
- Maybe reply: Al Reid: "Re: load data from Access to SQL"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 31 Aug 2004 08:00:19 -0400
"Andre" <no@spam.com> wrote in message news:uBq392wjEHA.2908@TK2MSFTNGP10.phx.gbl...
> Al,
>
> If I can speak in simplistic terms, what I'd like to do is the following:
>
> insert SQLtable
> select * from AccessTable
>
> Is something like this possible without having to loop through every record
> in my Access table? I'm at the point where I have the Access table in a
> recordset, but am unsure how do the Insert, without having to loop through
> every record.
>
> Thanks, Andre
>
>
Andre,
>From what you have provided, I don't know why DTS will not work for you, but...
This MAY work for you. I have not tried or tested it.
INSERT INTO SQLtable
SELECT *
FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0',
'Data Source="YourAccessDB.mdb";User ID=Admin;Password=;).AccessTable
For additional info look at the MSSQL BOL.
I hope this helps.
-- Al Reid How will I know when I get there... If I don't know where I'm going?
- Next message: Tom Moreau: "Re: load data from Access to SQL"
- Previous message: ron: "Re: runtime error **URGENT**"
- Next in thread: Tom Moreau: "Re: load data from Access to SQL"
- Reply: Tom Moreau: "Re: load data from Access to SQL"
- Maybe reply: Paul Clement: "Re: load data from Access to SQL"
- Reply: Andre: "Re: load data from Access to SQL"
- Maybe reply: Al Reid: "Re: load data from Access to SQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|