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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Input Help

Status
Not open for further replies.

roaml

Technical User
Joined
Feb 19, 2002
Messages
264
Location
US
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 = &quot;SELECT * FROM WO_Table where wo_number=&quot; & Request.QueryString(&quot;RecID&quot;)
Set RS = DataConn.Execute(msql)
%>
Dataconn.Open &quot;Data Source=prodserver;Provider=SQLOLEDB; Initial Catalog=wodb;User ID=woproj;Password=projwo&quot;

DataConn.Execute(&quot;UPDATE WO_Table SET WO_Table.status='&quot; & Request.Form(&quot;status&quot;) & &quot;' WHERE WO_Table.wo_number=&quot; & session(&quot;wo_number&quot;) &&quot;;&quot;)
 
sounds like you need a SQL tutorial more then a SQL Server turorial
try
otheriwse


the web is full of is stuff..


_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
Hi,

I know how to do a SQL insert into for ColdFusion, is it the same format? (see below)

INSERT INTO WO_Table(one, two, three)
VALUES('#one#', '#two#', '#three#')

Thanks.
 
SQL is a very standardized language. There are slight differences in database syntax for parameters, but other then that it's a standard that doesn't change from platform to platform.

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top