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 would u connect to database using .NET?

Answer Posted / rajeev ranjan lall

SqlConnection conn = new SqlConnection("Data
Source=ServerName;Initial Calalog=DatabaseName;User
ID=username;Password=password")

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to pass multiple tables in datasets simultaneously?

1016


What are the difference between readonly vs. Const?

949


What are all the different methods under sqlcommand?

936


What are the ado.net components?

973


Explain the dataadapter class in ado.net?

1138


How can we save all data from dataset?

946


What are the advantages of ado.net?

860


What is ado.net full form?

942


Why ca not we use multiple inheritance and garbage collector paralelly in .net?

952


What is difference between ado.net and asp net?

981


What is the use of Dataview?

1070


What is namespace in ado.net?

950


What is connected architecture in ado.net?

989


oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?

2341


What are three methods for displaying data in a syncfusion datagrid

1018