Free2Code
 
Time: 2008-11-21, 10:26pm
vb6.0 and sql server 7.0 connectivity
Subject: vb6.0 and sql server 7.0 connectivity  ·  Posted: 2006-11-22, 07:24pm
Rank: ? (2)
Member #: 29173
hi all,
please help me, how to connect vb with sql server, because coding that i am using gives errors.
also code for adding record to database table.
i am using this code for adding record:-
insert into table name values ('"+text1.text+"','"+text2.text+"');
but it is not working

 
  Reply to this ·  Post link ·  Top
Subject: Re: vb6.0 and sql server 7.0 connectivity  ·  Posted: 2006-11-22, 09:29pm
Rank: ? (134)
Member #: 28863
here is one way toconnect to a server database

ODBC;UID=visualbasic;PWD=password;SERVER=MPSQL;DRI VER={SQL
> SERVER};DATABASE=name


 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons