F
Fabio
Hello,
My name is Fabio.
I'm trying to connect with one intance of SQL 2000 (MSDE) via compact
framework. But I can't connect. What is wrong in my code?
My Connection String is OK? If not, how could i build one?
Imports System.Data.SqlClient
Public Class Database
Private Conn As New SqlConnection
Sub New()
Conn.ConnectionString = "user id=sa;password=;initial
catalog=Restaurate;server=mobile\msql2000"
Try
Conn.Open()
MsgBox("Conectado")
Catch ex As SqlException
MsgBox(ex.Message)
End Try
End Sub
End Class
My name is Fabio.
I'm trying to connect with one intance of SQL 2000 (MSDE) via compact
framework. But I can't connect. What is wrong in my code?
My Connection String is OK? If not, how could i build one?
Imports System.Data.SqlClient
Public Class Database
Private Conn As New SqlConnection
Sub New()
Conn.ConnectionString = "user id=sa;password=;initial
catalog=Restaurate;server=mobile\msql2000"
Try
Conn.Open()
MsgBox("Conectado")
Catch ex As SqlException
MsgBox(ex.Message)
End Try
End Sub
End Class