Re: Refreshing the link on stored procedure
From: Michel Elie (Michel.elie_at_ec.gc.ca)
Date: 04/12/04
- Next message: Sudipto: "How many rows can a table in an Access97 database handle?"
- Previous message: Steve S: "Query in form format"
- In reply to: Duane Hookom: "Re: Refreshing the link on stored procedure"
- Next in thread: Duane Hookom: "Re: Refreshing the link on stored procedure"
- Reply: Duane Hookom: "Re: Refreshing the link on stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 12 Apr 2004 03:49:14 -0700
It's an .MDB and the function change the DSN directly in
the registry on demand.
The DSN name and database name stay the same, I just
change the server name in the DSN. It work very well but
my only problem is those stored procedures, I have to
close and reopen Access to clear that little problem.
>-----Original Message-----
>Is this an MDB or ADP? How are you changing the DSN on
the fly? Are you
>changing the connection string of the linked tables? If
so, you have to
>change the same for any pass-through queries.
>
>--
>Duane Hookom
>MS Access MVP
>
>
>"Michel Elie" <Michel.Elie@ec.gc.ca> wrote in message
>news:1b1c901c41ff8$1c8427f0$a501280a@phx.gbl...
>> I have a little problem that I can't resolve.
>>
>> History:
>> I have built an interface on Access 2002 that is
link
>> too a database on SQL 2000. I have a 2 copies of the
same
>> database on two differents servers.
>> So, I have two structurally identical databases on
>> different server but the data inside the database are
not
>> the same.
>> I have created a function that can change my User
DSN
>> on the fly from server X to server Y or from server Y to
>> server X.
>>
>> Problem:
>> When I change from server X to server Y all my
tables,
>> views and queries see the change of server and I see the
>> data from server Y and that's perfect.
>> But my only little problem is that the stored procedure
>> don't see the change of server and I still see the data
>> from server X.
>> The only way I have found to refresh the change of
>> server for the stored procedure is to close the
>> application and Access and reopen it.
>>
>> Question:
>> Who can I Refresh or tell my stored procedure that I
>> have made a change of server whitout closing everything.
>>
>>
>> Thanks!!!
>
>
>.
>
- Next message: Sudipto: "How many rows can a table in an Access97 database handle?"
- Previous message: Steve S: "Query in form format"
- In reply to: Duane Hookom: "Re: Refreshing the link on stored procedure"
- Next in thread: Duane Hookom: "Re: Refreshing the link on stored procedure"
- Reply: Duane Hookom: "Re: Refreshing the link on stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|