Currently Browsing: 脚本

SQl 语句(常见) 新建,删除,修改表结构

create table [表名] ( [自动编号字段] int IDENTITY (1,1) PRIMARY KEY , [字段1] nVarChar(50) default ‘默认值’ null , [字段2] ntext null , [字段3] datetime, [字段4] money null , [字段5] int default 0, [字段6] Decimal (12,4) default 0, [字段7] image null , ) 删除表: Drop table [表名] 插入数据: INSERT INTO [表名] (字段1,字段2) VALUES (100,’51WINDOWS.NET’) 删除数据: DELETE FROM [表名] WHERE [字段名]>100 更新数据: UPDATE [表名] SET [字段1] = 200,[字段2] = ’51WINDOWS.NET’ WHERE [字段三] =...
read more

创建Excel.Application对象

<%Set xlApplication = Server.CreateObject(“Excel.Application”) ‘调用excel对象%> 一般没有经过设置的IIS服务器在执行这一句时都会出现错误,返回的错误信息如下: 错误类型: Server 对象, ASP 0178 (0×80070005) 检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。 英文版的错误信息如下: Error Type: Server object, ASP 0178 (0×80070005) The call to Server.CreateObject failed while checking permissions. Access is denied to this object. 这是IIS中没有注册使用MS...
read more