November 3, 2001 at 12:00 am
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
November 15, 2001 at 3:27 am
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.
November 15, 2001 at 5:15 am
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
December 8, 2004 at 3:24 am
September 26, 2005 at 1:14 pm
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!
May 26, 2006 at 7:52 am
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.
May 26, 2006 at 8:44 am
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
May 26, 2006 at 9:58 am
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.
May 31, 2006 at 8:07 pm
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).
May 10, 2007 at 1:25 pm
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.
May 10, 2007 at 2:08 pm
Can you post your connection string (with password if any X's out)? You will get that error if the connection is denied (or credentials are wrong), or if the server is not alive/wrong server address, etc.
November 19, 2008 at 3:48 pm
Like all other I coudnt help but say how difficult it was to remember the connection string. The datalink object comes in real handy.
Thanks you.
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply