If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > database inconsistencies

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-14-04, 23:18
softie() softie() is offline
Registered User
 
Join Date: Sep 2004
Posts: 21
database inconsistencies

creating an asp page that deals with an SQL database. when i try to display all records in table x, not all show up. so "select * from x" does not work within the asp but it does work if i use SQL.

also, if i deal with the database directly, i have to "commit;" after each statement or table x reverts back to its original state after i log off.
Reply With Quote
  #2 (permalink)  
Old 09-15-04, 05:15
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
More information would be needed to help with your first point - like what does your ASP code look like?

Re the 2nd point, yes you must issue COMMIT at the end of a transaction, which may actually consist of many statements. Some client software issues commits for you automatically, but it is actually better if you control this explicitly in your code.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 09-15-04, 12:52
softie() softie() is offline
Registered User
 
Join Date: Sep 2004
Posts: 21
how do i "commit" within an asp page?
Reply With Quote
  #4 (permalink)  
Old 09-15-04, 13:12
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Google is your friend; use it!
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On