Please help me

Hi all Together !

How to Connect VB.NET to SQL Server?

Please Answer when you saw my question , I'm waiting .

0
edit delete
are you sure?
asked Yea Chandy

1 answer

may this connection string help you :)

    Try
        Dim cs As String = "Data Source=.\sqlexpress;Initial Catalog=Loadshedding;Integrated Security=True;"
        CON = New SqlConnection(cs)

        CON.Open()
    Catch ex As Exception
        MessageBox.Show("error in database connection!" & vbCrLf & ex.Message, _
                        "error", MessageBoxButtons.OK, MessageBoxIcon.Error)
    End Try
0
edit delete
are you sure?
answered Sudip Bhandari

Post an answer but please login first

Post Answer
  1. Please login to post answer

Similar Questions

Tagsfor this question

Forumall questions