请问在installshield中能自动执行建库建表的sql命令吗?

lurry 2002-02-27 11:30:53
如果我想在安装asp文件时自动执行sql命令,该如何去做?谢谢!!
...全文
82 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
Jaron 2002-09-03
  • 打赏
  • 举报
回复
要了解更多的关于InstallShield的资料,请访问http://www.jiangdu.net/bbs

usage: osql [-U login id] [-P password]
[-S server] [-H hostname] [-E trusted connection]
[-d use database name] [-l login timeout] [-t query timeout]
[-h headers] [-s colseparator] [-w columnwidth]
[-a packetsize] [-e echo input] [-I Enable Quoted Identifiers]
[-L list servers] [-c cmdend]
[-q "cmdline query"] [-Q "cmdline query" and exit]
[-n remove numbering] [-m errorlevel]
[-r msgs to stderr] [-V severitylevel]
[-i inputfile] [-o outputfile]
[-p print statistics] [-b On error batch abort]
[-O use Old ISQL behavior disables the following]
<EOF> batch processing
Auto console width scaling
Wide messages
default errorlevel is -1 vs 1
[-? show syntax summary]
softwareforjava 2002-09-03
  • 打赏
  • 举报
回复
给我一份吧:
hejiwang@91858.com
julyclyde 2002-03-06
  • 打赏
  • 举报
回复
没用过SQL SERVER啊?
OSQL.EXE就是SQL SERVER里边的
cuizhiyong 2002-03-06
  • 打赏
  • 举报
回复
给我一份吧。谢谢:)
cuicuiczy@sohu.com
PerfectCK 2002-03-04
  • 打赏
  • 举报
回复
用Osql.exe执行SQL脚本!
qimz 2002-03-04
  • 打赏
  • 举报
回复
能给我一份吗?qimz@glnpu.com
liao_yy 2002-03-04
  • 打赏
  • 举报
回复
我也想要一份:helpmybl@163.com
lurry 2002-02-27
  • 打赏
  • 举报
回复
能贴出来吗?或者给我发一份,好吗?jxx1_xia@chinaren.com
非常感谢!一定给分。
ttt2 2002-02-27
  • 打赏
  • 举报
回复
能sqlserve导出sql语名
然后用installshield执行
我有成功的源程序
playmud 2002-02-27
  • 打赏
  • 举报
回复
可以,也可以用asp文件创建表
例子如下:
<%
On Error Resume Next
set con=server.createobject("adodb.connection")
con.open "server=(local);driver=sql server;database=redriver;uid=sa;pwd="
'Catalog
'con.execute "drop table Catalog"
sql="create table Catalog( CatalogID int NOT NULL ,"&_
"CatalogName nvarchar(40) Not Null,"&_
"FatherID int not null)"
con.execute sql
'con.execute "drop table Product"
sql="create table Product( ProductID int identity(1,1) NOT NULL ,"&_
"ProductName nvarchar(100) Not Null,"&_
"ProductNumber nvarchar(40) Not Null,"&_
"StopFlag bit not null,"&_
"Bitmap nvarchar(50) Null,"&_
"Notes ntext null,"&_
"Discount real null,"&_
"Price real null,"&_
"FatherID int not null)"
con.execute sql
Response.Write Err.Description
%>
lurry 2002-02-27
  • 打赏
  • 举报
回复
我是installshield 5.1,无法打开源程序,哪里有6.1或6.2的下载?
lurry 2002-02-27
  • 打赏
  • 举报
回复
谢谢您,我先看一下。
szqed 2002-02-27
  • 打赏
  • 举报
回复
我也想要一份源程序。因为我也需要做发布程序。
我的邮箱philip_wang@21cn.com
ttt2 2002-02-27
  • 打赏
  • 举报
回复
发过去了

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