| ASP Database Connection | ASP Database Connection Script by ASP Web Pro |
|
ASP ScriptsASP DATABASE CONNECTIONASP is a great tool for building dynamic web pages. One of the most basic scripts you need in your ASP web pages is the asp database connection script. Here are two examples of asp database connections. This example uses a DSN connection:
This example uses a DSN-less connection:
When you copy / paste the DSN-less code to your page, just remove the _ at the end of the objConn.ConnectionString line and put the Server.MapPath on the same line. As a rule of thumb, this should always go on one line, but for display purposes here we had to put it on two lines. If you want to learn more about these connection methods, be sure to read our Open Database Connection Tutorial.
|
||||||
|
Main Menu Other Resources
Last Updated:
|
||||||
|
© 1997-2008 ASP Web Pro, Inc. | Terms of Use
|