1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Is it possible to connect to a database using a .PF file programatically

Discussão em 'StackOverflow' iniciado por fdantas, Maio 9, 2018.

  1. fdantas

    fdantas Administrator Moderador

    I would like to use a switch case for connect to different sets of databases, is it possible to use the connect statement with a .pf file that only contains -db parameters? I have tried it but I always get error 1402: parameter -p is not a database parameter and was ignored. But there is no -p parameter in my .pf files...

    Something like this:

    CASE Db_Name:
    WHEN "Test":
    CONNECT TO 'test.pf'.
    END.
    OTHERWISE:
    CONNECT TO 'Db.pf'.
    END.
    END CASE.


    Thanks in advance

    Continue reading...

Compartilhe esta Página