|
|
|
SSCertifiable
       
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, August 08, 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.
|
|
|
|
|
SSCertifiable
       
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
|
|
|
|
|
|
SSC 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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Friday, March 29, 2013 9:29 AM
Points: 289,
Visits: 302
|
|
| 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!
|
|
|
|
|
SSC-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.
|
|
|
|
|
Grasshopper
      
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
|
|
|
|
|
Forum 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
|
|
|
|
|
SSCertifiable
       
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, June 05, 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.
|
|
|
|