Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Imports System.Data.SqlClient
02
Imports System.Data.SqlClient
03 Module Conexion
04
0
Public Sub ConectarSQL(Optional ByVal Server As String = "(local)\SQLE
5 XPRESS", Optional ByVal DB As String = "master")
0
dbSQLConn = New SqlConnection("Server=" & Server &";Database=" &
6 DB & ";Integrated Security=true")
07
Try
08
dbSQLConn.Open()
09
Catch ex As Exception
10
11
12
13
14
End Try
End Sub
Public Function ExecuteSQL(ByVal Query As String) AsSqlDataAdapter
dbSQLComm = New SqlCommand(Query, dbSQLConn)
15
16
Return dbSQLAdapter
17
18
End Function
Public Function ExecuteSQL(ByVal Query As String, ByRef dsAs DataSet)
As Integer
19
20
21
22
23
24
25
26
27
28