Jump to content
Server Maintenance This Week. ×

Execute SQL across databases


This topic is 2823 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is it possible to use Execute SQL across databases not just tables but another database that exists on the same server.  If so how would I reference it in an SQL statement.  Any help or advice would be much appreciated.

 

Best,

Link to comment
Share on other sites

First let's get the lingo right:

- "Execute SQL" is a script step meant to push data to any ODBC compliant database

- "ExecuteSQL()" is a function call that can only SELECT from internal FM tables

I'm assuming you mean ExecuteSQL()?

If so then you can touch any table from any file, provided that you have TO in the file where you will be call the function.  ExecuteSQL() always needs a TO to work with.

Link to comment
Share on other sites

1 hour ago, Wim Decorte said:

First let's get the lingo right:

- "Execute SQL" is a script step meant to push data to any ODBC compliant database

- "ExecuteSQL()" is a function call that can only SELECT from internal FM tables

I'm assuming you mean ExecuteSQL()?

If so then you can touch any table from any file, provided that you have TO in the file where you will be call the function.  ExecuteSQL() always needs a TO to work with.

Ahhh.  Thank you so much.

Link to comment
Share on other sites

This topic is 2823 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.