The Hybrid Learning
I've Been Expecting You
The Hybrid Learning
I've Been Expecting You
The Hybrid Learning
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The Hybrid Learning

Read, View and Learn
 
HomePortalLatest imagesSearchRegisterLog in

 

 [Discussion] ADO.Net SQL Server Connection

Go down 
AuthorMessage
bhezkhit
Admin
bhezkhit


Posts : 86
Join date : 2011-06-26
Age : 39
Location : In your Wildest Dream

[Discussion] ADO.Net SQL Server Connection Empty
PostSubject: [Discussion] ADO.Net SQL Server Connection   [Discussion] ADO.Net SQL Server Connection EmptyMon Oct 31, 2011 7:34 am

ADO.NET SQL Server Connection

The SqlConnection Object is Handling the part of physical communication between the application and the SQL Server Database. An instance of the SqlConnection class in .NET Framework is supported the Data Provider for SQL Server Database. The SqlConnection instance takes Connection String as argument and pass the value to the Constructor statement. When the connection is established , SQL Commands may be executed, with the help of the Connection Object, to retrieve or manipulate data in the database. Once the Database activities over , Connection should be closed and release the database resources .

The Close() method in SqlConnection class is used to close the Database Connection. The Close method rolls back any pending transactions and releases the Connection from the SQL Server Database.


Click Here for Source Code:


You have to provide the necessary informations to the Connection String.
connetionString = "Data Source = ServerName; Initial Catalog = DatabaseName; User ID = UserName; Password = Password"
From the above statement replace ServerName, DatabaseName, UserName, Password to the actual names.
Back to top Go down
https://bhezkhit.forumotion.com
 
[Discussion] ADO.Net SQL Server Connection
Back to top 
Page 1 of 1
 Similar topics
-
» [Discussion] ADO.Net OLEDB Connection
» [Discussion] ADO.Net Architecture
» [Discussion] What is Microsoft .Net Frameworks?

Permissions in this forum:You cannot reply to topics in this forum
The Hybrid Learning :: Programming Tutorials :: ADO.Net-
Jump to: