ADO.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1923 Page Views: 

Explain Connection String used in ADO.Net?



Posted By: Avi Date: 2 December 2009 12:04:03 AM
 Answer:

When .Net application connects to a database or a data file, ADO.Net uses a connection provider specific to the type of database. We need to supply the Connection String to the connection provider.

The connection string contains the information that the provider need to know to be able to establish a connection to the database or the data file. For example, the provider needs the address of the database server (or the path to the data file), name of database, login credentials for the database, etc. and all these information is supplied through Connection String.


Posted By: eTechPlanet


Date: 2 December 2009 12:04:03 AM

When your application connects to a database or a data file you let ADO or ADO.Net utilize a provider to do the job for you. The connection string contains the information that the provider need to know to be able to establish a connection to the database or the data file. This can be done localy on your computer, on your local network or even over internet. The whole procedure is the same, whether you're using standard dsl or highly advanced mobile broadband connections.


Posted By: Johndecruse


Date: 10 February 2010 02:27:36 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image fSNqlM
Related Questions
ADO.Net : How do pass null as a parameter value?

How do pass null as a parameter value?

param.Value = DBNull.Value;
Category: ADO.Net Date: 10/15/2010 9:35:47 AM
ADO.Net : How do you define parameters to SqlCommand

How do you define parameters to SqlCommand

By adding them to collection Parameters.
Category: ADO.Net Date: 10/15/2010 9:25:47 AM
ADO.Net : How do you save changes to Entities object?

How do you save changes to Entities object?

obj.SaveChanges();
Category: ADO.Net Date: 10/15/2010 8:42:48 AM
ADO.Net : What systems does the LINQ to SQL supports?

What systems does the LINQ to SQL supports?

SQL Server and SQL Server compact
Category: ADO.Net Date: 10/15/2010 5:55:48 AM
ADO.Net : What classes can you use to process XML data in memory?

What classes can you use to process XML data in memory?

XmlDocument, XPathDocument, XPathNavigator and LINQ to XML
Category: ADO.Net Date: 10/15/2010 4:21:48 AM