Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?

970


How anonymous method is different from a lambda expression?

1007


Do you know what is lambda expressions in c#?

1068


What is jit compilers?

1129


How viewstate is being formed and how it is stored on client in .net?

1001


Do you know what's the difference between .net and laravel?

1138


Explain the code behind wors and contrast that using the inline style.

1003


What is the base class of Button control in .NET?

1091


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

972


Describe the compilation process for .net code?

1191


Is atl redundant in the .net world?

1000


Explain dataset.acceptchanges and dataadapter.update methods in .net?

1003


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

2513


What is immutability?

1016


Dynamic Fonts

1938