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

Explain what is an anonymous method and how is it different from a lambda expression?

713


Please explain what is a delegate?

966


What is an anonymous method and how is it different from a lambda expression?

763


What's singleton activation mode in .net?

827


Can you explain what do you understand about web service?

838


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

856


What is the difference between boxing and unboxing?

755


Explain the process of serialization in .NET?

836


Elements of CAS

1961


What are the properties of ADO.NET?

879


Tell me what is serialization?

786


How will you make .NET programs work in Linux ?

1732


What is static constructor, when it will be fired?

759


How do you generate a strong name?

832


What is meant by localization?

834