DB类host=$host; $this->user=$user; $this->pass=$pass; $this->data=$data; $this->conn=$conn; $this->code=$code; $this->connect(); } public function __get($name){return $this->$name;} public function __set($name,$value){$this->$
网上购物商城使用说明书 安装及配置 1.附加SQL Server 2005数据库 (1)将“光盘\mr\NetShop\App_Data”文件夹中的db_NetShop.mdf和db_NetShop_log.ldf文件拷贝到SQL Server 2005安装路径下的MSSQL.1\MSSQL\Data目录下。 (2)选择“开始/程序/Microsoft SQL Server 2005/SQL Server Management Studio”项,进入到“连接到服务器”页面,如图1.1所示。 图
.在服务器级别上创建三个以SQL Server身份验证的登录名,登录名称自定。 create login Tom with password='123' create login Mary with password='123' create login John with password='123'
更改代码中服务器名称和数据库: Public Sub Connection_String() ConnectionString = "Provider=sqloledb;Data Source=服务器名称;Initial Catalog=数据库;User Id=sa;Password='';" End Sub 可查看SQL服务中表\视图名称\结构和数据