Results 1 to 5 of 5

Thread: ODBC Connection String definition and example(s)

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184

    ODBC Connection String definition and example(s)

    Since we use connection strings instead of DSN"s (as does just about anyone who wants to retain the sanity of their Support staff), it would be helpful to have documentation of the Lianja SQL Server ODBC driver.

    thanks,

    Hank

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,840
    Hi Hank,

    I'll add it in. The basic string is as follows:

    Code:
    lcDSNLess="DRIVER=Lianja ODBC Driver;" ; 
    + "SERVERNAME=192.168.123.123;USERNAME=server-user;PASSWORD=user-password;DATABASE=southwind"
    lnConnHandle=SQLSTRINGCONNECT(lcDSNLess)
    if lnConnHandle > 0
    	sqlexec(lnConnHandle,"select * from shippers")
    	list
    	sqldisconnect(lnConnHandle)
    endif
    For the local machine you can also use:

    Code:
    SERVERNAME=?;USERNAME=?;PASSWORD=?
    or

    Code:
    SERVERNAME=localhost;USERNAME=?;PASSWORD=?

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184
    Thanks!

    BTW: the Wiki is looking very good. Should I find missing commands/functions, would the best course of action be to ticket them, or report them here?

    Hank

  4. #4
    Lianja Support Team lianjasupport's Avatar
    Join Date
    Feb 2012
    Location
    Boston USA, Wokingham UK
    Posts
    1,259
    Thanks.
    Tickets are best: they can be easily tracked and dealt with and there's usually not much to discuss.

  5. #5
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,840
    This information can now also be found in the Documentation Wiki.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us