🔒 Closed Help

Status
Not open for further replies.

Spaghetto

Honorary Poster
Pa help po bakit not defined po
1665735104680.webp1665735098843.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
  • 535
    Views
  • 3
    Participants
Last reply from:
Vanexus

Trending Topics

Online now

Members online
1,214
Guests online
3,804
Total visitors
5,018

Forum statistics

Threads
2,308,349
Posts
29,184,599
Members
1,191,945
Latest member
Ahehuho
Back
Top