请问如何通过vb编程实现对sql server数据库的一个表或者是部分表进行备份? 各位老大,真的很急,有谁知道麻烦告诉我。bcp命令是在哪里执行的?我在查询分析器里执行的时候提示存储过程不能使用out什么的错误。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用vb调用win api打开一个command窗口(当然你可以不让它显示出来)然后在里边执行bcp命令。bcp命令的具体用法:用法: bcp {dbtable | query} {in | out | queryout | format} datafile [-m maxerrors] [-f formatfile] [-e errfile] [-F firstrow] [-L lastrow] [-b batchsize] [-n native type] [-c character type] [-w wide character type] [-N keep non-text native] [-V file format version] [-q quoted identifier] [-C code page specifier] [-t field terminator] [-r row terminator] [-i inputfile] [-o outfile] [-a packetsize] [-S server name] [-U username] [-P password] [-T trusted connection] [-v version] [-R regional enable] [-k keep null values] [-E keep identity values] [-h "load hints"]进一步的用法到book online里去查吧。 SQL没有队表备份的这一个概念!最多是把数据倒出来,这也算备份么? 用BCP或者 DTS都可以 直接在VB中调用备份的SQL语句就行了:)导入导出直接用SQL完成 一个超难的SQL语句 SQL索引的问题,在线等~急~ 帮从SQL导出到Book1.xlsx那么不对哦 求个语句 查询表是否有索引?出现的问题 sql2000数据库 主文件损坏,只有日志文件,如何恢复? 请问大家在设计数据库的时候是以2个字段联合作为主键还是增加一个自增字段作为主键的好?》 sql server 多个left join 之后数据重复的问题 请教一条统计的SQL语句 Help!!!请数据库高手关注。。。。。 有关数据库备份 数据库管理员
用法: bcp {dbtable | query} {in | out | queryout | format} datafile
[-m maxerrors] [-f formatfile] [-e errfile]
[-F firstrow] [-L lastrow] [-b batchsize]
[-n native type] [-c character type] [-w wide character type]
[-N keep non-text native] [-V file format version] [-q quoted identifier]
[-C code page specifier] [-t field terminator] [-r row terminator]
[-i inputfile] [-o outfile] [-a packetsize]
[-S server name] [-U username] [-P password]
[-T trusted connection] [-v version] [-R regional enable]
[-k keep null values] [-E keep identity values]
[-h "load hints"]
进一步的用法到book online里去查吧。
导入导出直接用SQL完成