Where do you store connection string ?

Answers were Sorted based on User's Feedback



Where do you store connection string ?..

Answer / ansu kumar

we
store
connection string in
web.config file under tab
<appsettings>

Is This Answer Correct ?    15 Yes 3 No

Where do you store connection string ?..

Answer / s.balakrishna

we store connection string under web.config file

Is This Answer Correct ?    2 Yes 0 No

Where do you store connection string ?..

Answer / dheeraj

<ConnectionStrings>
add name=""
ConnectionString="datasource="servername";catalog="database
name";
<ConnectionStrings>
and that code is to written under web.config file.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ADO.NET Interview Questions

What are the different ado.net namespaces?

0 Answers  


How does entity framework work?

0 Answers  


How to identify the controls which can be used for binding data?

0 Answers  


If we want to connect to many databases in dataaccess layer such as MSAccess,Sql server,oracle means not to a particular database depends on condition we have to connect to appropriate database in this scenario if we without changing code Ho wdo you handle this situation?

4 Answers   Honeywell,


Explain the dataadapter class in ado.net?

0 Answers  






How to connect and retrieve data from database using dataset

0 Answers  


What are all features of ADO.Net?

0 Answers  


How is it possible to get 2 tables of data at a time by using data reader?

0 Answers  


What is csdl entity framework?

0 Answers  


What is ado circle?

0 Answers  


What are the differences between OLEDB and SQLClient Providers?

0 Answers  


What are all the different methods under sqlcommand?

0 Answers  


Categories