472,353 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Q823718 Security Update for MDAC: TransferDatabase command changed?

My code for DoCmd.TransferDatabase stopped working after applying the
update in question.

Seems like the last argument (optional: SaveLogInID) can no longer be
specified when DataBaseType="Microsoft Access". At least I removed
that argument and my code worked.

Seems logical and sounds like they've been letting me slide on my
existing code and that Q823718 plugged a hole.

Anybody agree? Disagree?
Nov 12 '05 #1
2 1813
Well I have a little different scenario to this issue. I am trying to
create SQL linked tables on the fly from code. It works but here is my
dilema:-
1. We have a full access and read only user for each SQL database.
2. I am trying to link to certain SQL tables with either the full
access or read only UID and PWD. FYI - the rights are reflected in the
name of the linked table I save in Access. When I run through the code
it uses the UID and PWD from the last time I linked in a SQL table from
Access Link Table wizard. The code does have the option for SaveLoginIn
set to true.

I thought this was related to the ODBC registry setting, so I figured
out how to reset the last user for the particular ODBC I am using and
that works fine, but Access does not seem to grasp that and it uses the
last one I used from the wizard. I really need some help in this
matter.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #2
Access (Jet) caches and pools connections. If Access thinks
that the connection has not changed, it will continue to use the
old connection. I think that the connection information that is
SAVED by Access is taken from the information Access has and is
using, not directly from the connection string that you provide.

You need to ensure that a NEW connection is created.

Firstly, by deleting the old connection and creating a new
connection, (instead of refreshing an old connection).
Secondly (if that does not work), by using a separate workspace
and jet engine object to create a new connection
Thirdly (if that does not work), by ensuring that there are NO
OPEN CONNECTIONS AT ALL when you create the new connection.
I DO NOT KNOW IF IT IS POSSIBLE TO HAVE TWO DIFFERENT CONNECTIONS
WITH different USER CREDENTIALS OPEN AT THE SAME TIME. I do not
know if the SQL Server supports that (from the same machine), I
do not know if the ODBC driver supports that: I do not know if the
Access connection pooling mechanism supports that. (but it should
be fairly easy to test). Access does support multiple user
credentials against an MDB database, so there is no
immediate reason to expect that it won't work against an ODBC
source.

(david)

"Donald Wisch" <dw****@srobo.com> wrote in message
news:40*********************@news.frii.net...
Well I have a little different scenario to this issue. I am trying to
create SQL linked tables on the fly from code. It works but here is my
dilema:-
1. We have a full access and read only user for each SQL database.
2. I am trying to link to certain SQL tables with either the full
access or read only UID and PWD. FYI - the rights are reflected in the
name of the linked table I save in Access. When I run through the code
it uses the UID and PWD from the last time I linked in a SQL table from
Access Link Table wizard. The code does have the option for SaveLoginIn
set to true.

I thought this was related to the ODBC registry setting, so I figured
out how to reset the last user for the particular ODBC I am using and
that works fine, but Access does not seem to grasp that and it uses the
last one I used from the wizard. I really need some help in this
matter.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Reply via newsgroup | last post by:
Folks, When performing an update in mysql (using PHP), can I find out how many records were matched? mysql_affected_rows() won't work... and I...
5
by: S.Patten | last post by:
Hi, I have a problem with updating a datetime column, When I try to change the Column from VB I get "Incorrect syntax near '942'" returned from ...
1
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Before we start with our sample app we need to view the security configuration files on the machine. You will find them under ...
6
by: Dave Gehrig | last post by:
Hi guys, Using Access 2003 on XP. First time caller, long time listener. I am not a programmer per se, and all my training in coding in the...
1
by: Danny J. Lesandrini | last post by:
Does anyone know if it's possible to use TransferDatabase to export data to MySQL? If not, how would one go about it? Below is the code I tried to...
9
by: Lance Johnson | last post by:
I would like for when a tab page changes, that my controls on the previous tab page would receive a visiblechanged event or some other event so they...
5
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security...
1
by: solar | last post by:
In copying tables i use the command Transferdatabase shown below.It is a good command, but i need the following refinement. I want to copy the...
1
by: nancy | last post by:
I am new to PHP but have done other programming can someone please hold my hand and slowly talk me through some simple security issues? I have...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.