ISP Support Portal
Language
 
Home>Knowledge Base>Hosting>SQL connection test
User Login
Username
Password
 
 Login
Information
Article ID56
Created On6/8/2009
Modified6/8/2009
Share With Others

SQL connection test

Sample files written in ASP Net 2.0 to test connection to SQL server

Please download the following file: SQL_test.zip

Unzip into the root (WWW) of your website. Edit the file "web.config" and change the the "connection settings", replacing the defaults with your specific SQL database connection string:

<connectionStrings>
      <add name="MyDbConn"
         connectionString="Server=(local); Database=DBname; User Id=DBuserName; password=DBuserPassword"
         providerName="System.Data.SqlClient" />
  </connectionStrings>


Save the file and test at your website: http://www.yourdomainname.com/SQL_test