Now here in this tutorial, I’ll explain the definition of SQL and how to get connection string to connect sql server database in Asp.net. In my previous tutorials, I’d explained about sql injection with example, insert update and delete on asp.net gridview and other more cracking tutorials on GridView, Asp.net, SQL Server here.
In my previous tutorials, I’d explained the difference between dataset datareader dataadapter dataview in .net, difference between executereader executenonquery and executescalar, top 10+ oops concepts with an examples and other similar tutorials on difference, appSettings, connectionStrings here. Now here in this tutorial, I’ll explain the main difference between appsettings and connectionstrings in asp.net with an example.
Now here in this tutorial, I’ll explain how to read or get connectionstring from web.config file using c# as well as vb.net in Asp.net. Read the full tutorial to get a clear cut idea on how to obtain connectionstring from web.config file. If you feel that that the tutorial was worth your time, then please do check out our previous tutorials as well as I mentioned below. In my previous tutorials, I’d explained about appSettings vs connectionStrings in web.config file, sql injection with example and other more amazing tutorials on connectionStrings, Asp.net here.