I am having problems connecting to a SQL 2005 Express instance using Windows authentication.
I can consistently connect using SQL Server Management Studio Express and run queries etc without problems. However attempts to connect with OSQL using:
are inconsistent - sometimes they work, sometimes I get a "Cannot generate SSPI context" error message.
I also get similar inconsistency when trying to connect with Visual Basic (VB6). In all cases I am attempting to use Windows Authentication - I supply no username or password.
I cannot tie this down to any sequence of events. Everything tends to work fine for a while then it fails and I either have to reboot or wait a while until the problem 'disappears'.
I have SQL 2000 Development edition installed on the same machine which may or may not be relevant.
Any ideas?
I can consistently connect using SQL Server Management Studio Express and run queries etc without problems. However attempts to connect with OSQL using:
Code:
osql -E -Smypc\sqlexpress
I also get similar inconsistency when trying to connect with Visual Basic (VB6). In all cases I am attempting to use Windows Authentication - I supply no username or password.
I cannot tie this down to any sequence of events. Everything tends to work fine for a while then it fails and I either have to reboot or wait a while until the problem 'disappears'.
I have SQL 2000 Development edition installed on the same machine which may or may not be relevant.
Any ideas?