select distinct a.bank_name ,a.bank_cont_person,a.bank_cont_person_phone,b.acct_num
from bank a,account b  在查询分析器中能运行吗?

解决方案 »

  1.   

    1、你两个表没有关系的吗?你不写join 或 where的吗?
    2、a.bank_cont_person_phone是什么类型?
      

  2.   

    什么看ODBC有没有问题
    执行procedure要odbc吗???
      

  3.   

    CREATE proc pt_job_list
    as
    select job_name,job_name_abbr,job_duty
    from job
    用调试器调试时的提示
    ODBC: 消息 0,级别 19,状态 1
    [Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler: 进程 56 发生了严重的异常 c0000005 EXCEPTION_ACCESS_VIOLATION。SQL Server 将终止该进程。
      

  4.   

    may be you shoule install the latest version of SQL Server2k SP3
      

  5.   

    DBCC checktable
    DBCC checkdb
      

  6.   

    may be you shoule install the latest version of SQL Server2k SP3(黄山光明顶) 厉害,症状很象遭到拒绝服务攻击,可以装一下试试,万一好了呢?
    需要启动一下sql agent
      

  7.   

    建议使用ODBC连接,即使使用ADO,连接属性也最好用ODBC的连接。
    在开发中用ODBC的连接调用Procedure,效果最好。
      

  8.   

    may be you shoule install the latest version of SQL Server2k SP3