Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Introduction to the ADO Connection Object Expand / Collapse
Author
Message
Posted Saturday, November 3, 2001 12:00 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: Moderators
Last Login: Today @ 7:55 AM
Points: 6,779, Visits: 1,858
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/awarren/introductiontotheadoconnectionobject.asp>http://www.sqlservercentral.com/columnists/awarren/introductiontotheadoconnectionobject.asp

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Post #1508
Posted Thursday, November 15, 2001 3:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, August 8, 2002 12:00 AM
Points: 4, Visits: 1
The article is pretty good for beginners on ADO. I appreciate especially the information given on UDL because not everybody know about UDL and its introduction here is good.
The CursorLocation property also could have been included as , that is one property which I have seen , is used extensively.



Post #23361
Posted Thursday, November 15, 2001 5:15 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: Moderators
Last Login: Today @ 7:55 AM
Points: 6,779, Visits: 1,858
You're right, I probably should have included it. Just so hard to figure out what is "basic" and not write a book instead of an article I did include it in the follow up article about recordsets, where I think overall the cursor location is more important to consider.

Thanks for the comments!


Andy


Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Post #23362
Posted Wednesday, December 8, 2004 3:24 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, February 21, 2006 6:02 AM
Points: 33, Visits: 1
Article is fantabulous. Remembering connection string was so hard. This udl trick has reduced me lot of time. Thank you Andy


Kindest Regards,

Mani

Post #150002
Posted Monday, September 26, 2005 1:14 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, May 16, 2014 9:24 AM
Points: 328, Visits: 395
I created an application role on the database.

Using the Data Link Properties dialog I chose the provider.  Then on the Connection tab, I had to type in the Server name because it did not appear in the combo box or drop down menu.  I don't know if that was the first problem or not.

I put in the application role name and password under "Use a specific user name and password:"

I checked Allow saving password.

When i got down to number 3, "Select the database on th server," I clicked the combo box and got an error: "Login failed for user 'FAELOGIN'. Reason: Not associated with a trusted SQL Server connection."

Then another message box displays: "Login failed.  Catalog information cannot be retrieved."

I don't know why i'm alway running into these stupid issues!

Post #223706
Posted Friday, May 26, 2006 7:52 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, March 22, 2012 11:10 AM
Points: 104, Visits: 14

Jacob, what you need to do is create a connection and not an application role.

If you really want to use an application role, login using the connection, then set the application role.
Be aware that you must disable connection pooling while using application roles in ADO or else, 1 out of every 2 connections will fail. One of the problems reported about that.

I guess (hope ) applications roles in ADO will be covered in a future article.

Post #283094
Posted Friday, May 26, 2006 8:44 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, May 28, 2009 7:39 PM
Points: 13, Visits: 9
Richard:

You state that:

. . "Connection objects can only execute "action" queries (insert, update, and delete)"

Could it be that you also meant to imply that the "read" query required that the connection object be coupled with a recordset object to recieve data

i.e: set rs = cn.execute ("SELECT . . .

I think that your statement may imply, to some, that the 'SELECT . ' query can never be run against the ADO connection object . . . or?.

Just my 2-cents on that specific statement.

Anthony Lukindo

Post #283127
Posted Friday, May 26, 2006 9:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, March 12, 2007 5:17 PM
Points: 9, Visits: 1
First, realize that this article is 5 years old and extremely outdated! One guy responded to a question posed eight months earlier!

Funny thing is that I just received an email from SQL ServerCentral promoting this very article. They must have an article randomizer that isn't age-savvy.




Kindest Regards,

Enrique

Post #283161
Posted Wednesday, May 31, 2006 8:07 PM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: Moderators
Last Login: Today @ 7:55 AM
Points: 6,779, Visits: 1,858
Steve manages the content and will sometimes recycle older content on Fridays if it seems to still be relevant (often because someone has asked a question recently that the content covers).

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Post #284106
Posted Thursday, May 10, 2007 1:25 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, June 5, 2007 9:28 AM
Points: 4, Visits: 1

It was preety cool to create connection string like that. I am new to sql server and spent part of the day tring to find a correct connection string. however it is not working for me. It says : [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.I am using sql server express 2005 and have installed it in the partition on the server and not on C drive. does this have to do anything with the error I am getting. Also my database is on a different server than my application.

Post #364887
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse