+ -
当前位置:首页 → 问答吧 → sybase 判断错误

sybase 判断错误

时间:2011-07-04

来源:互联网

执行报错:
Msg 4002, Level 14, State 1:
Server 'SVR':
Login failed.
CT-LIBRARY error:
        ct_connect(): protocol specific layer: external error: The attempt to connect to the server failed.

cat <<MM/echo "
if exists( select name from master.dbo.syslogins where name = '$NAME')
begin
    exec sp_droplogin '$NAME'
end
go
" > ${NAME}.sql

$$ -i${NAME}.sql -o$LogFile

$$ < ${NAME}.sql

$$ <<!!
echo ""
!!

作者: tanjiyong138   发布时间: 2011-07-04

回复 tanjiyong138


   脚本有错误。
在isql连接串中没有指定用户名和密码。

作者: andkylee   发布时间: 2011-07-05

相关阅读 更多