🔒 Closed Help

Status
Not open for further replies.

Spaghetto

Honorary Poster
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
  • 532
    Views
  • 3
    Participants
Last reply from:
Vanexus

Trending Topics

Online now

Members online
1,084
Guests online
1,990
Total visitors
3,074

Forum statistics

Threads
2,285,622
Posts
29,031,811
Members
1,218,534
Latest member
K321a77b2
Back
Top