Hi guys!
I'm using b4ppc to connect and read/write data on a sql 2005-2008 db (express edition)
to connect to the db, I use this string:
it works if i connect to the main istance (for example: SVR=SERVER), but if i try to connect to:
SVR=SERVER\SQL2008
it doesn't work!!! why???
I'm using b4ppc to connect and read/write data on a sql 2005-2008 db (express edition)
to connect to the db, I use this string:
B4X:
stringaconn="Persist Security Info=False;Integrated Security=False;Server="&SVR &",1433;initial catalog=" &DBN &";user id="&USR &";password="&PWD&";"
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,"")
End If
it works if i connect to the main istance (for example: SVR=SERVER), but if i try to connect to:
SVR=SERVER\SQL2008
it doesn't work!!! why???