Solved

What is the equivalent OLEDB connection string of this SQL connection string?

Posted on 2008-10-27
4
326 Views
Last Modified: 2013-12-17
I need to convert the SQL Connection string below to a OLEDB connection string in order to use a certain 3rd party control.  Having all kinds of fun with it..................

As you can see, we are connecting to a SQL Server Express 2005 database.
<connectionStrings>

    <remove name="OrderEntry_prodSQLConnectionString" />

    <add name="OrderEntry_prodSQLConnectionString" connectionString="Data Source=your-136e9fe339\sql2005dev;Initial Catalog=OrderEntry_prodSQL;Integrated Security=True" providerName="System.Data.SqlClient"/>

    

    

 </connectionStrings>

Open in new window

0
Comment
Question by:jvalescu
  • 2
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22817369
that would be:
<add name="OrderEntry_prodSQLConnectionString" connectionString="Data Source=your-136e9fe339\sql2005dev;Initial Catalog=OrderEntry_prodSQL;Integrated Security=True;provider=SqloleDb;" /> 
or: 
<add name="OrderEntry_prodSQLConnectionString" connectionString="Data Source=your-136e9fe339\sql2005dev;Initial Catalog=OrderEntry_prodSQL;Integrated Security=True;provider="/>
    
    

Open in new window

0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 400 total points
ID: 22817377
sorry, the "or" was not complete.
for the reference:
http://www.connectionstrings.com/?carrier=sqlserver2005
or: 
<add name="OrderEntry_prodSQLConnectionString" connectionString="Data Source=your-136e9fe339\sql2005dev;Initial Catalog=OrderEntry_prodSQL;Integrated Security=True;provider=SQLNCLI;"/>
    

Open in new window

0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 100 total points
ID: 22819220
check out this site
you can create connection string to whatever database you want to configure
http://www.connectionstrings.com/
0
 

Author Comment

by:jvalescu
ID: 22821941
This is the one that did it for me, thanks!

<add name="OrderEntry_prodSQLConnectionStringOleDb" connectionString="Provider=SQLNCLI;Server=your-136e9fe339\sql2005dev;Database=OrderEntry_prodSQL; Trusted_Connection=yes;"/>
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now