TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Jlmjrdev
date: 2004-06-15 16:45:00
subject: Need coding help going fr

Here's some code I use in VB6.  How could I do this same thing in
VB.NET?  I am having a hard time finding a simple example showing how
to do this in .net.  Please help.


Const DB_CONNECT_STRING = "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID=User;Initial Catalog=Northwind;Data
Source=ServerName;Use Procedure for Prepare=1;Auto
Translate=True;Packet Size=4096;Use Encryption for Data=False;Tag with
column collation when possible=False;User Id=sa;PASSWORD=password;"

Set dbConn= CreateObject("adodb.connection")
dbConn.Open DB_CONNECT_STRING, "User", "password"

Set rs = dbConn.Execute("sp_ListNames")

While Not rs.EOF
strNames = strNames & rs("Name") & VbCrLf

rs.MoveNext
WEnd
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/15/04 4:45:41 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.