Author Topic: SQL Macros dont seem to work on JET DATABASES #DB=JET#  (Read 4593 times)

ADucci

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
SQL Macros dont seem to work on JET DATABASES #DB=JET#
« on: March 01, 2018, 11:49:28 pm »
I am trying to get these SQL macros working.

The following query works perfectly in a MS SQL database, however, does not work when running in the direct database connection (MS JET)

any ideas?



select top 10 name,
   stereotype
   #DB=JET#, 'MSJET' as source#DB=JET#
   #DB=SQLSVR#, 'SQLSERVER' as source #DB=SQLSVR#
from
   t_object

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: SQL Macros dont seem to work on JET DATABASES #DB=JET#
« Reply #1 on: March 02, 2018, 12:13:33 am »
It does not work in the scratch pad, but only in the user defined searches.

q.

ADucci

  • EA Novice
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
Re: SQL Macros dont seem to work on JET DATABASES #DB=JET#
« Reply #2 on: March 02, 2018, 07:50:33 pm »
Thanks! ..


I really struggled... cant believe it was so easy.