佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1506|回复: 21

安装不到 MSDE

[复制链接]
发表于 21-7-2005 02:37 PM | 显示全部楼层 |阅读模式
错误讯息∶
A strong SA password is required for security reasons.
Please use SAPWD switch to supply the same. Refer to
readme for more details. Setup will now exit.

MSDE 是随 VFP9 附送的,安装在 XP prof 机。

有谁知道是什么问题?
回复

使用道具 举报


ADVERTISEMENT

发表于 21-7-2005 03:17 PM | 显示全部楼层
安装的时候用这个 command argument:

setup.exe SAPWD=Admin
回复

使用道具 举报

 楼主| 发表于 21-7-2005 04:14 PM | 显示全部楼层
解决了,谢谢羊弟。
回复

使用道具 举报

 楼主| 发表于 22-7-2005 10:44 AM | 显示全部楼层
怎样使用 MSDE 来 create new SQL database,类似 SQL Server 7.0 的 Enterprise Manager,有吗?

是否 SQLAgent.exe ?什么 argument ? 如何写 ?
回复

使用道具 举报

发表于 22-7-2005 11:54 AM | 显示全部楼层
SQLAgent 是控制 MSDE 的启动/关闭.
微软是个小气鬼, MSDE 没有提供相关的工具.

我用的是 DbaMgr and DbaMgr2k, Alternative Administrative tools for Microsoft MSDE 1.0 and MSDE 2000

需要测试比较复杂的 sql, 就用 QueryCommander the sql editor. 这不可以帮你制作资料库/修改资料库, 但类似 Query Analyzer, 你需要安装 Microsoft .Net.
回复

使用道具 举报

 楼主| 发表于 22-7-2005 02:53 PM | 显示全部楼层
SQL Server Service Manager 类型 MSDE SQL Server 2000
Server 电脑名称 \\DHO
Service = SQL Server

安装了 DbaMgr2k,卡住在 SQL Server Connection Properties
Public Name = Current Server
SQL Server Instance Name = dho
User = sa
Connection TimeOut = 15
一直讲 Login error : sa
再在 Tools & Settings -> SQL Server Network Utility
Instance(s) on this server = DHO
Enable Protocols = Name Pipes & TCP/IP

后来胡乱设定 Trusted NT Connection = True 就看到类似 SQL Server 7 的 Enterprise Manager 的画面了。

这就是成功后再 create 了 Account 资料库的画面


在此真的非常感谢羊弟鼎力相助。

[ 本帖最后由 白日梦 于 22-7-2005 02:56 PM 编辑 ]
回复

使用道具 举报

Follow Us
发表于 22-7-2005 04:01 PM | 显示全部楼层
关键就在 Trusted NT Connection = True
因为你不需要任何 password 来连接你的 MSDE.

这软件有一点不好是, 用户管理那方面有点误导性.
回复

使用道具 举报

 楼主| 发表于 23-7-2005 09:24 AM | 显示全部楼层
我还不知如何用密码来连接,试很多次放 user name 就不能联接。
回复

使用道具 举报


ADVERTISEMENT

发表于 23-7-2005 10:53 AM | 显示全部楼层
原帖由 白日梦 于 23-7-2005 09:24 AM 发表
我还不知如何用密码来连接,试很多次放 user name 就不能联接。


MSDE 不需要 user name 来连接.
虽然如此, 每一个资料库需要有用户权限.

也就是说, 如果你制作了一个资料库, 那资料库没有 SA 的权限, 那么你在你的软件就没办法找到这资料库.

SA 是默认的资料库最高管理员, 当然你可以去改变它.
回复

使用道具 举报

 楼主| 发表于 23-7-2005 11:49 AM | 显示全部楼层
我今天在VFP9里编码测试 SQL 的 connection

  1. nSQL = SQLConnect('e2u','sa','')
  2. If nSQL <= 0
  3. Messagebox('Cannot make connection', 16, 'SQL Connect Error')
  4. Else
  5. Messagebox('Connection made', 48, 'SQL Connect Message')
  6. SQLDisconnect(nSQL)
  7. Endif
