Ask a Question related to ASP Database, Design and Development.
-
Jerome #1
executing SQL query using ASP?
Hi,
I've got the following problem and I don't know how to make this (if
it's possible at all):
I want to make a form where the user can enter a criteria and then,
after pushing a button or link, a certain table in a certain DB is
updated. So it's not about updating a single record, but a whole table!
The single update is no problem using Dreamweaver for example.
What I want in fact is simply execute an SQL update query ...
Any help is appreciated
Jerome Guest
-
Error Executing Database Query
I have a website, which is visited by 18.000 unique users a day, who view almost 900.000 pages As you can see, one user views a lot of pages.... -
Error Executing Database Query.
The error occurred in C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutorial\index.cfm: line 2 2 : <cfquery name="atrwork"... -
error executing database query on login
I've noticed we started getting this message when you try to Login to the website. We have recently just installed the CF standard edition 7.0 We... -
another Error executing database query
Just when I thought I had all my forms finely tuned, I get the error below, which has me stumped (using DrmWeaver 2004, CF7, mysql): Error... -
Asynchronously executing query ?
I have been searching for an anser to this but it seems it is not a commonly used technique. If I execute a long running sp or query... -
Roji. P. Thomas #2
Re: executing SQL query using ASP?
Open a connection using ADO
execute the Query againest your statement.
--
Roji. P. Thomas
SQL Server Programmer ;)
________________________
"Jerome" <jherr@NOSPAM.mnhn.lu> wrote in message
news:uZMTumAsDHA.4060@TK2MSFTNGP11.phx.gbl...> Hi,
>
> I've got the following problem and I don't know how to make this (if
> it's possible at all):
>
> I want to make a form where the user can enter a criteria and then,
> after pushing a button or link, a certain table in a certain DB is
> updated. So it's not about updating a single record, but a whole table!
> The single update is no problem using Dreamweaver for example.
>
> What I want in fact is simply execute an SQL update query ...
>
> Any help is appreciated
>
Roji. P. Thomas Guest
-
Jeff Cochran #3
Re: executing SQL query using ASP?
On Fri, 21 Nov 2003 09:29:55 +0100, Jerome <jherr@NOSPAM.mnhn.lu>
wrote:
Well, stop using Dreamweaver and it's simple. :)>I've got the following problem and I don't know how to make this (if
>it's possible at all):
>
>I want to make a form where the user can enter a criteria and then,
>after pushing a button or link, a certain table in a certain DB is
>updated. So it's not about updating a single record, but a whole table!
>The single update is no problem using Dreamweaver for example.
>
>What I want in fact is simply execute an SQL update query ...
Okay, bad dig. This is simply normal ASP/ADO stuff. Open an ADO
connection, and run the query on that connection. Something along the
lines of:
(Access Database)
dbConnect = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
Server.MapPath("database.mdb") & ";"
set Connect = server.CreateObject("ADODB.Connection")
Connect.Open dbConnect
strSQL = "UPDATE table SET field = 'New Data'"
Connect..Execute (strSql)
As long as you know how to create the SQL query, it's not a big deal
to do the rest.
For other ADO connections such as to SQl Server, look at:
[url]http://www.able-consulting.com/ADO_Conn.htm[/url]
Jeff
Jeff Cochran Guest



Reply With Quote

