Hi Erel!
in the past years, I've made a winCE app for collecting data that worked on sql2005.
The customer has changed the main server, coming up with a fresh installation of SQL2008R2.
I remembered that the connectiong sting doesn't work if there's an istance while works on the main instance.
By the way, I'm not able to connect to the db.
I've also tried to install the SQL on my laptop and launch the app (the windows exe generated) from the same pc without results.
the code I used is:
any idea?
in the past years, I've made a winCE app for collecting data that worked on sql2005.
The customer has changed the main server, coming up with a fresh installation of SQL2008R2.
I remembered that the connectiong sting doesn't work if there's an istance while works on the main instance.
By the way, I'm not able to connect to the db.
I've also tried to install the SQL on my laptop and launch the app (the windows exe generated) from the same pc without results.
the code I used is:
B4X:
Sub SQL_Connection
'apro la connessione con il db remoto
stringaconn="Persist Security Info=False;Integrated Security=False;Server="&SVR &",1433;initial catalog=" &DBN &";user id="&USR &";password="&PWD&";"
' stringaconn="Data Source=192.168.7.201,1433;Network Library=DBMSSOCN;initial catalog=" &DBN &";user id="&USR &";password="&PWD&";"
' Msgbox(stringaconn)
Sql1.New1
If Sql1.Open(stringaconn) Then
LblDb.Visible = True
LblDb.Width = 230
LblDb.Text = "Server: "&SVR&":1433 - DB: "&DBN&" ("&AZI&")"
' Msgbox("Conessione al DB Stabilita con Successo!!!","My First Program",cMsgboxYesNo,cMsgboxHand)
Else
' Msgbox("Impossibile Connettersi al DB!!!",progname,cMsgboxYesNo,cMsgboxHand)
' Msgbox(sql1.LastError,"")
Msgbox("Impossibile Connettersi al DB!!!")
main.Close
End If
End Sub
any idea?
Last edited: