Results 1 to 10 of 17

Thread: Working with MSSQL

Threaded View

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,181
    Blog Entries
    22

    Working with MSSQL

    It is simple to work with third party databases in Lianja.

    Apart from Virtual Tables you can perform queries very quickly with minimum coding.

    Take a look at this screenshot which demonstrates how to perform SQL queries quickly against MSSQL.

    Name:  Screen Shot 2017-02-03 at 11.04.04 AM.jpg
Views: 1216
Size:  91.5 KB

    Notice how you can specify the CONNSTR (connection string) which will connect to MSSQL and perform a SELECT * FROM the specified table name selecting the rows that match the WHERE condition.

    We can also specify the SQL SELECT statement we want to execute. See below.

    Name:  Screen Shot 2017-02-03 at 11.14.02 AM.jpg
Views: 1102
Size:  67.2 KB

    Now that we have the MSSQL data in a local cursor we can slice it up and output JSON to send back to a web/mobile client.

    Name:  Screen Shot 2017-02-03 at 12.46.06 PM.jpg
Views: 1114
Size:  77.2 KB

    Clearly we can query MySQL data and PostgreSQL data also and fetch the data into a local cursor.

    At this point we can then perform a join of MSSQL and MySQL and PostgreSQL if that is required.

    Enjoy.
    Last edited by barrymavin; 2017-02-02 at 23:49.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

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