Solved

ADO.Net sql connection to a SQL Sever 2012

Posted on 2014-09-11
2
145 Views
Last Modified: 2014-09-18
I have a sql server installed in my pc and I'm trying to get some help with the following connection string... I'm getting an error on myConnection.Open()

            // String conString = @"Data Source=YGUYON-PC\YGUYON28;Initial Catalog=BobTaper;Persist Security Info=True;User ID=xx;Password=xx;Pooling=false;";

           //

            myConnection.Open();

Database screen shotDatabase screen shotDatabase screen shot 2Database screen shot 3
0
Comment
Question by:yguyon28
2 Comments
 
LVL 7

Assisted Solution

by:Camillia
Camillia earned 250 total points
ID: 40317922
I think since you have Windows Authentication, you need to either have Trusted_Connection=Yes attribute or  Integrated Security=SSPI,
0
 
LVL 46

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 40318685
Camilla is right. With Windows Authentication you don't need to provide a user and a password. Will run with the current user credentials. But still miss the provider.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MySQL Grouping 2 22
MSSQL: Replace text (typo) 7 31
configure dependency in POM for new database 3 15
Code works but it's slow 24 30
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.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

911 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

24 Experts available now in Live!

Get 1:1 Help Now