How do I Access database from my ASP.NET application ?

[do_widget id=bcn_widget-2]
Windows Web Hosting allows you to access the database from your ASP.NET application. Please refer the below details to know how to connect the ASP.NET application with your Database.

[do_widget id=text-16]
[do_widget id=text-20]

Share This Now: [addtoany]

Watch Reseller Hosting Video Tutorial


[do_widget id=text-24]
[do_widget id=text-25]

Procedure

Connection String to access the MSSQL Database :

Windows Reseller Hosting comes with Plesk Control Panel.  You can use the below connection string in your web.config file to access the database from your Application.

<add name=”sqlConStr” connectionString=”Data Source=serverIP; Initial Catalog=databasename;User ID=databaseusername;Password=password;” providerName=”System.Data.SqlClient”></add>

Data Source :  You can supply the IP of your Hosting server (or) You can use localhost.

Initial Catalog :  Your Database Name

User ID : Your Database Username

Password : Your Database Password

 

Screen Shots

Refer Screen Shots

Troubleshooting FAQs

Mysql Database Troubleshooting FAQs

[sp_faq limit=”10″ category=”1836″ single_open=”true” transition_speed=”300″]

Downloads

Related Downloads

[do_widget id=text-28]

[do_widget id=text-29]

[do_widget id=text-30]

[do_widget id=text-31]

[do_widget id=text-32]

[do_widget id=text-33]

[do_widget id=text-34]

[do_widget id=text-35]

[do_widget id=text-37]

Related Articles