-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: salil
Message 6 in Discussion

Hi Vink!   I read ur query.I think u r asking about simple sql serevr connection.For 
that first u have to create a dsn.For that u go to administrative tool and there u 
click on odbc.create a dsn for sql server and add it.   in the program u mention the 
coonection like "set mycon=dsn=mysql.uid=;pwd=;" then u mention the connection like 
"con=server.createobject("adodb.connection") then con.openmycon then u open a 
recordset like "rs=server.createobject("adodb.recordset") to open a recordset u have 
some records.for that u have to write a sql query. like sql="select * from tablename" 
then u open the recordset like"rs.open sql,con,1,2" All the above i had given in asp 
coding.There is no changes in the vb.The concept is totally same but the syntax is 
varied a little.in VB there wud be no server.here it is set .but in vb it is dim con 
as ..like.   U save it  as an include file.and whenevr u want to use sql connection u 
just put it as header.but remember the sql query will be changed.(according to u r 
need)   I think i give u an idea. thanx  salil   

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to