Products 
ASP Source Control
FingerTips
Link Demon
netPROFIT Lite
ASP Knowledge Base
Display your PageRank™
 myLoudASP 
Username
Password
 Latest News 
LoudASP Source Control 2004 released
LoudASP today released the latest update to o...
[Mar 5 2004]

LoudASP introduces upgrade pricing
Today we have introduced upgrade pricing for ...
[Jun 14 2003]

Link Demon 2003 Service Pack 2 Released
LoudASP today released the latest update to o...
[May 18 2003]

 Hot Links 
Banner Exchange Script
Link Exchange Software
Subscription Software
Online Website Builder
Homepage Hosting Scripts
Website Builder
  Home | About Us | Contact Us | myLoudASP | Our News | Our Products | Our Support | Our Sitemap

LoudASP Knowledge Base - ASP and Database
Active Server Page knowledge dealing with databases

Easy SQL How To (Insert)

If you need to put data into a table using SQL this is the code you will want to use.

SQLInsert = "Insert into MyTable (COL1, COL2) values('" & VAR1 & "','" & VAR2 & "')"

Change MyTable with the name of the table you want to insert data into. Then change COL1 and COL2 with the name of the columns that are going to hold the data, finally VAR1 and VAR2 are the variables that have the data that should be put into the database.

If you have more then one columns just continue the pattern. You would add COLx and then VARx. REMEMBER that COL1 will equal VAR1 so what ever pattern you use for the columns you need to keep those positions for the variables.

Please help us improve our service by rating this FAQ.
1 = poor to 5 = very good
1   2   3   4   5  

This FAQ has been read 5268 times.


How to Connect to a Database (DSNLESS)

Easy SQL How To (Insert)

Easy SQL Help (Update)

Easy SQL Help (Delete)

Easy SQL Apostrophes Bug Fix

Easy How To SQL (Select)

Database test for no records

 


Home | About Us | Contact Us | myLoudASP | Our News | Our Products | Our Support | Site Map | Resources | Additional Resources
Copyright © 1999 - 2006 LoudASP. All Rights Reserved.