简单问题,100分奉上!急啊!

funlove2002 2003-10-15 11:24:46
1。我这里有个dmp文件,怎么导入到Sybase数据库中。请写明步骤。 80分
不知道用bcp导dmp文件怎么样?我这里用
bcp MAZX.dbo.SZDS in c:\qnuse1013.dmp -U qnsoft -P qnsoft -S MAZX >>c:\log.txt命令行导文件,老实报告以下错误:
Server Message: - Msg 208, Level 16, State 1:
MAZX.dbo.SZDS not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).

Unexpected result type returned.
Retrieving table format failed.
Server Message: - Msg 208, Level 16, State 1:
MAZX..SZDS not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).

Unexpected result type returned.
Retrieving table format failed.
Server Message: - Msg 208, Level 16, State 1:
MAZX.qnsoft.SZDS not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).

Unexpected result type returned.
Retrieving table format failed.

bcp里面参数(第一个到底是怎么用啊?)

2。sybase服务器端软件能否和客户端软件安装在同一台机器上啊?怎么服务器端的软件比客户端的工具还少啊?怎么导入一个sql文本创建表和视图、存储过程啊? 20分


谢谢
...全文
146 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
freetaiger 2003-10-15
  • 打赏
  • 举报
回复
1.先将文件导入sql server中,再导入sybase中
2.当然可以,自己创建dsn就可以了(sqlserver--->sybase)
zhangxf11 2003-10-15
  • 打赏
  • 举报
回复
第一,MAZX.dbo.SZDS not found意味着你的表名或表的OWNER有误,先解决这个。
第二,server,client 可以安装在同一台机器
sky125 2003-10-15
  • 打赏
  • 举报
回复
1:usage: bcp [[database_name.]owner.]table_name[:slice_number] {in | out} datafile

[-m maxerrors] [-f formatfile] [-e errfile]
[-F firstrow] [-L lastrow] [-b batchsize]
[-n] [-c] [-t field_terminator] [-r row_terminator]
[-U username] [-P password] [-I interfaces_file] [-S server]
[-a display_charset] [-q datafile_charset] [-z language] [-v]
[-A packet size] [-J client character set]
[-T text or image size] [-E] [-g id_start_value] [-N] [-X]
[-M LabelName LabelValue] [-labeled]
[-K keytab_file] [-R remote_server_principal]
[-V [security_options]] [-Z security_mechanism] [-Q]

常用数据备份格式为:
bcp dbname..tablename out c:\temp\filename -Usa -Ppassword –Sservername –c
即可。
其中 –U后为SYBASE登录名称,–P后为SYBASE登录口令,–S后为SYBASE服务名称,–c代表使用可见文本方式导出数据
如果为数据恢复只需要将out 替换为 in 即可。

2:可以安装在同一台机器;‘导入一个sql文本创建表和视图、存储过程啊?’直接用create就行了嘛,为什么还要什么‘导入’.要不就用图形界面sybase central

2,596

社区成员

发帖
与我相关
我的任务
社区描述
Sybase相关技术讨论区
社区管理员
  • Sybase社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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