Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Error openning a connection

$
0
0

Here is the error: A connection was successfully established with the server, but then an error occurred during the login process, error 0, No process is on the other end of the pipe. What cause this error and how do I fix it?

SQL Server 2016

Visual Studio 2017

Here is my connection string:

string connectionString = @"Data Source=BRENTHUMBER\BRENT;Initial Catalog=BrentPractice;Integrated Security=False";
            SqlConnection conn = new SqlConnection(connectionString);
            SqlCommand cmd = new SqlCommand();
            try
            {
                string strCommand = "Insert INTO Tracker(id, edi, personsName, date, descriptor, details, reasons, notes)";
                cmd.CommandType = CommandType.Text;
                cmd.CommandText = strCommand;
                cmd.Connection = conn;
                conn.Open(); // <-----------------------------------------error here


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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