Here is the problem I am having. We have a
VB and SQL Server application. Every user that logs into the domain can use the application just fine. However, we recently had need to allow access to an individual outside of the domain and this is where the problem is.
I receive the following error:
Login failed for user (null) Reason: Not associated with trusted SQL Server connection.
In order to test this scenario I logged into my machine with the same username and password as the domain login. I set SQL Server Authentication to Windows Only. If I login locally I receive the same error that our remote user receives. Our remote user is a part of the domain as I am but the remote user is also part of other domains as well and therefore cannot log into one specified domain.
It was my understanding that by changing the SQL Authentication to Windows only the login would be authentication using NT\Windows authentication.
I received the same error if SQL Authentication is set to mixed mode. I expected to receive the error in mixed mode.
Here is the connection string I am using.
NewConnection.ConnectionString = "Provider=SQLOLEDB.1;" _
& "Integrated Security=SSPI;" _
& "Persist Security Info=False;" _
& "User ID=" & Trim(UserID) & ";" _
& "Initial Catalog=" & Trim(Catalog) & ";" _
& "Data Source=" & Trim(DataSource)
' Open the connection
NewConnection.Open
Any help would be greatly appreciated.
Larry Asher