🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.internet.access.wanted
8 messages
8 total messages Started by J�rgen Fri, 27 Feb 1998 00:00
copy table from accsess to sql-server...
#1223
Author: J�rgen
Date: Fri, 27 Feb 1998 00:00
12 lines
1475 bytes
Hello
following szenario:
SQL-Server 6.5 and Access 97
We have to copy a whole, in Access existing table to the SQL-Server. We
managed to do this by a stored procedure which must be called for every row
of the table. The problem is that this lasts to long.
Now our question:
How to copy a whole table by only one call to a  stored procedure. We don�t
want to use the BCP Programm.
Thanks in advance
Willi & Klaus
Re: copy table from accsess to sql-server...
#1224
Author: Gerhard Schwanz
Date: Fri, 27 Feb 1998 00:00
6 lines
1197 bytes
you can export data (tables) from access to any odbc data source with
just a menu call and a few dialog boxes?

On Fri, 27 Feb 1998 14:39:04 +0100, "J�rgen"
<senkelw@uni-duesseldorf.de> wrote:
Re: copy table from accsess to sql-server...
#1225
Author: Wilfried
Date: Fri, 27 Feb 1998 00:00
3 lines
1217 bytes
That's  true, but we don't to do this by menu calls. We'd like to do it by a
Visual Basic function.
Re: copy table from accsess to sql-server...
#1226
Author: Glen
Date: Fri, 27 Feb 1998 00:00
31 lines
1957 bytes
directyodbc:
create connection (take a look for create connection help )
create querydef, which will append whole table
Experience showing that the most effecient transaction size is about 10,000
records.
Then open querydef as recordset and cycling by 10,000 records , using start
tarnsaction,committransaction methods add whole table
Anyway, it will be more efficient then using BCP and even fatser then using
direct store procedure.
 

J�rgen <senkelw@uni-duesseldorf.de> wrote in article
<6d6fnh$cu5@selena.rz.uni-duesseldorf.de>...
> Hello
> following szenario:
> SQL-Server 6.5 and Access 97
> We have to copy a whole, in Access existing table to the SQL-Server. We
> managed to do this by a stored procedure which must be called for every
row
> of the table. The problem is that this lasts to long.
> Now our question:
> How to copy a whole table by only one call to a  stored procedure. We
don�t
> want to use the BCP Programm.
> Thanks in advance
> Willi & Klaus
> 
> 
> 
> 
Re: copy table from accsess to sql-server...
#1227
Author: Michael Kaplan
Date: Fri, 27 Feb 1998 00:00
14 lines
1392 bytes
The upsizing tools uses DoCmd.TransferDatabase. How about that?

Michael

Wilfried <senkelw@uni-duesseldorf.de> wrote in message
news:6d6onu$3qh@selena.rz.uni-duesseldorf.de...
>That's  true, but we don't to do this by menu calls. We'd like to do it by
a
>Visual Basic function.
>
>
>
>
Re: copy table from accsess to sql-server...
#1228
Author: theKEG
Date: Fri, 06 Mar 1998 00:00
21 lines
1664 bytes
Use the upsizing tools.  I'm not sure if it comes with SQLServer it might be
a seperate package.

theKEG

J�rgen wrote in message <6d6fnh$cu5@selena.rz.uni-duesseldorf.de>...
>Hello
>following szenario:
>SQL-Server 6.5 and Access 97
>We have to copy a whole, in Access existing table to the SQL-Server. We
>managed to do this by a stored procedure which must be called for every row
>of the table. The problem is that this lasts to long.
>Now our question:
>How to copy a whole table by only one call to a  stored procedure. We don�t
>want to use the BCP Programm.
>Thanks in advance
>Willi & Klaus
>
>
>
Re: copy table from accsess to sql-server...
#1229
Author: Harley Arnett
Date: Fri, 06 Mar 1998 00:00
39 lines
2391 bytes
Why not just link the SQL table to Access and then use an update query to
move the data from one table to the other - the entire update will be
treated as one transaction.  WARNING - depending on the size of temp DB and
the number of records you are moving, you may want to do this in several
smaller transactions - just place a criteria on the Access table when doing
the update.  I have moved millions of rows using this method and it works
quite well - not as fast as fast BCP but very flexible and easy to run. 

Harley Arnett 

theKEG <keg@ozemail.com.au> wrote in article
<6dmoff$iln$1@news.wantree.com.au>...
> Use the upsizing tools.  I'm not sure if it comes with SQLServer it might
be
> a seperate package.
> 
> theKEG
> 
> J�rgen wrote in message <6d6fnh$cu5@selena.rz.uni-duesseldorf.de>...
> >Hello
> >following szenario:
> >SQL-Server 6.5 and Access 97
> >We have to copy a whole, in Access existing table to the SQL-Server. We
> >managed to do this by a stored procedure which must be called for every
row
> >of the table. The problem is that this lasts to long.
> >Now our question:
> >How to copy a whole table by only one call to a  stored procedure. We
don�t
> >want to use the BCP Programm.
> >Thanks in advance
> >Willi & Klaus
> >
> >
> >
> 
> 
> 
Re: copy table from accsess to sql-server...
#1230
Author: Arnaud Melon
Date: Tue, 10 Mar 1998 00:00
10 lines
1412 bytes
What do you exactly do with your stored procedure?
Else, to copy an access table into sqlsrvr table, you can attach your
sqlsrvr table in access and then use it like an access table.

Else, with your method, you can use begin tran (at the begining of the copy,
send this statement with a pass-through query) and commit tran (at the end)
to speed up the copy.

Arnaud
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads