Subscribe to Question

How can I connect SQL Sever 2000 DB to Asp.NET?



Oct 06, 2007 - saadat

Answers

Dim con As SqlConnection

Dim cmd As SqlCommand

Dim dtr As SqlDataReader



con = New SqlConnection( "Data Source=localhost;Initial catalog=TestDB;UID=sa;pwd=sa" )

cmd = New SqlCommand()

cmd.Connection = con

The above code will do that just create a data source.

Oct 29, 2007 -
RajeshSingh1979
1 - 1 of 1 First | Previous | Next | Last  
Newsletter
Copyright © 2014 VisualBuilder. All rights reserved