Sie sind auf Seite 1von 8

Connection Strings for All Databases

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

Total Online Users: 13182

Silverlight Hosting Providers

Home | Forums | Videos | Advertise | Certifications | Downloads | Blogs | Interviews | Jobs | Beginners | Training | Consulting Login
Enter UserID or Email

Submit an Article Advanced Search

Submit a Blog

Search : Home Databases & DBA Connection Strings for All Databases

Go

Remember Me Sign In Register

Connection Strings for All Databases


By abdur rehman February 17, 2011
This article shows step by step different ways to get connection strings for all types of databases. The article is written for all type of users, beginners, intermediate, experienced

Page Views : 3284 Downloads : 60 Rating : Rate it Level : Beginner

Forgot Password Forgot Username Why Register Jump to Technology Website Sponsored by Print

Post a comment Bookmark

Similar Articles Author's other articles

Share

Email to a friend

Download Files: UDL conection-string file.rar

Tweet

Share

Sponsored by

Introduction Databases are widely used in applications to keep records. A large variaty of Database Management Systems are available in the market and in use. Every DBMS needs a different format of connection string. It's not possible to remember all those formats, so knowing how to get a Connection String for any database makes life easy. UDL file Method UDL Files are an easy way to get the desired connection string by simply filling in property pages. The following steps show how to make and use a UDL file for that. 1. Make a New Text Document

Become a Sponsor

Similar Articles

Most Read

Top Rate

How to: Generate or find Connection Studio Storing and Retrieving Connection S 2.0/3.5 Connection String in LINQ Configuring connection string using Windows Azure - Connect to SQL Az

2. Open the Text Document, Click on Save As.

C# Corner sur Facebook


Jaime
Tag Cloud
client result cache Data Warehouse odp.net ora provider for .net oracle vs sql server visual.stud

2,348

object database windows eloquera SQL Connection Warehouse Databases De


Become a Sponsor Resources About Us ASP.NET Hosting Authors Book Chapters Book Reviews C# Consulting C# Training Downloads Media Kit News & Events Prizes Product Reviews Resources Tips Tools User Groups Our Network

Denali CTP3 in Server 2008 R


and implementing a Data Download Denali CTP3 en application performance sql server how to install sq 2005 in Win Server 2008 R Denali CTP3 Installation o Installation of SQL Serve

oracle 11g Postgr

1 sur 8

3/31/2012 1:38 AM

Connection Strings for All Databases

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

.NET Heaven C# Corner DbTalks Interview Corner Longhorn Corner Mindcracker VB.NET Heaven

Latest Jobs Split Testing Designer .NET Developer Web Developer Application Engineer Expert .NET Developer Application Developer dot net developer MCA .NET Developer Needed .NET Developer Needed

Latest Interview Questions Application_Start in ASP.NET How to pass dynamically created into S through SQL parameters in C#.NET? How can we convert.Intofloat like conv Difference between Access specifiers a Hi everyone, How to scan a document forms in .net framework and i am using OS ......... Please help me Can we declare a variable const and vo What exactly the term cookies refer to? How to display Alert in JavaScript on A What is the difference between a Web Browser? How to open Child window in parent wi Application

3. Write filename as something.udl, file type All files, click Save. 4. Now run something.udl 5. Click on Provider tab. Select the provider and click Next.

6. Give the DataBase Path.

2 sur 8

3/31/2012 1:38 AM

Connection Strings for All Databases

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

7. Write Username, Password if any

7. Click on Test Connection.

8. If it's OK, then close it now.

3 sur 8

3/31/2012 1:38 AM

Connection Strings for All Databases

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

9. Now open udl file as Text File with Notepad

11. The Last line will have the Connection String

Visual Studio DataSource Method 1. Add DatagridView to your Form. 2. Click on Arrow in Top Right Corner of DataGridView, Click Choose DataSource, Select Add New DataSource

3. Select Database, Click on Next.

4 sur 8

3/31/2012 1:38 AM

Connection Strings for All Databases

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

4. Click on New Connection

5. Now Choose DataSource, Click on Continue database connection string - dontumindit (10).jpg

6. Browse For Database, Provide Username, Password, if any

5 sur 8

3/31/2012 1:38 AM

Connection Strings for All Databases


7. Click On Test Connection

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

8. If all is Ok, Click Previous, Copy the Connection String, and Click Cancel, Delete DataGridView if you don't need it.

Oracle Connection String Following is the Correct Format of Oracle Database Connection

private static string CONNECTION_STRING = "User Id=myUserID;Password=myPassword;Data Source=(DESCRIPTION=" + "(ADDRESS=(PROTOCOL=TCP)(HOST=myserver.server.com)(PORT=yourPort#))" + "(CONNECT_DATA=(SID=yourSID)));"

(For Detailed Study of Connection Strings) Online Connection strings

SQL Connection Strings

Do suggest/Comment, Help Others

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article [Top] About the author Rate this article 1 2 3 4

Looking for C# Consulting? C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a tradit company, our consultants are well-known experts in .NET and many of them ar trainers. We specialize in Microsoft .NET development and utilize Agile Developm Programming practices to provide fast pace quick turnaround results. Our softw model is a mix of Agile Development, traditional SDLC, and Waterfall models.

6 sur 8

3/31/2012 1:38 AM

Connection Strings for All Databases

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

abdur rehman <a href="www.dontumindit.blogspot.com"> My Programming Blog</a>

Click here to learn mo

Nevron Chart for .NET 2010.1 Now Available The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Pre apps. Download evaluation now.

Post a Feedback, Comment, or Question about this article


Subject: Comment:

Sponsored by

Submit

Become a Spons

Comments Good Work by Manish On February 17, 2011


Abdur, Nice work. Keep it up!

Re: Good Work by abdur On February 18, 2011


lets keep helping each other

Nice Article.. by Manish On February 17, 2011


Very helpfull article...

Re: Nice Article.. by abdur On February 18, 2011


lets keep helping each other

Thank you by Sam On February 18, 2011


I knew about UDL files but I forgot what the extension was. They are not something new but not enough people know about them. They can be very useful a

Another option by knights On February 18, 2011


Hi, Repeating the comments from one of the article by Suthish on the same subject. ----------------------------------------------------------------------------------would like to mention the following link by Microsoft.It guides to create connection string in a more generic way, incase if multiple server connections a available on internet and intranet.Thanks https://blogs.msdn.com/b/sqlforum/archive/2010/12/20/faq-how-do-i-find-the-correct-quot-server-quot-or-quot-da for-an-sql-server-instance-in-a-connection-string.aspx
R

Re: Another option by Sam On February 18, 2011


I thought that the purpose of this article is to make it unnecessary to do the extra work that the instructions in that blog describes.

Hosted by MaximumASP | Found a broken link? | Contact Us | Terms & conditions | Privacy Policy | Site Map | Suggest an Idea | Advertise With Us Current Version: 5.2011.8.6

7 sur 8

3/31/2012 1:38 AM

Connection Strings for All Databases

http://www.c-sharpcorner.com/uploadfile/2a62a4/connection-strings-fo...

2012 contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.

Channels: Jobs | Interviews | Consulting | Training | Photos | Authors | Tips | Forums | Blogs Programming: C# | Visual Basic | ASP.NET & Web Development | C++ | Other .NET Languages | Windows Vista | XAML | Tutorials Sponsors: ASP.NET Hosting | Cbeyond Cloud Services | DynamicPDF | Nevron | RedGate Software | Team Foundation Hosting

8 sur 8

3/31/2012 1:38 AM

Das könnte Ihnen auch gefallen