Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2004, 06:26 AM
Authorized User
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Gaz LG Danha
Default Duel Connection

Am trying to select data from one database and then inserting it into another database. Tryed to use a select statement in conjuction with an insert into statement. The problem arises that when you wish to insert into a database, you specify a connection and execute that connection. To my knowledge, you can only open one connectionstring to every connection.
Anyone

It Ends Here
__________________
It Ends Here
 
Old October 29th, 2004, 06:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes, just one conn string per connection. You don't say what rdbms you're using, but most have syntax that will allow inserts into another database via SQL. For example if it's Access you can add the IN clause to specify the database; if SQL Server you can use full 4 part name to specify the other server/db with a linked server setup.
 
Old November 2nd, 2004, 04:20 AM
Authorized User
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Gaz LG Danha
Default

Yes indeed. Thankyou kind pgtips.

It Ends Here





Similar Threads
Thread Thread Starter Forum Replies Last Post
connection ScottSheck BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 June 14th, 2006 05:54 PM
open connection in another connection adityamadisetty SQL Server 2000 1 May 4th, 2006 04:56 AM
Connection zaeem Dreamweaver (all versions) 1 May 1st, 2005 04:57 AM
Connection Help morpheus Classic ASP Basics 2 February 3rd, 2005 09:09 AM
connection through C kaushikroy C++ Programming 1 January 30th, 2004 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.