When i take the code in DB_Connect and use it directly in the script - there is no problem. But when I call it as above, I dont manage to get a connection. Anyone have any idea what the reason could be? Do i need to include func_db_connect.qvs in some different way since it containts parameters and since its a sub??
Thanks for you reply Marcus. I Couldnt find a proper solution to this one I think. I solved it by just referencing the .qvs with an include (neglecting the Sub Statement): //SUB DB_CONNECT(ENVIRONMENT, DB) $(Include=D:\QVStorage\BI_DEV\COMMON\DB\DB_Connect.qvs); //END SUB