What are the different namespaces used in the project to
connect the database?

Answer Posted / rahul singhal

in vb.net for sql server
imports system.data
imports system.data.oledb
imports system.data.sqlclient

in c# for sql server
using system.data
using system.data.oledb
using system.data.sqlclient

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you connect to sql server database without using sqlclient?

484


Describe datareader object of ado.net with example.

522


What is fill method in ado.net?

551


What is sqldatareader in ado.net?

509


What is disconnected scenario in entity framework?

543






What are the advantages and disadvantages of using datalist?

538


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

506


How to add an aggregate column?

545


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

462


Explain ODP.net

576


What is sqldatareader?

505


What does ole stand for in excel?

614


Which is faster ado.net or linq?

527


What is a datareader object?

591


Which is better ole db or odbc?

506