Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » 使用 UltraLite 数据库 » 创建和配置 UltraLite 数据库 » 创建 UltraLite 数据库

 

从命令提示符创建 UltraLite 数据库

可以从命令提示符使用 ulcreate 实用程序创建数据库。在此实用程序中,可以加入实用程序选项来配置数据库。

创建新的 UltraLite 数据库(命令提示符)

运行 ulcreate 实用程序,在其中加入任何必要的选项。例如,要创建名为 test.udb 的区分大小写的 UTF-8 数据库,如果该数据库已存在,将其覆盖,运行以下命令:

ulcreate -c "DBF=test.udb" -o "case=respect;utf_encoding=1" -y

在连接字符串中提供数据库文件是在其它选项之后指定数据库文件的一种替代方法。例如:

ulcreate -o "case=respect;utf_encoding=1" -y test.udb