Sybase是否能执行一个脚本文件去创建表?
本人刚接触sybase,现在本机上装了一个sybase client的软件去连接服务器上的sybase数据库,我想编写一个脚本文件创建一系列数据表,如何能在client端软件上去执行这个脚本文件创建数据表? 问题点数:100、回复次数:6Top
1 楼qjhadm(luckqjh)回复于 2003-09-03 19:50:42 得分 20
你可以用第三方的软件去执行这个脚本,比较好用的有SYBASE本身带了一个工具
还有dbartisan也是一个不错的工具Top
2 楼ehxz(郝晓宗)回复于 2003-09-03 21:14:35 得分 10
isqlTop
3 楼zyhlhx(踏雪无痕)回复于 2003-09-03 21:29:26 得分 20
isql -Usa -Pxxxxx -Sservername -ifile_path_and_name -ooutputfillename
Top
4 楼tchatcha(沧桑,孤独,浪漫,但执着!)回复于 2003-09-04 08:27:38 得分 20
isql -Usa -Pxxxxx -Sservername -ifile_path_and_name
或用SQL Advantage
主要用SQL Advantage
SQL Advantage is an easy-to-use Transact-SQL (T-SQL) editor that helps you compose syntactically correct T-SQL command statements with the assistance of T-SQL command templates and point-and-click tools such as Pick Lists. You can then execute your T-SQL queries, and view the results either as text, or within a gridded, spreadsheet-like display.
SQL Advantage can save results data in common PC file formats that can then be imported into other applications (for example, Microsoft Excel).
SQL Advantage may have zero, one, or more documents open at any given time, each having its own session window, or results window(s), or both session and results windows.
Top
5 楼shiufurong007(海水)回复于 2003-09-04 11:21:02 得分 20
isql -Usa -Pxxxxx -Sservername -ifile_path_and_name
name.sql
example:
use your_database
go
create table table_one...
go
create table table_two...
go
我觉得SQL Advantage和isql内部机制是一样的,只是图形界面而以。Top
6 楼dlinger()回复于 2003-09-04 12:30:20 得分 10
直接用isql的命令行工具就可以了。Top
相关问题
- 如何用JAVA脚本实现 创建文件夹和删除文件夹
- 关于sybase的脚本中创建触发器的问题
- 现在有一个SQL实例,创建了两个数据库,如何生成一个脚本文件?
- 如何在脚本文件中连续创建多个存储过程或触发器?
- 关于脚本文件
- 谁能Email给我一个PB7连Sybase数据库的脚本文件:pb_syc.sql,谢谢了!
- 生成重建数据库的脚本时,指定一个路径存放initORACLE_sid.ora文件,一直不能创建这个文件
- 创建文件
- 结合了WSH和WMI的VBScript脚本放在html文件中怎么提示不能创建对象?GetObject没有问题吧?各位达人进来LOOK.....................
- 如何用SQL脚本,或存储过程创建一个DTS包,用来将数据库中的表导出到一个.dbf文件!!




