🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #51

Re: BCB6 ADO problem with Vista

#51
From: Clayton Arends
Date: Mon, 12 Nov 2007 18:27
48 lines
3104 bytes
> :) Yeah.  Didn't realize that you did ADO and would be in the same shoes.

I'm not as versed in ADO as with the rest of the VCL but I know enough to be 
dangerous.

> We lock/freeze when we run the app in debugger, with UAC turned off
> completely or turned on - deson't seem to matter.

If you lock when you run the app then try running BCB6 as administrator. 
This is what I have to do when I debug administrative applications.

> It's an MS SQL app using ADO to connect with it.

To eliminate the UAC and administrative privileges have you tried connecting 
via a plain Jet connection yet?  If even that doesn't work then I'm afraid 
I'd be out of ideas since that's about as general a connection as one can 
create using ADO.  The only step at that point would be to make sure you 
have all of the correct drivers installed.

If the Jet connection succeeds then we can move to the next step?  Have you 
added a Vista manifest resource to your application yet?  If not, here is 
the resource that I use which tells Vista to run the application with 
administrative privileges:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator" />
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

If you need a RES file for that let me know and I'll email it (or put in 
.attachments).

>  Provider=SQLOLEDB.1;Integrated Security=SSPI;Data Source=MyServer;
>  Initial Catalog=MyDB;

Do you have a SQLServer database that doesn't require integrated security? 
Try using a standard username and password logon and see if that can get in. 
That's the way we have our SQLServer connections set up here (we haven't 
gotten too fancy with security settings yet).

HTH,
Clayton 
Technical Details
Message-ID: <47389b35$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4734a20d$1@newsgroups.borland.com> <4734c21d$1@newsgroups.borland.com> <4737d17e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,d628bc7458729f40
X-Google-Attributes: gid10698b,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Clayton Arends" <nospam_claytonarends@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4734a20d$1@newsgroups.borland.com> <4734c21d$1@newsgroups.borland.com> <4737d17e$1@newsgroups.borland.com>
In-Reply-To: <4737d17e$1@newsgroups.borland.com>
Subject: Re: BCB6 ADO problem with Vista
Date: Mon, 12 Nov 2007 10:27:32 -0800
Lines: 49
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16480
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545
NNTP-Posting-Host: 71.93.4.10
Message-ID: <47389b35$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1194892085 71.93.4.10 (12 Nov 2007 10:28:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail