Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update DB with SQL

Status
Not open for further replies.

Cheech

Technical User
Nov 6, 2000
2,933
EU
Maybe I am missing something.

I need to update a database using a SQL statement made up from passed information and such. Making the SQL statement was fun, but I need my asp page to just go ahead and update the database without further intervention???

Any one got any ideas??

I dont want to go to Chelsea!!!
 
Hi Cheech,

using SQL is easy...


strSQL = " * from table where [Criteria] = something"
' to place a record in the DB use "Insert into table where values = something"

'set the connection and open that DB for the query
set objRS = server.createobject("adodb.recordset")

objRS.open strSQL, "data connection info"

hope this helps...

Bastien
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top