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 © 2013 VisualBuilder. All rights reserved

Warning: Unknown(): write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0