![]() ![]() (provider: TCP Provider, error: 25 - Connection string is not valid) "Įdit 2: So the solution to this issue is to not specify the server instance name if you're attempting to connect from OS X (and possibly Linux?). Verify that the instance name is correct and that SQL Server is configured to allow remote connections. The server was not found or was not accessible. ": A network-related or instance-specific error occurred while establishing a connection to SQL Server. ![]() The exception that is thrown is the following: SqlDataReader reader = command.ExecuteReader() Ĭonsole.WriteLine(((IDataRecord)reader)) Using (SqlCommand command = new SqlCommand("Select * from UserAccounts", connection)) Using (SqlConnection connection = new Id=xxxx Password=xxxx")) ![]() Anyone know what the issue might be? using System NET Core v1.1, but the connection times out on Visual Studio for Mac. This piece of code executes just fine on Visual Studio 2017 and. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |