"Connection String", is a Simple question strike in mind whenever someone is going to start work on Visual Studio with SQL Server.Connection String works just like a bridge to connect your application with your database.it doesn't matter, which kind of database are you using in your Server,It may be .xls or .mdb or may be .dbo .You have to just create a connection between your application and database.
For Example:
1.For .xls
strConnection = _T("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;"
bq=C:\\DatabasePath\\DBSpreadSheet.xls;DefaultDir=c:\\databasepath;");
2.For .mdb
add name="MasterSoftware.Properties.Settings.DbConnectionString"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Db.accdb"
providerName="System.Data.OleDb"
3.For .dbo
add name="MyConnectionString" connectionString="Data Source=my-pc;Initial Catalog=dbname;User Id=abc;Password=abc;"
The Second and most important thing is that ASP.Net provides connectivity from ADO.Net,it provides disconnected mode of connection,so that we can work virtually with our tables.
it's so simple and easy to learn these stuffs,i can explain here you later all things read continuously and carefully and feel free to clear any query.
Thanks.
Usually, I do several research to come out from my development error or bugs and I believe most of the time your's and mine bugs might be same So, here I am. I will share all of my experiences while the development of any project along with the technical news/updates.
Subscribe to:
Post Comments (Atom)
Which Game Engine you should choose | Neha Sharma
Unity3D and Unreal Engine are only 2 Game engine which executes an indispensable position in Game Industry. The choice of the engine must ...
-
Introduction: Most of the time our website display thousands of data in Gridview in ASP.net.Ususally admin can ...
-
CLR stands for Common Language Runtime. The .NET Framework provides a runtime environment called the Common Language Runtime or CLR. The CLR...
Hey Dear,
ReplyDeleteyou have tried very well just design this blog well. Every thing is setting provided by google. Let me know if you are facing in problem in designing you blog. You can reach me on pankaj.ics@gmail.com