Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7885121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:58:47+00:00 2026-06-03T04:58:47+00:00

I am getting a strange behavior by TADOQuery component in Delphi 7 on Windows

  • 0

I am getting a strange behavior by TADOQuery component in Delphi 7 on Windows XP and Windows7 operating system. Following issue works fine on Windows7 oprating system, but it gives an error on XP operating system.

Let me explain the scenario, I have one TADOConnection component and two TADOQuery components. The TADOConnection component is having the value for ConnectionString property as follows:

ADOConnection1.ConnectionString := 'Provider = MSDASQL.1; Password = My Password; User ID = My User ID; Data Source = My Data Source';

I have already applied the role/granted permission to the User ID/Password which I am login to the application.

I have connected TADOConnection component to the TADOQuery components using Connection property.

When I execute the first sql then it works fine without any error, but when I execute the second sql that time I am getting following error on Windows XP operating system.

[Microsoft] [SQL Server Native Client 10.0] [SQL Server] The SELECT
permission was denied on the object ‘My Table Name’, database ‘My
Database Name’, schema ‘dbo’

The same code if I execute on Windows7 oprating system it works fine without any error.

Could anybody put focus what could be missing or what could be the issue ?


I have added “Persist Security Info = False;” to a connection string as follows:

ADOConnection1.ConnectionString := 'Provider = MSDASQL.1; Persist Security Info = False; Password = My Password; User ID = My User ID; Data Source = My Data Source';

Now, whenever I execute the sql using TADOQuery component, I need to write following statement every time, even if I have already set the “Connection” property of TADOQuery at the beginning, still I need to set this property whenever I execute the sql.

ADOQuery1.Connection := ADOConnection1; 

But as I said, On Windows7 there is no need to change the “ConnectionString” property of TADOConnection component and no need to set the “Connection” property of any TADOQuery component.

Could anybody tell what exactly has to be done ?

If your application is too huge and lot of places coding changes are required, would anybody agree with that ? And what about testing efforts ? At all the places testing has to be done, right ?

So, I am still in search of proper solution. The question is still unanswered.

If anybody is having any clue or hint or proper solution that would be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:58:48+00:00Added an answer on June 3, 2026 at 4:58 am
    1. You have to check using SQL Profiler what is going on.
    2. My bet, ADO internally clones a connection or uses a connection pool, and next query pickups another physical connection. So, you are getting the error. To disable pooling add OLE DB Services=-4 to your connection string.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting strange behavior from MSBuild. I use the command: msbuild.exe /p:Configuration="Release|Windows Mobile
I am getting a strange behavior for multi-part form. I have a simple HTML
I've looked at this article and am getting strange behavior in a HAML partial.
Im getting a strange behavior in chrome that it creates squares after whitespace IE
I'm getting some strange behavior... when I iterate over the dummyText List in the
I'm using NSXMLParser to parse an rss feed. But I'm getting some strange behavior
I'm getting a very strange behavior in MySQL, which looks like some kind of
I'm getting so very strange behavior in my Objective C library (for iPhone). What
I'm getting poor performance and possibly strange behavior with a simple SELECT query in
I'm just getting into CSS3 transitions (about time!) and I witness some strange behavior

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.