SqlServer
Publicado por Jose Oscar (21 intervenciones) el 23/01/2004 15:39:53
He probado con este código y es que no me conecta ni de coña:
Dim myConn As SqlConnection
Dim myCmd As SqlCommand
Dim myReader As SqlDataReader
Dim results As String
'Pocket_PC es el nombre del PDA
'bdxml es el nombre de mi base de datos bdxml.sdf
myConn = New SqlConnection("Data Source=Pocket_PC;Initial Catalog=bdxml")
Try
myConn.Open()
Catch ex As Exception
MessageBox.Show(ex.ToString())
End Try
myCmd = myConn.CreateCommand
myCmd.CommandText = "SELECT * FROM tabla_tareas"
Dim myConn As SqlConnection
Dim myCmd As SqlCommand
Dim myReader As SqlDataReader
Dim results As String
'Pocket_PC es el nombre del PDA
'bdxml es el nombre de mi base de datos bdxml.sdf
myConn = New SqlConnection("Data Source=Pocket_PC;Initial Catalog=bdxml")
Try
myConn.Open()
Catch ex As Exception
MessageBox.Show(ex.ToString())
End Try
myCmd = myConn.CreateCommand
myCmd.CommandText = "SELECT * FROM tabla_tareas"
Valora esta pregunta


0