查看: 1506|回复: 21
|
安装不到 MSDE
[复制链接]
|
|
错误讯息∶
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 机。
有谁知道是什么问题? |
|
|
|
|
|
|
|
发表于 21-7-2005 03:17 PM
|
显示全部楼层
安装的时候用这个 command argument:
setup.exe SAPWD=Admin |
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 21-7-2005 04:14 PM
|
显示全部楼层
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 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
|
显示全部楼层
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 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 资料库的画面
![](http://img.photobucket.com/albums/v188/vider_ho/Programming/sql_db_mgr.jpg)
在此真的非常感谢羊弟鼎力相助。
[ 本帖最后由 白日梦 于 22-7-2005 02:56 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 22-7-2005 04:01 PM
|
显示全部楼层
关键就在 Trusted NT Connection = True
因为你不需要任何 password 来连接你的 MSDE.
这软件有一点不好是, 用户管理那方面有点误导性. |
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 23-7-2005 09:24 AM
|
显示全部楼层
我还不知如何用密码来连接,试很多次放 user name 就不能联接。 |
|
|
|
|
|
|
|
发表于 23-7-2005 10:53 AM
|
显示全部楼层
原帖由 白日梦 于 23-7-2005 09:24 AM 发表
我还不知如何用密码来连接,试很多次放 user name 就不能联接。
MSDE 不需要 user name 来连接.
虽然如此, 每一个资料库需要有用户权限.
也就是说, 如果你制作了一个资料库, 那资料库没有 SA 的权限, 那么你在你的软件就没办法找到这资料库.
SA 是默认的资料库最高管理员, 当然你可以去改变它. |
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 23-7-2005 11:49 AM
|
显示全部楼层
我今天在VFP9里编码测试 SQL 的 connection
- nSQL = SQLConnect('e2u','sa','')
- If nSQL <= 0
- Messagebox('Cannot make connection', 16, 'SQL Connect Error')
- Else
- Messagebox('Connection made', 48, 'SQL Connect Message')
- SQLDisconnect(nSQL)
- 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. |
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 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 |
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 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: ""
我都是酱启动拉... |
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 26-7-2005 09:08 AM
|
显示全部楼层
miao的方法,我把SETUP.INI设定改成
[Options]
SAPWD=admin
DISABLENETWORKPROTOCOLS=0
SECURITYMODE=SQL
DATADIR=C:\SQL |
|
|
|
|
|
|
|
发表于 26-7-2005 10:07 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 26-7-2005 10:41 AM
|
显示全部楼层
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 26-7-2005 04:30 PM
|
显示全部楼层
我这几天用各种方法测试了。
user DNS / system DNS
之后,用 VFP 的 SQLConnect() 由其他网络电脑来测试已成功了。 |
|
|
|
|
|
|
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 26-7-2005 04:38 PM
|
显示全部楼层
在 Browse / Grid object 改了或删除了 Cursor 的资料,如何 update 回 SQL 的 Table ?
- nSQL = SQLConnect('hotel','sa','admin',.T.)
- If nSQL <= 0
- Messagebox('Cannot make connection', 16, 'SQL Connect Error')
- Cancel
- Endif
- SQLExec(nSQL, "Select * From Ac Readwrite Order By Ac", "_Ac")
- Browse
- SQLCommit(nSQL)
- SQLDisconnect(nSQL)
复制代码
[ 本帖最后由 白日梦 于 26-7-2005 04:40 PM 编辑 ] |
|
|
|
|
|
|
| |
本周最热论坛帖子
|