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 makes .net core cross platform?

737


Which namespace is require to used XML in .NET?

812


Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

2151


When should I use .net core?

820


What is WSDL? Explain its architecture?

885


Explain the features that are common to all .Net languages.

911


Is it true that objects don't always get destroyed immediately when the last reference goes away?

795


What is loosely coupled solution in.net?

776


What is delegation in .net?

837


What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

730


What is the difference between .net and laravel?

783


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

755


What is manifest in .net?

860


What is the use of design pattern?

776


How does cas works?

770