如何在SYBASE 11.9里的 Sybase Central 里执行SQL语句

chen699 2002-10-24 04:26:53
我的机器开启PB连接数据库出错:
stored procedure 'sp_pb60table' not found. specify owner objectname or use sp_help to check whether the object exists (sp_help may produce lots of output)
在前面的贴里叫我在PB65的安装盘上找两个文件叫:PBSYC。SQL和PBSYC2。SQL,把这两个文件在PB中执行即可
或者是在Sybase Central 服务器中执行那两个SQL即可。
可是我在PB中提示错误:无效的数据库命令;
而在服务器中又找不到可以执行SQL的命令。
请大侠帮助。急。
在线等待

...全文
311 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
chen699 2002-10-25
  • 打赏
  • 举报
回复
谢谢 inalover(奇遇) 大力帮助
我的问题终于解决了。
回头想想,许多问题还是没想通。(不过能用先能吧,哈哈)

本来应是昨夜给分的,谁知线路坏了一直没上网。另外问一句,SYBASE还有别的客户端比较好用的程序好,除了SYBASE自带的和PB之外?
奇遇 2002-10-24
  • 打赏
  • 举报
回复
Your are welcome. :)
After ping success, your client sybase central will have server as your sybase server. U can do anything at client machine as server.

Yes,there are many connect type, if u use name pipe, u must use your server machine name. if tcpip ,it have not effect.
chen699 2002-10-24
  • 打赏
  • 举报
回复
是不是以前装的SERVER 没有彻底删干净
chen699 2002-10-24
  • 打赏
  • 举报
回复
谢谢 inalover

用DSEDIT 可以PINT通
以后该怎样处理呢?

不过还发现,DSEDIT的SERVER NAME 用什么都可以,只要IP地址对就行。
奇遇 2002-10-24
  • 打赏
  • 举报
回复
Now I have not Sybase environment ,So I can not test it.
I remember:
U can use client tools Dedit at the client machine. then add a server ,select TCPIP protocol (as your server ip 192.168.0.40,5000)
then test ping server,if success,that ok!

May u success!
chen699 2002-10-24
  • 打赏
  • 举报
回复
在本机PB上通过ASE服务器名可以连上
chen699 2002-10-24
  • 打赏
  • 举报
回复
真奇怪,sybase central显示的就是ASE,而且可以游览master库。
确实有MS SQL SERVER 2000在
但是

ISQL和pbsyc.sql这些文件都是在c:\sybaseServer\bin当前目录运行的。
问题出在哪呢?

奇遇 2002-10-24
  • 打赏
  • 举报
回复
First step, U will check your servername, if it not same to the name in your sybase central display,then change it.

If u also installed MicroSoft SQLServer, it also have tool isql and it may collide with sybase.
If so,U can use sybase isql with path:
c:\sybase\..\isql -S................
chen699 2002-10-24
  • 打赏
  • 举报
回复
另外客户端的软件我也在另一台机器上安装了,可以连不上服务器。这是为什么?
服务已经启动了
chen699 2002-10-24
  • 打赏
  • 举报
回复
我在试,用ISQL的时候出现错误:
CT-LIBRARY error:
ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.
我用的命令:isql -SASE -Usa -P -IPBSYC.SQL -ooutlog.log
其中:ASE是我的服务器名,sa是用户名,口令为空

不知为什么?
奇遇 2002-10-24
  • 打赏
  • 举报
回复
U can install client tool of ASE11.9.2 then u can get sql adv for executing SQL.
certainly, U also can use ase tool isql to execute SQL file
for example:
isql -Syourserver -Usa -P -IPBSYC.sql -Oyourlog.log

2,596

社区成员

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

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