hi
i m trying to connect my web application page to the default northwind database of sql server 2000. The database is on my local system.
Can some one tell me what i m doing wrong?
Cheers
Code:
Dim con As SqlConnection
Dim com As SqlCommand
Dim dr As SqlDataReader
con = New SqlConnection("data source=localhost;database=northwind;")
com = New SqlCommand("select * from customers")
con.Open()
dr = com.ExecuteReader
dr.Close()
Response.Write("Connection closed")
con.Close()