Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Insert record from one db to another db

LEGEND ,
Jan 11, 2007 Jan 11, 2007

Copy link to clipboard

Copied

Hi all,

need to retrieve a record from a table using varID (tblBookingForm) in one
database and insert in into another table (tblNetServ) in another database
on the same server, leaving the original record where it came from. Cant get
my head round it though MX doesn't seem to allow for 2 active connections.

Anyone help?

Regards
Simon

--
Simon Gare
The Gare Group Limited

website: www.thegaregroup.co.uk
website: www.privatehiresolutions.co.uk


TOPICS
Server side applications

Views

249
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 11, 2007 Jan 11, 2007

Copy link to clipboard

Copied

On Fri, 12 Jan 2007 04:54:42 -0000, "Simon Gare" <sg@simongare.com>
wrote:

>Hi all,
>
>need to retrieve a record from a table using varID (tblBookingForm) in one
>database and insert in into another table (tblNetServ) in another database
>on the same server, leaving the original record where it came from. Cant get
>my head round it though MX doesn't seem to allow for 2 active connections.
>
>Anyone help?
>
>Regards
>Simon

How about:

retrieve the value from the first database

save it into a session variable

stuff the value of the session variable into the second database

Win
--
Win Day, Wild Rose Websites
http://www.wildrosewebsites.com
winday@NOSPAMwildrosewebsites.com
Skype winifredday

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

LATEST
Which database are you using?

If it is Access then I would say you will to use a method similar to the one
Win suggested or invent another crafty way. If you are using SQL Server then
you can use a Linked Server.

Without the type of database it is very difficult to offer help.


"Simon Gare" <sg@simongare.com> wrote in message
news:eo74c1$152$1@forums.macromedia.com...
> Hi all,
>
> need to retrieve a record from a table using varID (tblBookingForm) in one
> database and insert in into another table (tblNetServ) in another database
> on the same server, leaving the original record where it came from. Cant
> get
> my head round it though MX doesn't seem to allow for 2 active connections.
>
> Anyone help?
>
> Regards
> Simon
>
> --
> Simon Gare
> The Gare Group Limited
>
> website: www.thegaregroup.co.uk
> website: www.privatehiresolutions.co.uk
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines