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)