SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    long SQL queries in SilkTest

    i need to use a very long SQL query in my script. how do i trancate it onto 2nd, 3rd and so forth line in SilkTest editor?
    Thanks.

  2. #2
    Senior Member
    Join Date
    Nov 2002
    Location
    Lausanne, Switzerland
    Posts
    558
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: long SQL queries in SilkTest

    Your question is SilkTest specific. Ask it in the SilkTest forum.

  3. #3
    Senior Member
    Join Date
    Dec 2001
    Location
    Boston,MA, USA
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: long SQL queries in SilkTest

    Hello,

    You might want to try breaking out the long string into multiple strings and then concatenate them when you call Execute_SQL. i.e.
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">STRING sSql1 = &quot;Select a,b,c &quot;
    STRING sSql2 = &quot;from tableA AS TableA &quot;
    STRING sSQL3 = &quot;where b=n&quot;
    STRING sSQL = sSql1+sSql2+sSql3


    hstmnt = DB_ExecuteSql (hdbc, sSQL)</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Hope this helps.

    -Shree
    -Shree

    *************************************************
    The more I learn, the more I realize how little I know!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.14%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:38 AM.

Copyright BetaSoft Inc.