🔒 Closed Help

Status
Not open for further replies.

Spaghetto

Established
Pa help po bakit not defined po
1665735104680.webp
1665735098843.webp

Code:
Imports System.Data.SqlClient
Module Module1
    Public cn As New SqlConnection
    Public cm As New SqlCommand
    Public dr As SqlDataReader

    Sub Connection()
        Try
            cn = New SqlConnection
            cn.ConnectionString = "Data Source=SPAGHETTO\SQLEXPRESS;Initial Catalog=BillingDB;Integrated Security=True"
        Catch ex As Exception
            MsgBox(ex.Message, vbCritical)
        End Try
    End Sub

End Module
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 4
    Replies
  • 529
    Views
  • 3
    Participants
Last reply from:
Vanexus

Online now

Members online
977
Guests online
739
Total visitors
1,716

Forum statistics

Threads
2,275,574
Posts
28,964,202
Members
1,231,870
Latest member
Dabojax
Back
Top