As You can see in code there are some header file which is added for connecting with the sql server
the header file
Using System.Data;
And
Using System.Data.SqlClient;
Is must required so don't forget it
SqlConnection()
SqlConnection(String)
SqlConnection(String, SqlCredential)
the header file
Using System.Data;
And
Using System.Data.SqlClient;
Is must required so don't forget it
Sqlconnection Description:-
SqlConnection()
Initializes a new instance of the SqlConnection class.
Initializes a new instance of the SqlConnection class when given a string that contains the connection string.
Initializes a new instance of the SqlConnection class given a connection string, that does not useIntegrated Security = true and a SqlCredential object that contains the user ID and password.
No comments:
Post a Comment