复制代码

失败了,后来在 ODBC 的 User DNS Add 了 Data Source 才成功联接上。
回复

使用道具 举报

发表于 23-7-2005 12:09 PM | 显示全部楼层
我不清楚 FoxPro 里的 SQLConnect, 但也许你可以查查看是否有类似的 parameter:

Provider=sqloledb;Data Source=localhost;Initial Catalog=Portal;Integrated Security=SSPI

Data Source 是资料库 server 的名字, 通常是电脑的名字或 localhost.
Initial Catalog 是资料库的名字.
Integrated Security 是运用 NT 的 Authentication

以上的都不需要 username 和 password.
回复

使用道具 举报

 楼主| 发表于 25-7-2005 10:48 AM | 显示全部楼层
SQLConnect 的 parameters:
SQLCONNECT([nStatementHandle])
SQLCONNECT([cConnectionName | cDataSourceName [, cUserID [, cPassword ]][, lShared]])

MSDE 是单机版的吗?
别架网络电脑联结不到的。同样的设定在 server 这架在另一架不跑。
回复

使用道具 举报

发表于 25-7-2005 01:01 PM | 显示全部楼层
如果你用default folder, 在C:\MSDERelA\ReadmeMSDE2000A.htm 里有解释到。

3.4.3 MSDE 2000 Setup Parameters

Most installations of MSDE 2000 Release A are made using only these Setup parameters:

Parameter Description

SAPWD="AStrongPassword"
Specifies a strong password to be assigned to the sa administrator login.


INSTANCENAME="InstanceName"
Specifies the name of the instance. If INSTANCENAME is not specified, Setup installs a default instance.




Other parameters often used to tailor an installation are:

Parameter Description

DISABLENETWORKPROTOCOLS=n

Specifies whether the instance will accept network connections from applications running on other computers. By default, or if you specify DISABLENTWORKPROTOCOL=1, Setup configures the instance to not accept network connections. Specify DISABLENETWORKPROTOCOLS=0 to enable network connections.


SECURITYMODE=SQL
Specifies that the instance be installed in Mixed Mode, where the instance supports both Windows Authentication and SQL Authentication logins.


DATADIR="data_folder_path"
Specifies the folder where Setup installs the system databases, error logs, and installation scripts. The value specified for data_folder_path must end with a backslash (\). For a default instance, Setup appends MSSQL\ to the value specified. For a named instance, Setup appends MSSQL$InstanceName\, where InstanceName is the value specified with the INSTANCENAME parameter. Setup builds three folders at the specified location: a Data folder, a Log folder, and a Script folder.


TARGETDIR="executable_folder_path"
Specifies the folder where Setup installs the MSDE 2000 executable files. The value specified for executable_folder_path must end with a backslash (\). For a default instance, Setup appends MSSQL\Binn to the value specified. For a named instance, Setup appends MSSQL$InstanceName\Binn, where InstanceName is the value specified with the INSTANCENAME parameter.


如果你要connect from others computer, 记得在install MSDE时,command argument加上DISABLENETWORKPROTOCOLS=0,这个SQL server才能accept/enable network connections
回复

使用道具 举报

 楼主| 发表于 25-7-2005 01:31 PM | 显示全部楼层
我安装时是 by default DISABLENETWORKPROTOCOLS=1,
所以只有 server 这部 connect 的到,其他不行。

是否需要重新安装一次?
回复

使用道具 举报

发表于 25-7-2005 01:53 PM | 显示全部楼层
如果要重新Install MSDE 的话...设定你的username as sa... 在你的setup.ini file 内输入以下:
setup.ini
[Options]
SECURITYMODE=SQL
UPGRADEUSER=sa

才启动installation... 那么你的server 就会by default using username >> sa, password: ""
我都是酱启动拉...
回复

使用道具 举报

 楼主| 发表于 26-7-2005 09:08 AM | 显示全部楼层
