Setting up connection string in ASP.NET to SQL SERVER
Setting up connection string in ASP.NET to SQL SERVER:
You can also use this, that is more simple. The only think that you need to set is the YourDataBaseName here we give format :
<connectionStrings>
<add name="ConnStringDb1" connectionString="Data
Source=localhost;Initial Catalog=YourDataBaseName;Integrated
Security=True;" providerName="System.Data.SqlClient" />
</connectionStrings>
<connectionStrings> is a paired tag in web config file.
name,connectionString, catalog are attribute of this tag.
<connectionStrings><add name="ConnStringDb1" connectionString="Data Source=localhost;Initial Catalog=YourDataBaseName;Integrated Security=True;" providerName="System.Data.SqlClient" /></connectionStrings><connectionStrings> is a paired tag in web config file.name,connectionString, catalog are attribute of this tag.
Comments
Post a Comment