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

 

when I add or modify a record in ado ...

 
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 >> when I add or modify a record in ado ...
Page: [1]
 
lsfphelpls

 

Posts: 465
Joined: 3/16/2005
Status: offline

 
when I add or modify a record in ado ... - 8/17/2007 15:17:10   
when I add or modify a record in ado , if I have two primary keys , IF I UPDATE[MODIFY] A RECORD then primary keys override and if I add become new ones automatically ? Basically this happens [depends only] when the keys are different ?
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: when I add or modify a record in ado ... - 8/17/2007 15:26:43   
If a primary key is set to Autonumber or Identity, then the PK will be created upon each sucessful add.

UPDATE's are performed based on the WHERE clause (or lack thereof) and it is extremely adviseable *not* to update your PK's.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to lsfphelpls)
lsfphelpls

 

Posts: 465
Joined: 3/16/2005
Status: offline

 
RE: when I add or modify a record in ado ... - 8/17/2007 15:46:32   
May update by
oRS.Addnew
....................
....................
oRS.update

or I must use ...... ?
primary keyis not an Autonumber ....

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> when I add or modify a record in ado ...
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