₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,012 members, 8,419,925 topics. Date: Thursday, 04 June 2026 at 07:38 AM

Toggle theme

Vb.net Database Con Help - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingVb.net Database Con Help (1098 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

Can Anyone Solve This Quadratic Equation In Java MethodMake My Modem UniversalRequired Skills Of A 2020 Server Side Developer