how to connect database connectivity in dotNET? if suppose
SQL server?and also MS access?

Answer Posted / varun

in the sql server

using system.data.sqlclient
sqlconnection con=new
sqlconnection("server=;uid=;pwd=;database=;");
con.open();

Ms-Access:

Namespace->using system.data.oledb;

oledbconnection con=new oledb connection
("Servername="";uid="";pwd="";database="")

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Different levels of priority provided by .net.

821


What is COM Interoperability in .NET

852


What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

743


i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

2158


What are the new features of Framework 1.1 ?

4249


Can a try block have more than one catch block?

828


Tell us the difference between managed and unmanaged code?

721


What is the advantage of .net?

739


What is Event Bubbling in .NET?

870


What is the difference between function and stored procedure?

793


What are the authentication methods in .net?

777


Tell us what is a variable of implicit type and what is its scope?

784


What is lambda expressions in c#?

802


Name the classes that are introduced in the system.numerics namespace.

844


What is a .net class?

825