[求助]ASP连接SQLserver时,如何配置SQLserver数据库?
在用ASP连接Access时,只要把Access设计好的数据库保存到ASP网页所在的文件夹下就可以了,但用ASP连接SQLserve数据库时应该怎样做呢?
Const SqlDatabaseName= "sqldata"
Const SqlPassword= "*****"
Const SqlUsername= "sa"
Const SqlLocalName= "(local)"
ConnStr = "Provider = Sqloledb; User ID = " & SqlUsername& "; Password = " & SqlPassword& "; Initial Catalog = " & SqlDatabaseName& "; Data Source = " & SqlLocalName& ";"
也就是说需要设置 数据库名(SqlDatabaseName)、用户密码(SqlPassword)、用户名(SqlUsername)、
'连接名(SqlLocalName)(本地用local,外地用IP)