₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,312 members, 8,449,698 topics. Date: Wednesday, 22 July 2026 at 08:36 AM

Toggle theme

Vb.net Database Con Help - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingVb.net Database Con Help (1100 Views)

1 Reply

Vb.net Database Con Help by bigafees(op): 11:27am On May 20, 2010
pls N'lander,

I need help on how to connect vb.net to sql server using Oledb or sqlConnection, i have connected it through ADOB, but i want to connect with Library

Pls in a comprehensive way
Re: Vb.net Database Con Help by ABAboi: 10:33am On May 22, 2010
You will need to import the SQLCLIENT/OLEDB name space

Imports System.Data.SqlClient
Public Class LoginForm
Private cs As New SqlConnection("Data Source=DENSMAN-PC\SQLEXPRESS;Initial Catalog=aba;Integrated Security=True"wink ' You can change this to reflect the actual location of your database
End class
Re: Vb.net Database Con Help by Obiakara: 4:33pm On May 27, 2010
'import ur namespace
import system.data
import system.data.sql
import system.data.sqlclient
Dim constr as string="ur connection string"
'when u attach the databae check the properties to get ur 'connection string.
dim sqlcon as new sqlconnection(consrt)

'this should work out. . .
1 Reply

I Need A Help To Write A Simple Login Form Using Vb.netVb.net Crystal Report & Dataset234

Reputable ICT Schools For Arts GraduateI Need Someone To Create .jar Apps For My Website, It UrgentMagento Enterprise Edition 2.0: Study Why And The Way You Must Improve