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 > ASP > update database from ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-08, 01:33
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
update database from ASP

I have

Code:
Set DB = server.CreateObject("adodb.connection")
db.Provider ="MSDataShape"
db.open(connstring)
which work works and I have this
Code:
Set rs = db.Execute("Cleanup") 'delete query to clean data
Set rs = db.Execute("AddPagesnumbers") 'append query to GROUP the data
db.Close
if I run it get no error but if I open the database there no data if I close it and open it again the data there
open it the sec time I see the data
like there a time delay on see the data

anyway of refrenshing the tables I have updated.

as I want then read the data from the freshly updated tables and post them on A NEW Page.
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE

Last edited by myle; 06-28-08 at 02:02.
Reply With Quote
  #2 (permalink)  
Old 06-28-08, 08:02
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
I'm assuming the commands you are executing are stored procedures; how long do these take to execute?
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 06-28-08, 20:31
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
Not Long at all
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #4 (permalink)  
Old 06-29-08, 07:38
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Your ASP code is very funny... You don't execute update or delete statements with a recordset object, just directly against the connection will do.

Why don't you opena recordset of the updated items as soon as you've run your update command? See if the data has changed - I bet you will find it has!
__________________
George
Twitter | Blog
Reply With Quote
  #5 (permalink)  
Old 06-29-08, 16:42
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
they are stored querys in the database
What happen is a CSV file is uploaded which is replace with a file already there which is a link table.
"Cleanup" delete the data from a table
"AddPagesnumbers" append the CSV file base on a join from an other table

the reason for doing this is the iis server goes into over drive if i read the CSV link file
Its the easyest way i found to get exturnall data into a database.
yes I have the script check the CSV file I do 2 checks
1 is it a CSV ext
2 it read the first line making shore it has the right head info ie feild names
other wise it delete the file and no update done.
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On