Hello Patrick play around with the code below. For you the "LoginConnect String" will give you the needed informations. ------ static void Job2(Args _args) { str strappl; str strTestProd; str str1; str str2;
strappl = xInfo::directory(DirectoryType::Appl); str2 = new SqlSystem().loginConnectString(); info(strfmt("Application-Path: %1",strAppl)); info(strfmt("LoginConnectString: %1",str2)); } ------ I hope that helps. Best regards Roland --- In Axapta-Knowledge-Village@yahoogroups.com, "chuapatrickd" <[EMAIL PROTECTED]> wrote: > > Hi to all, > > Is there a function or class in AX which gives the current database , > server, user id to connect to the database and the password. In > particular, I want to get what is stored in the AX config. I will use > this info to call the stored procedures I build in that database. THis > way I don't have to create same info for user to fill-up just for this > purpose. > > THanks, > Patrick >