批处理执行sql语句 osql
摘要:
Softwareversion:MicrosoftSQLServer2005-9.00.1399.06Sql.sql:insertintoTao.dbo.C(CNO,CNAME)values(900,'AAA')注:对象名使用完全限定名,即database.schema.object(table),如Tao.dbo.C否则会报错。batch.bat:@ECHOOFF@title恢复数据库脚本osql-E-S"ComputerName"-i"Sql.sql" SETtable=Tao.dbo.Cosql-E-q"select*fr 阅读全文
posted @ 2012-08-18 13:17 Guifang 阅读(496) 评论(0) 推荐(0) 编辑