gem's profileWaiting…BlogLists Tools Help

Blog


    08/11/2009

    Keyword:Domino ODBCConnection

    在2个错误上纠结了很久,都是关于在Domino上运行代理,连接关系数据库的
    所以新手注意:
    1、在Domino上新建ODBC数据源时,应该加入“系统DSN
    默认好像是加在“用户DSN”,这样会导致Notes端无法访问,错误提示如下:
    Connector 'odbc2',Method -connect- (71)
     
    2、ODBCconnection的ConnectTo操作带用户名和口令时,发生的灵异现象
    如果不到用户名和口令,只需con.ConncetTo("DSN数据源名称")
    但是若需代理RunOnServer,上面写法就不行了
    因为DSN无法记录口令密码,执行到ConnectTo语句时,Domino端会跳出对话框要求输入用户名和口令,在等待用户名和口令期间Notes端也进入半死不活的僵死态
    解决方案之一就是在ConnectTo中带参数,于是灵异现象发生了……
    若直接写作con.ConnectTo("数据源","用户名","密码")
    这句测试代码就是无法通过语法检查
    郁闷!郁闷!郁闷!郁闷!
    改作
     if con.ConnectTo("数据源","用户名","密码") = false then
    end if
    奇迹出现了…
     
     
    时间总被蹉跎在TroubleShooting上狗脸流光容易把人抛,红了樱桃,绿了芭蕉
     

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://cletgem.spaces.live.com/blog/cns!DC2AFAB4BD907791!2641.trak
    Weblogs that reference this entry
    • None