Login | Register  

Executing Transact-SQL INSERT statement

by Scud   Saturday, November 26, 2005 Rating:
 Vote this news:


 In this example, we will add some records to a database. This source code helps us to adding records to database without slowing down database. 

 

<%

dim strConnection
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/our_db.mdb")
'strConnection = "Provider=SQLOLEDB;Server=ASP;User ID=sa;Password=;Database=MY_DB;"

Set objConn = Server.CreateObject ("ADODB.Connection")
objConn.open strCon
objConn.execute("Insert Into myTable (field1, field2) VALUES ("& some_data &", "& some_data2 &" )")
%>





Dotnetindex.com is listed with 411asp.net
Dotnetindex.com is listed with aspin.com
Dotnetindex.com is listed with jspin.com
PHP, ASP, .NET, JSP Resources, Reviews







page counter
Copyright © 2007 Powered by GNews Publisher Positive. All rights reserved. Contact Us - Load Time: 0.27 second(s)