Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Firebird - how to create a view with select command to external data source?

Firebird - how to create a view with select command to external data source?

Scheduled Pinned Locked Moved Database
databasecomsysadmintutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Christoph1972
    wrote on last edited by
    #1

    Hello! I will create a view on a Firebird database server by using the Execute Statement "ON EXTERNAL DATA SOURCE". I found this document on firebirdfaq.org: http://www.firebirdfaq.org/faq16/ and also this: http://tech.groups.yahoo.com/group/firebird-support/message/114481 Unfortunately my SQL-skills are not good enough to solve this task by my selves. I tried this:

    SELECT * FROM(
    FOR EXECUTE STATEMENT
    'select code, name from TMaster where group = 'A' '
    ON EXTERNAL DATA SOURCE '[IP Adrress]:\Data\DB\master.fdb' AS USER 'u' PASSWORD
    'p' ROLE 'R'
    into :code, :name do suspend ;)

    Certainly that doesn't run. :~ Please can anybody give me some interesting advises? I look forward to all suggestions! Kind regards Christoph

    I'm a novice from Germany.

    J 1 Reply Last reply
    0
    • C Christoph1972

      Hello! I will create a view on a Firebird database server by using the Execute Statement "ON EXTERNAL DATA SOURCE". I found this document on firebirdfaq.org: http://www.firebirdfaq.org/faq16/ and also this: http://tech.groups.yahoo.com/group/firebird-support/message/114481 Unfortunately my SQL-skills are not good enough to solve this task by my selves. I tried this:

      SELECT * FROM(
      FOR EXECUTE STATEMENT
      'select code, name from TMaster where group = 'A' '
      ON EXTERNAL DATA SOURCE '[IP Adrress]:\Data\DB\master.fdb' AS USER 'u' PASSWORD
      'p' ROLE 'R'
      into :code, :name do suspend ;)

      Certainly that doesn't run. :~ Please can anybody give me some interesting advises? I look forward to all suggestions! Kind regards Christoph

      I'm a novice from Germany.

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      You are going from firebird to firebird right? When you say it doesn't "run" what do you mean exactly?

      C 1 Reply Last reply
      0
      • J jschell

        You are going from firebird to firebird right? When you say it doesn't "run" what do you mean exactly?

        C Offline
        C Offline
        Christoph1972
        wrote on last edited by
        #3

        Hi! Thanks a lot for your reply! You are going from firebird to firebird right? Yes I do. When you say it doesn't "run" what do you mean exactly? It is not possible to compile my SQL example:

        SELECT * FROM(
        FOR EXECUTE STATEMENT
        'select code, name from TMaster where group = 'A' '
        ON EXTERNAL DATA SOURCE '[IP Adrress]:\Data\DB\master.fdb' AS USER 'u' PASSWORD
        'p' ROLE 'R'
        into :code, :name do suspend ;)

        I got a SQL-Error in Line 2. If I try to compile without the select command I got the error in line 1. I suppose my way to use the "FOR EXECUTE STATEMENT" is not correct. Or do I have problems with my Firebird version? (I don't know my current version at the moment, tomorrow)

        I'm a novice from Germany.

        C 1 Reply Last reply
        0
        • C Christoph1972

          Hi! Thanks a lot for your reply! You are going from firebird to firebird right? Yes I do. When you say it doesn't "run" what do you mean exactly? It is not possible to compile my SQL example:

          SELECT * FROM(
          FOR EXECUTE STATEMENT
          'select code, name from TMaster where group = 'A' '
          ON EXTERNAL DATA SOURCE '[IP Adrress]:\Data\DB\master.fdb' AS USER 'u' PASSWORD
          'p' ROLE 'R'
          into :code, :name do suspend ;)

          I got a SQL-Error in Line 2. If I try to compile without the select command I got the error in line 1. I suppose my way to use the "FOR EXECUTE STATEMENT" is not correct. Or do I have problems with my Firebird version? (I don't know my current version at the moment, tomorrow)

          I'm a novice from Germany.

          C Offline
          C Offline
          Christoph1972
          wrote on last edited by
          #4

          My version is ok (2.5.2) So my SQL must be incorrect. Is my example basicly possible?

          I'm a novice from Germany.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups