x

How do I use a Database Data Source Name?

Hosting - Windows - Database Data Source Names (DSNs)


A Data Source Name, or DSN, is how you reference your database in your ASP applications. To create a DSN:

 

  1. Access your Control Panel at http://www.your-domain.com/stats/.
  2. Click on Database Tools.
  3. Scroll to the ODBC Data Sources section and click the Add New Data Source button.
  4. Enter your DSN Name (give it any name you want).
  5. Enter your Database Name (include path to file such as: data\my.mdb).
  6. Select your Database Type (Access, FoxPro, MSSQL).
  7. Click the Insert button.

Remember that you must reference your DSN as userid.[DSNName]. Your database must be stored in the data/ directory of your hosting account if you want to allow write access in your web applications. By default, in order to protect your databases, the /data directory is configured to deny all web requests
 


Search Customer Service
Manage My Account
Contact Us
Feedback
Thank you for your feedback.
Do you find this page useful?

Send us your feedback
Email address (optional)