Pages

Wednesday, December 7, 2011

What is connection object

Connection object is responsible for creating a connection to the database.
If u want to do any operation in database first we need to create the connection object.

Syntax:

sqlconnection conn = newsqlconnection (@"Server=servername;userid=userid; password=password;Database=Databasename")

No comments:

Post a Comment