Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,160,574 members, 7,843,795 topics. Date: Wednesday, 29 May 2024 at 11:11 AM

Vb.net Database Con Help - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Vb.net Database Con Help (1022 Views)

I Need A Help To Write A Simple Login Form Using Vb.net / Vb.net Crystal Report & Dataset (2) (3) (4)

(1) (Reply)

Vb.net Database Con Help by bigafees: 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)

Any Pro In Cobol Programming And System Programming?i Nid Help. / Join Now: Free Software Engineering Course :: Software As A Service / One Day To Go! Google Apps Developer Challenge,$60,000 At Stake For African Devs

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.