-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: RAMMURALI
Message 3 in Discussion
Hi This one seems to work for me. I am working with SQL Server 2000
Dim conn As New System.Data.SqlClient.SqlConnection("Server=192.168.0.100;User
id=test;password=test;initial catalog=testData")
Dim dr As SqlClient.SqlDataReader
Dim cmd As New SqlClient.SqlCommand
conn.Open()
cmd.Connection = conn
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "test"
cmd.Parameters.Add(New SqlClient.SqlParameter("@id", SqlDbType.Float))
cmd.Parameters("@id").Value = 2.0
dr = cmd.ExecuteReader()
Do While dr.Read
MsgBox(dr.Item(0))
Loop
Thanks and Regards
Murali
-----------------------------------------------------------
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]