Question Locked

Complete steps to connect VB 6.0 with SQL Server 2000

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

send answer to the following e-mail

vaikundkrishna@gmail.com

2 replies

by megafabinfo

Hi,
to connect vb 6.0 with sql server 2000 is not difficult, but i can say you need to give it total concentration logically and syntactically. let me give you easy step. use vbasic dataenvironment control. click project menu, select dataenvironment.
in dataenvironment (name it mydatenv), create connection (name it conn), then under conn create as may command you want. first let create a command.

1. right click on the conn, select Add command. a dialog box will appear. At this time make sure you have created your sql database and table (let sql database be mydbm and the table be table1).

2. in this box select rename the command (Say command1), then select connection. i.e conn
3. select table.
4. then select the type of table you want. i.e table1
then click apply, then ok.
by this time you will see the columns in the command created. i.e command1.

you can use this for datagrid, textbox, any control in Vb to display and insert data into database.

This discussion is closed to new replies.