前事不忘,后事之师,不忘国耻!

SAP SYBASE论坛中文社区技术服务

 找回密码
 站点注册

QQ登录

只需一步,快速开始

查看: 606|回复: 1
收起左侧

[PB2017以后] PB2021Installing PowerBuilder demo applications and database

[复制链接]
ehxz 发表于 2022-2-5 15:49:49 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?站点注册

x
The PowerBuilder demo applications and database are installed by default, unless you de-selected the PowerBuilder Tutorial, Demo Database, and Code Examples components during installation.
If the PowerBuilder demo applications and database are not installed during the PowerBuilder installation process, you can manually download the demo app source code and database from the Appeon website later: Example App, Example Graph App, Example Sales App and the SQL Anywhere database or PostgreSQL database file.
But before you can successfully run the downloaded demo application, you will need to set up an ODBC data source to connect with the demo database.
To set up the ODBC data source with the SQL Anywhere demo database,
  • Install SQL Anywhere 17.
  • Create the ODBC data source that includes the following settings.
    Data Source Name: PB Demo DB V2021
    User ID: dba
    Password: sql
    Action: Start and connect to a database on this computer
    Database file: [path to the database file]
    Database name: pbdemo2021
    Server name: PBDemoDB2021
    Start line: [path to the SQL Anywhere engine]
    a1.png



    a2.png

To set up the ODBC data source with the PostgreSQL demo database,
  • Install PostgreSQL 12 and PostgreSQL ODBC driver (32-bit).
    Make sure the Command Line Tools component is selected during the PostgreSQL 12 installation.
  • Restore the PostgreSQL demo database file. For example,
    "C:\Program Files\PostgreSQL\12\bin\pg_restore" --host=127.0.0.1 --port=5432 --username="postgres" --clean --if-exists --dbname=PBDemo --verbose "C:\DB\pbpostgres2021.dmp"
  • Create the ODBC data source that includes the following settings.
    Data Source: PB Postgres V2021
    Database: PBDemo
    Server: [IP address for the database]
    Username: [user name for the database, postgres, by default]
    Port: [port number for the database, 5432, by default]
    Password: [password for the database, postgres, for example]
    a3.png



    a4.png
from:
https://docs.appeon.com/pb2021/installation_guide_for_pb/Installing_PowerBuilder_demo_applications_and_database.html

PB2021配套DEMO用PowerBuilder-Project-Example-Database
https://www.sybasebbs.com/forum. ... 89984&fromuid=6
(出处: SAP SYBASE论坛中文社区技术服务)

你不共享给别人,谁会共享给你?
SYBASE论坛欢迎您能交换更多好的信息,资料,代码……
富强,民主,文明,和谐;自由,平等,公正,法治;爱国,敬业,诚信,友善!
SYBASEBBS - 免责申明1、欢迎访问“SYBASEBBS.COM”,本文内容及相关资源来源于网络,版权归版权方所有!本站原创内容版权归本站所有,请勿转载!
2、本文内容仅代表作者观点,不代表本站立场,作者自负,本站资源仅供学习研究,请勿非法使用,否则后果自负!请下载后24小时内删除!
3、本文内容,包括但不限于源码、文字、图片等,仅供参考。本站不对其安全性,正确性等作出保证。但本站会尽量审核会员发表的内容。
4、如本帖侵犯到任何版权问题,请立即告知本站 ,本站将及时删除并致以最深的歉意!客服邮箱:admin@sybasebbs.com
aloneinchina 发表于 2022-2-7 10:48:36 | 显示全部楼层
谢谢分享
你不共享给别人,谁会共享给你?
SYBASE论坛欢迎您能交换更多好的信息,资料,代码……
富强,民主,文明,和谐;自由,平等,公正,法治;爱国,敬业,诚信,友善!
您需要登录后才可以回帖 登录 | 站点注册

本版积分规则

QQ|Archiver|SYBASE论坛中文社区 ( 鲁ICP备2021027222号-1 )

GMT+8, 2022-5-24 03:46 , Processed in 0.046079 second(s), 9 queries , MemCached On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表