Gallery: MSSQL:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: = Microsoft SQL Server For Gallery 2 = Gallery 2 supports '''Microsoft SQL Server''' (version 2005 and later) as a database backend as of Gallery 2.2. * Full testing has been done using ...)
 
无编辑摘要
 
第1行: 第1行:
= Microsoft SQL Server For Gallery 2 =
= Gallery2的Microsoft SQL Server =
Gallery 2 supports '''Microsoft SQL Server''' (version 2005 and later) as a database backend as of Gallery 2.2.
Gallery2支持'''Microsoft SQL Server'''(2005及更新的版本)作为数据库后端,如Gallery 2.2。


* Full testing has been done using SQL Server 2005 Express Edition (which is a free download from Microsoft).  Pre-2005 versions are known to not work completely (e.g. SQL Server 7 does not work with the linkitem module, and most likely not with certain, basic core functions).
* SQL Server 2005 Express Edition(可从Microsoft免费下载)已经过完整的测试。2005之前的版本已知完全无法运行(如SQL Server 7无法兼容linkitem模块,更可能无法与特定的基础核心函数兼容)。


== Limitations ==
==局限性 ==
* '''Missing UTF-8 support (UCS-2 instead)''' - MS SQL Server is the only Gallery 2 database backend that does not support UTF-8. MS SQL Server uses UCS-2 to encode unicode characters instead. UCS-2 is a 2-byte locale-dependent encoding. That means that it can store all characters for the configured language (locale), but not for other languages at the same time. All other database backends for Gallery 2 can store strings for all languages at the same time.
* '''失去UTF-8支持(取而代之的是UCS-2)''' - MS SQL Server是唯一的不支持UTF-8的Gallery2数据库后端。取而代之的是,MS SQL Server使用UCS-2来编码unicode字符。UCS-2是一个2-byte本地依赖编码。这意味着它可以存储经配置的(本地)语言的所有字符,但与此同时就不保存其他语言的字符了。而所有其他的Gallery2数据库后端则可以同时存储所有语言的字串。
* '''Limited testing''' - MS SQL Server is the latest addition to the list of supported database backends of Gallery 2. It's not used by any Gallery 2 developer as the main development platform and the userbase is very small at this point. Thus you cannot expect the same stability as from e.g. G2/MySQL or G2/PostgreSQL which are used by thousands of users and during development. Nevertheless, we run a large set of unit tests on all supported platforms for each release, including MS SQL Server / Windows XP.
* '''被限制的测试''' - MS SQL Server是最晚被加入到Gallery2所支持的数据库后端列表中的。它没有被任何Gallery2开发者选作主要的开发平台且用户群也很小。因此不要期望其稳定应能够与为数千用户所使用并用于开发的G2/MySQL或G2/PostgreSQL相媲美。尽管如此,我们还是为各发布版本的所有支持平台多进行了单元测试,其中就包括了MS SQL Server / Windows XP。


== Database Creation Steps (Before running the Installer) ==
== 数据库创建步骤(运行安装程序之前)==
* To create a "gallery2" database from scratch, put the following statements into a file (called, for example, "create_Gallery2.sql"), substituting your Gallery 2 account information for "g2user" and "g2pwd":
* 创建一"gallery2"数据库,将下面的语句置入一文件中(可命名为如"create_Gallery2.sql"),提交你Gallery2账户信息的"g2user""g2pwd"


  create database gallery2
  create database gallery2
第24行: 第24行:
  go
  go


Run the statements in that file using the "sqlcmd" command line interface:
使用"sqlcmd"命令行接口来运行该文件中的语句:


  "sqlcmd -S myhostname\SQLEXPRESS -e -i create_Gallery2.sql"
  "sqlcmd -S myhostname\SQLEXPRESS -e -i create_Gallery2.sql"


Your database should now be ready for the Gallery 2 Installer.
现在你的数据库应为Gallery2安装程序准备完毕了。


For more Microsoft SQL Server documentation, see http://msdn2.microsoft.com/en-us/library/ms379066.aspx.
更多有关Microsoft SQL Server的资料请参看http://msdn2.microsoft.com/en-us/library/ms379066.aspx.


* At Step 5 of the Installer ("Database Setup" step), in the "Hostname" field, enter your hostname and append "\SQLEXPRESS".  For example, "myhostname\SQLEXPRESS".
* 在安装程序中的第五步("数据库安装(Database Setup)"步骤)中的"Hostname"字段中,输入你的hostname并后置"\SQLEXPRESS"。例如,"myhostname\SQLEXPRESS"


[[Category:Gallery 2]]
[[Category:Gallery 2]]

2008年10月7日 (二) 16:56的最新版本

Gallery2的Microsoft SQL Server[ ]

Gallery2支持Microsoft SQL Server(2005及更新的版本)作为数据库后端,如Gallery 2.2。

  • SQL Server 2005 Express Edition(可从Microsoft免费下载)已经过完整的测试。2005之前的版本已知完全无法运行(如SQL Server 7无法兼容linkitem模块,更可能无法与特定的基础核心函数兼容)。

局限性[ ]

  • 失去UTF-8支持(取而代之的是UCS-2) - MS SQL Server是唯一的不支持UTF-8的Gallery2数据库后端。取而代之的是,MS SQL Server使用UCS-2来编码unicode字符。UCS-2是一个2-byte本地依赖编码。这意味着它可以存储经配置的(本地)语言的所有字符,但与此同时就不保存其他语言的字符了。而所有其他的Gallery2数据库后端则可以同时存储所有语言的字串。
  • 被限制的测试 - MS SQL Server是最晚被加入到Gallery2所支持的数据库后端列表中的。它没有被任何Gallery2开发者选作主要的开发平台且用户群也很小。因此不要期望其稳定应能够与为数千用户所使用并用于开发的G2/MySQL或G2/PostgreSQL相媲美。尽管如此,我们还是为各发布版本的所有支持平台多进行了单元测试,其中就包括了MS SQL Server / Windows XP。

数据库创建步骤(运行安装程序之前)[ ]

  • 创建一"gallery2"数据库,将下面的语句置入一文件中(可命名为如"create_Gallery2.sql"),提交你Gallery2账户信息的"g2user"及"g2pwd":
create database gallery2
go
use gallery2
go
create schema g2user
go
create login g2user with password = "g2pwd"
go
create user g2user for login g2user with default_schema = g2user
go
grant ALTER, INSERT, UPDATE, SELECT, DELETE to g2user
go

使用"sqlcmd"命令行接口来运行该文件中的语句:

"sqlcmd -S myhostname\SQLEXPRESS -e -i create_Gallery2.sql"

现在你的数据库应为Gallery2安装程序准备完毕了。

更多有关Microsoft SQL Server的资料请参看http://msdn2.microsoft.com/en-us/library/ms379066.aspx.

  • 在安装程序中的第五步("数据库安装(Database Setup)"步骤)中的"Hostname"字段中,输入你的hostname并后置"\SQLEXPRESS"。例如,"myhostname\SQLEXPRESS"。