473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Using remote function

Hi all,
I have a problem regarding the access to a DB located on the server SR1 from a DB located on a server SR2. I have to run a recursive select using tables on SR1 and use the result set in the db on server SR2.
I tryed to define a function on server SR1 and call it from the server SR2 using function template and function mapping but I can't call the remote function because it seems not existent in SR2 db.

Can you, please, tell me some ideas for doing that?

thank you.
Mar 11 '08 #1
2 1958
ADezii
8,834 Expert 8TB
Hi all,
I have a problem regarding the access to a DB located on the server SR1 from a DB located on a server SR2. I have to run a recursive select using tables on SR1 and use the result set in the db on server SR2.
I tryed to define a function on server SR1 and call it from the server SR2 using function template and function mapping but I can't call the remote function because it seems not existent in SR2 db.

Can you, please, tell me some ideas for doing that?

thank you.
Try this sample approach. The following code will execute the Public Function fReverseString("<single String Argument>") in the Test.mdb Database, in the Folder C:\Test\, from the Current Database. It will pass the Single Argument "Philadelphia" to fReverseString(), which in turn will return the String in Reverse in a Message Box. Hope this helps:
Expand|Select|Wrap|Line Numbers
  1. Dim appAccess As Access.Application
  2.  
  3. 'Create instance of Access Application object.
  4. Set appAccess = CreateObject("Access.Application")
  5.  
  6. 'Open C:\Test\Test.mdb database in Microsoft Access window.
  7. appAccess.OpenCurrentDatabase "C:\Test\Test.mdb", False
  8.  
  9. 'Run Function Procedure.
  10. appAccess.Run "fReverseString", "Philadelphia"
  11.  
  12. 'Clean up
  13. Set appAccess = Nothing
  14.  
Mar 11 '08 #2
sorry, may be I was not clear. My db is a db2 on server1 and a db2 on server2 and I have to call a function defined on server1 from an application using data on server2 mixed with data on server1.

Tanhk you for suggestion.
Mar 13 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: long5120 | last post by:
I am trying to use webpage with javascript to check if a web server is responding. I was thinking of using 2 frames. Frame1 will have the site, and the Frame2 will be a status bar (not really...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
1
by: Siddharth Jain | last post by:
hello I am trying to enumerate the shared folders on a server using the NetShareEnum function. Now, when the server has a password set to access the shared folders, the function returns system...
8
by: John | last post by:
Hi I need to be able to call a web service method, receive the dataset that web method returns and store it in an access table. My problem is that I don't know how to "receive" a complex type...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
5
by: Charlie King | last post by:
I'm trying to send data to a remote script (a credit card processing third party) from my site using POST. Currently, I'm doing it using the ususal form dynamically built with my values. This...
8
by: Roland Hall | last post by:
In Access you use "*" + + "*", + can be replaced with & Calling a parameterized query in Access requires % be used in place of *, however, all that I have read show dynamic SQL passed to Access: ...
1
by: remya1000 | last post by:
from my system i need to open a calculator in remote machine. and i'm using Vb.net and WMI. i need to pop up the calculator in remote machine, while i run one program in my system. while running in...
5
by: Matthew Wilson | last post by:
I wrote some code to create a user and update a user on a remote box by sending emails to that remote box. When I was done, I realized that my create_user function and my update_user function were...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.