Computing.Net > Forums > Programming > Database Connectivity in VB.NET

Database Connectivity in VB.NET

Reply to Message Icon

Original Message
Name: Haja
Date: March 13, 2005 at 18:04:21 Pacific
Subject: Database Connectivity in VB.NET
OS: windows xp
CPU/Ram: P4/512mb
Comment:

I need help in database connectivity in vb.net


Report Offensive Message For Removal


Response Number 1
Name: secrets
Date: March 14, 2005 at 07:59:46 Pacific
Reply: (edit)

there are alot of example available on net and also alot is available on msdn.
here are steps i am considering sqlserver as database server.
1- past an sql connection control from toolbar to your form rename it to sqlcon.
2- Select sqlcon you have just created and in its properties click on its connection string.
3-click new then select connection provider as Microsoft SQL Server.
4- click ok your connection is open now on form load event of your form put this line
if sqlcon.state=connection.closed then sqlcon.open()
it will open the connection if it is still close.
now you can do your work databse is connected.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Database Connectivity in VB.NET

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge