dbTalk Databases Forums  

ADO Control and SET OWNER

comp.databases.btrieve comp.databases.btrieve


Discuss ADO Control and SET OWNER in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Baugh
 
Posts: n/a

Default ADO Control and SET OWNER - 08-01-2003 , 08:47 AM







I am developing a VB6 program using the Microsoft ADO Control with a
bound grid (True Grid Pro 7). The table I am accessing is in a
Pervasive 2000i database. I am accessing it thru ODBC.

The table has an OWNER on it. When I try to update the table using
the grid, I am getting a status code 46: Access to the requested file
is denied.

Does anyone know how to set the OWNER when using a grid bound to an
ADO control?

--
Posted via http://dbforums.com

Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: ADO Control and SET OWNER - 08-04-2003 , 05:27 PM






Newer versions of PSQL2000 allow you to access owner-based files from
ODBC (which is essentially what ADO is doing for you), but they require
database security to be enabled. (Without security, of course, there is
no sense to having an owner name.)

Look in the manuals regarding the GRANT command for full details, but the
command is essentially:
GRANT ALL ON TABLE table-name owner-name TO user-or-group-name

Then, anyone logging in with proper SQL access rights can access that
file. (The SQL security info will likely be coded into the DSN, or into
the app itself, so there should be no user interface issue with this.)

Of course, you can also simply remove the owner name. If an app exists
that expects the owner name to be there and it is not there, it will
still work as if nothing is wrong. (They are not very secure, anyway.)
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: September 16-18: See our web site for details!

Michael Baugh wrote:

Quote:
I am developing a VB6 program using the Microsoft ADO Control with a
bound grid (True Grid Pro 7). The table I am accessing is in a
Pervasive 2000i database. I am accessing it thru ODBC.

The table has an OWNER on it. When I try to update the table using
the grid, I am getting a status code 46: Access to the requested file
is denied.

Does anyone know how to set the OWNER when using a grid bound to an
ADO control?

--
Posted via http://dbforums.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.