Hello,
I am so new to ASP. Can someone show me how to connect to a SQL Server 2000 database and input data.
The following code is used to update a SQL table, but I need to input into a SQL table.
<%
msql = "SELECT * FROM WO_Table where wo_number=" & Request.QueryString("RecID"
Set RS = DataConn.Execute(msql)
%>
Dataconn.Open "Data Source=prodserver;Provider=SQLOLEDB; Initial Catalog=wodb;User ID=woproj;Password=projwo"
DataConn.Execute("UPDATE WO_Table SET WO_Table.status='" & Request.Form("status"
& "' WHERE WO_Table.wo_number=" & session("wo_number"
&";"
I am so new to ASP. Can someone show me how to connect to a SQL Server 2000 database and input data.
The following code is used to update a SQL table, but I need to input into a SQL table.
<%
msql = "SELECT * FROM WO_Table where wo_number=" & Request.QueryString("RecID"

Set RS = DataConn.Execute(msql)
%>
Dataconn.Open "Data Source=prodserver;Provider=SQLOLEDB; Initial Catalog=wodb;User ID=woproj;Password=projwo"
DataConn.Execute("UPDATE WO_Table SET WO_Table.status='" & Request.Form("status"


