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?

Answers were Sorted based on User's Feedback



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

Answer / aravind

in code behind give namespace
using System.data.sqlclient;
and write connections string in web.config to which
database to connect

Is This Answer Correct ?    40 Yes 6 No

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

Answer / guest

in web.config file
<configuration>

<appSettings>
<add key="SqlCon" value="Data
Source=winserver;initial
Catalog=cieflnew;uid=cieflnew;pwd=cieflnew; Connection
Lifetime=0;Max Pool Size=10000;Min Pool Size=0;Connection
Reset=false;Pooling=true;Persist Security Info=False"/>
</appSettings>
<system.web>
and in code behind
Sql cmd= new Sql command(Query here,con);
cmd.executenonquery();

Is This Answer Correct ?    23 Yes 7 No

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

Answer / rajesh chekuri

MySQLConnection myConn;
myConn = new MySQLConnection(new
MySQLConnectionString("localhost", "databse", "User",
"password").AsString);
For More Info Visit www.funnydotnet.co.cc

Is This Answer Correct ?    15 Yes 2 No

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

Answer / 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

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

Answer / manish

in the sql server

using system.data.sqlclient
sqlconnection con=new
sqlconnection("server=;uid=;pwd=;database=;");
con.open();

Is This Answer Correct ?    5 Yes 3 No

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

Answer / konda

USe system.data.oledb for connect int both sql and Ms
access and Oracle also

Is This Answer Correct ?    5 Yes 4 No

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

Answer / 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

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

Answer / prabha

hi,

I have MySQL so how to connect to dotnet

Is This Answer Correct ?    10 Yes 15 No

Post New Answer

More Dot Net General Interview Questions

What is assemblies in .net?

0 Answers  


How to write an MMC snap-in for my Windows service?

1 Answers  


What?s a Windows process?

1 Answers  


Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column

0 Answers  


How do you turn off cookies for one page in your site?

3 Answers   Siebel Systems,


Is .net core the future?

0 Answers  


Is .net capable of supporting multi-thread?

0 Answers  


<li id="Accomodation" runat="server" visible="false"><a href="../searchaccommodation.aspx?">Accomm</a></li> i have this code.now on server side i want to compare this id(Accommodation) value and want id i.e.Accommodation.visible=true;

0 Answers  


What is stored procedure ? how we use it in .NET ?

0 Answers   MCN Solutions,


What is UDDI and how to register a web service ?

2 Answers   Msoft, TCS,


What is difference between .net core and .net standard?

0 Answers  


How will you load an assembly which is not referenced by current assembly?

0 Answers  


Categories