Gurdeep

Gurdeep

  • NA
  • 31
  • 0

SQL SERVER & VB.NET Connection

Feb 22 2007 12:15 PM
Hellow everyone, I have problem with getting connection with SQLSERVER Database using vb.net whille the application i am developing is purly based on sql database connection.. My code on Load form is
______________________________________________________________________________



Imports System
Imports System.Data
Imports System.Data.SqlClient
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conTransit As SqlConnection = New SqlConnection("Server=devsql;Database=Transporter;Integrated Security=SSPI")
conTransit.Open()
MessageBox.Show("Conection succedded")
conTransit.Close()
End Sub
End Class


___________________________________________________________________________
Any help or commnet is warmly welcome also how can i load the data and ADD, DELETE and DPDATE using ADO.net Help Pls

Answers (3)