|
Database Connection Sample Code - 2eNetWorX
|
|||
| 2eNetWorX :: ASP, VB, Asp.Net, Vb.Net, C#, dotNet, .Net OpenSource Projects |
| MyDev | What's New | Projects | Tutorials & Articles | Services | Stats | Contact Us |
| Guest-09439 | /dev :: home :: samples :: database | 477 online visitors |
» Contributions
» Recordset Cache » OpenSource » Statisticus » OpenCYA!
» Undocumented... » Ask For Login » DSN'less Connection » Who's Online? » (All Samples)
|
DSNless Connection Code Sample
If you have a secure folder on your server, you may want
to avoid using DSN because it's a little bit slower. I've
set my data folder to be "secure". This means, the folder
has full permissions for the asp engine context, but no
permissions for the visitors.
<%
First way to define where your database is to use relative location by utilizing Server.MapPath method.
<%
You may want to define your physical database location. You should always use the physical location if you can.
<%
After defining the location, it's time to connect to the database and get the records!
<% You may execute an SQL statement to get your recordset filled:
<%
I hope this sample gives you a quick overview of
connecting to Access Mdb files.
|
Bot: Google
echoPANEL, Free .NET
FogBugz Hosting Plans
|
| privacy policy , license , disclaimer , © 2000-2004, 2eNetWorX. [page generated in 203 ms.] |