Hi all,
I am trying to access sql server 2005 from my VB CF .net application on a Windows CE 6.0 device. Sql server is running on my PC (windows 7) which is in domain.
sqlconn = New System.Data.SqlClient.SqlConnection("Data Source=192.168.45.37,1433;Initial Catalog=MyDB;User ID=Greg;Password=SomePass;")
I can connect without a problem.
But when I try to run a 'select' on a table I get sqlexception. "Cannot generate SSPI context".
Dim sqlquery As String = "SELECT * FROM MyData" Dim sqlcomm As New System.Data.SqlClient.SqlCommand(sqlquery, sqlconn) Dim sqlda As New Data.SqlClient.SqlDataAdapter(sqlcomm) sqlda.Fill(MyDataSet
I checked lots of pages on net but haven't found anything similar, also all the suggestions above are not working for me.
Thanks for help,
Greg