WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADO DAO
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Use the Datalinks Dialog to insert ADO Connection info into a script


Add the following to your WinBatch Studio Context menu (C:\Program Files\WinBatch\System\wsp-user.mnu). It uses the Datalinks Dialog to insert ADO Connection info into a script.
ADO Connection
    oDB = CreateObject("ADODB.Connection")
    oLink = CreateObject("DataLinks")
    oDB = oLink.PromptNew
    cConn = StrCat("cConn='",oDB.ConnectionString,"'")
    oLink=0
    oDB=0
    cConn = StrReplace(cConn,"True","@True")
    cConn = StrReplace(cConn,"False","@False")
    cConn=StrCat(cConn,@CRLF,'oDB=CreateObject("ADODB.Connection")',@CRLF)
    cConn= StrCat(cConn,'oDB.CursorLocation=3',@CRLF)
    cConn= StrCat(cConn,'oDB.Open(cConn)',@CRLF)
    ClipPut(cConn)
    wPaste()

Article ID:   W17117
File Created: 2007:07:03:14:28:22
Last Updated: 2007:07:03:14:28:22