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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a dll be changed to an exe?

1085


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

918


How to produce an assembly?

1034


What is the difference between imperative and interrogative code?

2002


What does jit do?

1061


How do we access crystal reports in .net?

1067


Explain what is the difference between constants and read-only variables?

903


How to load a user control dynamically in runtime?

1015


Explain what does managed mean in the .net context?

935


Does .net supports destructors concept?

2027


Example from .net. Integer & struct are value types or reference types in .net?

967


What is the difference between server.transfer and response.redirect? Why?

1012


Types of evidence in .net with context to CAS

2115


Explain .net framework overview?

1030


What does il do?

928