We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,555 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

understanding ado connection string

I am working with sql server using ADO provider.
My code uses recordsets and commands to run quries and I fail to understand a basic issue - connections.

In my code, they set a connection string (which is being built in the code, not taken from other ADO element) to the property "connectionString" and call the Open (for recordSet) or Execute (for command) and it seems to work.
My question is who manages the connection? who opens it and closes it?
Does setting connection string to the ADO recordSet / command automatically open a connection? and does calling the Close method automatically close it? Does the SQL server manage it behind the scenes?

2
Contributors
1
Reply
6 Hours
Discussion Span
5 Months Ago
Last Updated
2
Views
haber5
Newbie Poster
5 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

The concept is very similar to fstream's open() and close() methods, except ADO uses COM or sockets as underlying file/data transfer.

Ancient Dragon
Achieved Level 70
Team Colleague
32,274 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,590
Skill Endorsements: 70

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0794 seconds using 2.7MB