1. Swarnendu Das
  2. PowerBuilder
  3. Monday, 16 September 2019 15:46 PM UTC

Hi Bruce et al.

I have deleted all the database profile from my PowerBuilder IDE and then tried to deploy a build for a target when I got error saying "Cannot compile without valid database sign-on". During the build process the "Database Profiles" window pops up asking me to connect to the database which I closed every time. 

But if I try to deploy the same application through command line the build becomes successful and the PBDs and Exe are generated. 

/d "C:\ApplBuild\pb\bem.pbt" /o "C:\ApplBuild\pb\bem.exe" /r "C:\ApplBuild\pb\bem.pbr" /w y /f /m n /x 32 /bg y /p "BEM" /cp "Company Name " /de "Manage Product Flow" /cr "Company Name" /v "1.1.0.1" /vn "1.1.0.1" /fv "1.1.0.1" /fvn "1.1.0.1" /ge 0 

 

Why is this so? How does PowerBuilder gets the Database information while compilation when deployment is done through command line? 

I am questioning because as I want to make the build process automated I want to make sure that running a deployment from command line is 100% legitimate and no error are suppressed.

Thank you!

Swarnendu Das.

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 16 September 2019 15:54 PM UTC
  2. PowerBuilder
  3. # 1

Hi Swarnendu;

   The IDE compilation will try and check (verify) your in-line and DWO's DML. That is why the IDE keeps asking for a DB Connection (aka Sign on). You can defeat this requirement in the IDE via the "System Options" dialogue, as follows:

 

The PBC does not verify your App's DML during compilation and thus why it never asks for a DB Connection - hence, sign on.

HTH

Regards ... Chris

Comment
  1. Swarnendu Das
  2. Monday, 16 September 2019 16:07 PM UTC
Awesome! Thank you so much Chris!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.