Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Registry hack for creating a linked server from a secured mdb

9 views
Skip to first unread message

Patrick Jackman

unread,
May 6, 2010, 4:35:11 PM5/6/10
to
In SQL Server 2008 I am creating linked servers from several secured Jet
databases to read data. Fortunately they all use the same .mdw.

The only way that I have been able to get this to work is by setting the
server's HKLM\Microsoft\Jet\4.0\Engines\SystemDB to point to the .mdw file.

Then I run TSQL similar to this:
EXEC sp_addlinkedserver
@server='MCardDat',
@provider='Microsoft.Jet.OLEDB.4.0',
@srvproduct='OLE DB Provider for Jet',
@datasrc='C:\My Documents\Projects\Medicard\CAN\Data\MCardDat.mdb'

EXEC sp_addlinkedsrvlogin 'MCardDat', FALSE, NULL, 'Login', 'pwd'

Is there any other way to read the secured Jet data?

Patrick
=-=-=-=-=-=-=-=-=-=-=-=-=-
Patrick Jackman
Vancouver, BC


Mary Chipman [MSFT]

unread,
May 7, 2010, 9:28:24 AM5/7/10
to
De-secure the Access databases, removing user-level security. You can
achieve the same effects with custom obfuscation using login forms and
hidden tables, etc. Access security is generally considered to be an
oxymoron judging by all the hits you get when you search on cracking
it.

--Mary

Patrick Jackman

unread,
May 7, 2010, 1:03:00 PM5/7/10
to
Thanks Mary.

De-securing would be quite a bit more work than the registry hack in this
situation.

I'm hoping that someone has a suggestion that is a bit easier to implement.

Patrick.

"Mary Chipman [MSFT]" <mc...@online.microsoft.com> wrote in message
news:u558u5hv5nojdmh74...@4ax.com...

david

unread,
May 9, 2010, 11:57:41 PM5/9/10
to
I haven't tried it, but the extra information would go into the
provider-string parameter, @provstr, which is the place for
"a provider specific connection string".

@provstr='System Database=system.mdw;'

(david)


"Patrick Jackman" <pjackman at wimsey no spam com> wrote in message
news:ub6IkuV7...@TK2MSFTNGP06.phx.gbl...

Patrick Jackman

unread,
May 10, 2010, 1:50:47 AM5/10/10
to
Thanks David. I can't get it to work and I haven't found any success stories
about this approach on the web.

Patrick.

"david" <da...@nospam.au> wrote in message
news:uRECyT$7KHA...@TK2MSFTNGP06.phx.gbl...

david

unread,
May 10, 2010, 6:22:00 AM5/10/10
to
That's odd - I don't see how they could get the OLE-DB
provider to NOT work using the standard interface. Do
you get "Invalid connection string attribute"?

I think it should be done this way:
@provstr='Jet OLEDB:System Database=system.mdw;'

(I'm sorry, my development server has been down for the
last 12-18 months....)


FWIW, the fallback position would be to use the OLEDB
ODBC provider (MSDASQL) instead of the JET provider.
The "Access" DSN allows you to specify the system database.
A DSN may be either a file (using the INI file format) or the
equivalent set of registry entries.

(david)

"Patrick Jackman" <pjackman at wimsey no spam com> wrote in message

news:ulFoBTA8...@TK2MSFTNGP06.phx.gbl...

Mary Chipman [MSFT]

unread,
May 18, 2010, 2:15:51 PM5/18/10
to
Create a new mdb with the default system.mdw and import everything.

--Mary

On Fri, 7 May 2010 10:03:00 -0700, "Patrick Jackman" <pjackman at

0 new messages