Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

VS 2013 - SQLServer 2012 same machine connection sting

$
0
0

SQL Server works. VB itself can see the DB and look at data. The app can't. I am using this connect string

Dim objConn As New SqlConnection("User ID=myacct\myname;Password=mypass;data source=myacct\mydb;initial catalog=myacct\mydb;")

Up top I have:

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.OleDb
Imports System.Math

And I get: Login failed for user 'myacct\myname'. The name, account and password are right. I'm not

So, what am I doing wrong and what should I be doing instead?


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>