打印本文 打印本文 关闭窗口 关闭窗口
在.net执行sql脚本的简单实现
作者:武汉SEO闵涛  文章来源:敏韬网  点击数3118  更新时间:2007/11/14 12:57:30  文章录入:mintao  责任编辑:mintao
                   }

         }

}

 

对于osql命名的参数如下:

=====================

 

用法: 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]            [-D ODBC DSN name]

  [-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]

  [-X[1] disable commands [and exit with warning]]

  [-O use Old ISQL behavior disables the following]

  [-? show syntax summary]

具体参考 

http://www.588188.com/netbook/sqlserver2000/coprompt/cp_osql_1wxl.htm

或者sql server 2000帮助文档

 

上面程序是我以前在csdn回答问题时写的,由于最近比较忙,所以偷懒了。对于本文有什么好的建议或意见请留言。Zhzuo(秋枫)

上一页  [1] [2] [3] 

打印本文 打印本文 关闭窗口 关闭窗口