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 is the difference between response.write & response.output.write?

591


Do I have any control over the garbage collection algorithm?

551


How do you create threading in.net?

561


What is .net latest version?

545


What is lambda expressions in c#?

606






What is .net3.5?

599


What is .net environment?

546


What is iis? Have you used it?

565


If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?

580


Describe the compilation process for .net code?

606


Explain what is a delegate?

588


what is the default security setting in .net?

532


Different levels of priority provided by .net.

595


Explain memory-mapped files.

632


If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?

517