navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Updating Database

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Updating Database
Page: [1]
 
fmcampos

 

Posts: 29
Joined: 3/6/2002
From:
Status: offline

 
Updating Database - 3/24/2002 11:31:42   
Hi,
I wonder if someone knows a practical way of updating a tables contents with the contents from another table.
Let's say I have table Customers in a database and the same table Customers in a backup database. What I want to do is to copy the entire table contents in Customer and just overwrite everything on the backup table..

jeffmetcalf

 

Posts: 186
Joined: 3/16/2002
From:
Status: offline

 
RE: Updating Database - 3/24/2002 16:12:48   
SQL or Access?

the manner is still the same, just easier in access because you can use the query grid. Open a new query, add the table you want to get the data FROM, click Query, Append Query, select the table to add the data to, and map the fields.

With SQL server it's

insert into tbl_customers2 (Lastname,firstname...etc) from
(select lastname,firstname..etc from tbl_customer1)

the important thing to remember is the column numbers. They will insert firstcol from tbl2 from firstcol tbl2...secondcol tbl1 from secondcol tbl2..how you list them in the statement...not by what you name them.



Edited by - jeffmetcalf on 03/24/2002 16:13:27

(in reply to fmcampos)
fmcampos

 

Posts: 29
Joined: 3/6/2002
From:
Status: offline

 
RE: Updating Database - 3/24/2002 19:39:27   
Hi, thanks for replying.

Actually it's an Access database (actually 2 databases ) and what I wanted to do is import the table from of them to the other overwritting everything on the other. The thing is that I want to do that with ASP, so I can automate that through a webpage...


(in reply to fmcampos)
jeffmetcalf

 

Posts: 186
Joined: 3/16/2002
From:
Status: offline

 
RE: Updating Database - 3/24/2002 19:55:42   
Well...through ASP it's beyond me, hoss. I'm still a babe in woods here. I know you can connect a web to more than one db. And your query string would have to be 'fully qualified'

ie
select into db2.tblcustomers yada yada
from
(select db1.tblcustomers)

but other than that...gotta ask some of the pros.



Edited by - jeffmetcalf on 03/24/2002 21:21:43

(in reply to fmcampos)
fmcampos

 

Posts: 29
Joined: 3/6/2002
From:
Status: offline

 
RE: Updating Database - 3/24/2002 20:53:44   
Ok it's already something, thanks . I'll try to look for more info...


(in reply to fmcampos)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Updating Database
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts