如何实现无组件上传到数据库?

shearydeng83 2006-12-05 11:40:40
本身数据库里面有数据表,表里的字段格式已经定好了,我只是想把一些新的数据倒进去,例如是倒入1000条数据这样,这个可以用上传来实现吗?
请讲得详细点,其实我连无组件上传也不知怎么用哦~~
...全文
96 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hdhmail2000 2006-12-06
  • 打赏
  • 举报
回复
sql server的帮助啊,bcp导入数据
你也可以自己找来看看哦
shearydeng83 2006-12-06
  • 打赏
  • 举报
回复
哗!!一点都睇唔明哦!!!什么东东来的??
hdhmail2000 2006-12-06
  • 打赏
  • 举报
回复
不过不用定时执行的话,直接用bcp就可以了
Syntax
bcp {[[database_name.][owner].]{table_name | view_name} | "query"}
{in | out | queryout | format} data_file
[-m max_errors] [-f format_file] [-e err_file]
[-F first_row] [-L last_row] [-b batch_size]
[-n] [-c] [-w] [-N] [-V (60 | 65 | 70)] [-6]
[-q] [-C code_page] [-t field_term] [-r row_term]
[-i input_file] [-o output_file] [-a packet_size]
[-S server_name[\instance_name]] [-U login_id] [-P password]
[-T] [-v] [-R] [-k] [-E] [-h "hint [,...n]"]


For example, the Northwind database has the table Jane's Orders, which is owned by user Jane Doe. To bulk copy this table from the Northwind database to the Orders.txt file using the login Jane Doe and the password go dba, execute one of these commands:

bcp "Northwind.Jane Doe.Jane's Orders" out "Jane's Orders.txt" -c -q -U"Jane Doe" -P"go dba"

bcp "Northwind.[Jane Doe].[Jane's Orders]" out "Jane's Orders.txt" -c -U"Jane Doe" -P"go dba"

To specify a database name that contains a space or quotation mark, you must use the –q option.

hdhmail2000 2006-12-06
  • 打赏
  • 举报
回复
就是sql server用来导入数据的工具阿
data transformation services
hdhmail2000 2006-12-05
  • 打赏
  • 举报
回复
dts
shearydeng83 2006-12-05
  • 打赏
  • 举报
回复
upup
shearydeng83 2006-12-05
  • 打赏
  • 举报
回复
dts?什么意思哦?不解!

28,408

社区成员

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

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