Solved

SQL Server Connection String

Posted on 2012-03-27
9
530 Views
Last Modified: 2012-06-21
I have migrated a Microsoft Access 2010 database to Microsoft SQL Server 2008.  Is the following connection string correct?

    <add name="ConnStrNSMDB" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=vcnsql90\i90;User ID=nsm1171;Password=[Secret Password];Initial Catalog=nsm;" providerName="System.Data.SqlClient"/>
0
Comment
Question by:Ray Turner
9 Comments
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 37770837
0
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 500 total points
ID: 37770869
Specifically http://www.connectionstrings.com/sql-server-2008

Much depends on your server set up and how you want to connect to it.
0
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37770891
Just remove provider key:-

<add name="ConnStrNSMDB" connectionString="Data Source=vcnsql90\i90;User ID=nsm1171;Password=[Secret Password];Initial Catalog=nsm;" providerName="System.Data.SqlClient"/>

Open in new window

0
 
LVL 8

Expert Comment

by:PeteEngineer
ID: 37770995
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 8

Expert Comment

by:PeteEngineer
ID: 37770999
Or do this:

 In the design view drag in the sql data source object and configure from there.
0
 
LVL 16

Expert Comment

by:Rose Babu
ID: 37771155
remove Provider=Microsoft.ACE.OLEDB.12.0; in the connection string and update the connectionstring as below.
  <connectionStrings>
    <add name="ConnStrNSMDB" connectionString="Data Source=vcnsql90\i90;Initial Catalog=nsm;User Id=nsm1171;Password=[Secret Password];" providerName="System.Data.SqlClient"/>
  </connectionStrings>

Open in new window

Try this
0
 
LVL 35

Expert Comment

by:YZlat
ID: 37771170
you are connecting to SQL Server databse and Microsoft.ACE.OLEDB.12.0 is a provider for Access db
0
 
LVL 13

Expert Comment

by:Rick
ID: 37771487
<connectionStrings>
<add name="ConnectionNameHere" connectionString="Data Source=server.domain.com;Initial Catalog=DatabaseNameHere;Persist Security Info=True;User ID=UserIdHere;Password=PasswordHere;pooling='true';Max Pool Size=240;Connection Timeout=600" providerName="System.Data.SqlClient"/>
</connectionStrings>

Open in new window

0
 

Author Closing Comment

by:Ray Turner
ID: 37774971
Thanks!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL Query Syntax Error 9 34
dynamic menu in asp.net c# 11 30
Log Backup 2 13
ASP.NET Web API or ASP.NET Core MVC? 3 25
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

18 Experts available now in Live!

Get 1:1 Help Now