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

Answer Posted / raju

SQl Server
namespace->Using System .data.Sqlclient;

SqlConnectin con=new SqlConnection
("Servername="";uid="";pwd="";database="")

Ms-Access:

Namespace->using system.data.oledb;

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

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the important components of .net?

768


What exactly is being serialized when you perform serialization in .net?

760


What is the new three features of COM+ services, which are not there in COM (MTS)

1731


What is .net latest version?

773


I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.

1695


When we go for html server controls and when we go for web server controls?

784


What is machine.config in .net?

789


How anonymous method is different from a lambda expression?

742


What’s different between process and application in .net?

812


What are the features of dot net?

793


What is the purpose of enumerable class in .net?

849


Write the .net syntax for 'for loop'?

759


What is the benefit of .net core?

706


Should I use readerwriterlock instead of monitor.enter/exit?

729


What is Code group in .Net with respect to CAS

1791