miao的方法,我把SETUP.INI设定改成
[Options]
SAPWD=admin
DISABLENETWORKPROTOCOLS=0
SECURITYMODE=SQL
DATADIR=C:\SQL
回复

使用道具 举报


ADVERTISEMENT

发表于 26-7-2005 10:07 AM | 显示全部楼层
原帖由 白日梦 于 25-7-2005 01:31 PM 发表
我安装时是 by default DISABLENETWORKPROTOCOLS=1,
所以只有 server 这部 connect 的到,其他不行。

是否需要重新安装一次?


对,需要重新安装。最好是uninstall再重新安装。



  1. 如果要重新Install MSDE 的话...设定你的username as sa... 在你的setup.ini file 内输入以下:
  2. setup.ini
  3. [Options]
  4. SECURITYMODE=SQL
  5. UPGRADEUSER=sa

  6. 才启动installation... 那么你的server 就会by default using username >> sa, password: ""
  7. 我都是酱启动拉...
复制代码



如果你是用MSDE RELEASE A 的话,是不能upgrade existing instance的,只能install NEW instance。同样的documentation里有提到:

You can only use MSDE 2000 Release A to install new instances of MSDE 2000. Do not use it to upgrade instances running earlier versions of MSDE 2000. When running the MSDE 2000 Release A version of Desktop Engine Setup.exe, do not use these switches or parameters: UPGRADE, UPGRADEUSER, UPGRADEPWD, or /upgradesp. Use SQL Server 2000 SP3a to upgrade existing instances of MSDE 2000 to MSDE 2000 SP3a. For more information about upgrades, see 1.0 Introduction.


miao的方法,我把SETUP.INI设定改成
[Options]
SAPWD=admin
DISABLENETWORKPROTOCOLS=0
SECURITYMODE=SQL
DATADIR=C:\SQL


在setup.ini,你少了一个parameter INSTANCENAME,所以你在DOS MODE必须放

setup /settings "setup.ini" INSTANCENAME="INSTANCE_NAME"

我通常把SETUP.INI设定改成 (安装在C:\MSDESQL$SQL)

[Options]
INSTANCENAME="SQL"
TARGETDIR="C:\MSDE"
SECURITYMODE=SQL
DISABLENETWORKPROTOCOLS=0
回复

使用道具 举报

发表于 26-7-2005 10:41 AM | 显示全部楼层
原帖由 DRAGONISM 于 26-7-2005 10:07 AM 发表


对,需要重新安装。最好是uninstall再重新安装。


[code]
如果要重新Install MSDE 的话...设定你的username as sa... 在你的setup.ini file 内输入以下:
setup.ini
[Options]
SECURITYMODE=SQL
...



补充:我在setup.ini没有放SAPWD,因为如果放了,我的password就不安全了。

在DOS MODE,我用
setup /settings "setup.ini" SAPWD="AStrongPassword"
就行了
回复

使用道具 举报

 楼主| 发表于 26-7-2005 04:30 PM | 显示全部楼层
我这几天用各种方法测试了。
user DNS / system DNS
之后,用 VFP 的 SQLConnect() 由其他网络电脑来测试已成功了。
回复

使用道具 举报

 楼主| 发表于 26-7-2005 04:38 PM | 显示全部楼层
在 Browse / Grid object 改了或删除了 Cursor 的资料,如何 update 回 SQL 的 Table ?


  1. nSQL = SQLConnect('hotel','sa','admin',.T.)
  2. If nSQL <= 0
  3.   Messagebox('Cannot make connection', 16, 'SQL Connect Error')
  4.   Cancel
  5. Endif

  6. SQLExec(nSQL, "Select * From Ac Readwrite Order By Ac", "_Ac")
  7. Browse
  8. SQLCommit(nSQL)
  9. SQLDisconnect(nSQL)
复制代码

[ 本帖最后由 白日梦 于 26-7-2005 04:40 PM 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 19-2-2025 04:07 AM , Processed in 0.157970 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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