{"id":930,"date":"2008-12-19T06:00:07","date_gmt":"2008-12-19T14:00:07","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/2008\/12\/19\/sql-live\/"},"modified":"2008-12-08T16:49:28","modified_gmt":"2008-12-09T00:49:28","slug":"sql-live","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2008\/12\/19\/sql-live\/","title":{"rendered":"SQL Live"},"content":{"rendered":"<p>PrimalScript 2009 sports a modified version of the Query results window you know from the 2007 version.<\/p>\n<p>Instead of just being able to run SQL queries from a SQL file you can just type queries in the provided combo-box:<\/p>\n<p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/image-thumb1.png\" border=\"0\" alt=\"image\" width=\"644\" height=\"152\" \/><\/a><\/p>\n<p>The combo-box of course is there to keep a history of your queries so you don&#8217;t have to type them over an over again while experimenting.<br \/>\nWith this improvement of the Query window you can experiment and fine tune any query you have and verify its results against a live data source. Once you got it right, you can confidently copy it to your script.<\/p>\n<p>The database people amongst you now obviously have some questions.<\/p>\n<p><strong>&#8211; How does it know what database to connect to?<\/strong><\/p>\n<p>The database toolbar now has a combo-box which allows you to select the current data source for a query.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2008\/12\/image3.png\" border=\"0\" alt=\"image\" width=\"367\" height=\"77\" \/><\/p>\n<p>This way you can also quickly alternate the data source and verify your query results against multiple connections.<\/p>\n<p><strong>&#8211; Where do I define the data sources in this connection combo-box ?<\/strong><\/p>\n<p>Very easy, in the database browser you are familiar with from PrimalScript 2007. Anything you set up there shows up in this combo-box.<\/p>\n<p><strong>&#8211; What type of databases can I connect to?<\/strong><\/p>\n<p>Virtually anything ADO can connect to. The functionality and speed may vary with the particular provider. We test with MS Access, SQL Server, MySQL and Oracle.<\/p>\n<p><strong>&#8211; Are the query results live?<\/strong><\/p>\n<p>Yes, the returned data is live and you can actually just type in the grid and modify data. The grid is in a virtual mode and fetches only displayed records, so that performance is not impacted by large result sets.<\/p>\n<p>If you have any other questions or suggestions for the next version of PrimalScript, please use our support forum at <a href=\"http:\/\/support.sapien.com\">http:\/\/support.sapien.com<\/a>. There is a special wish list section available to everybody. Registered user of course can use the normal PrimalScript Technical support forum.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PrimalScript 2009 sports a modified version of the Query results window you know from the 2007 version. Instead of just being able to run SQL queries from a SQL file you can just type queries in the provided combo-box: The combo-box of course is there to keep a history of your queries so you don&#8217;t [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,176,21],"tags":[37,38],"class_list":["post-930","post","type-post","status-publish","format-standard","hentry","category-general","category-sneak-peeks-at-the-next-version-of-primalscript","category-software-news","tag-primalscript","tag-sql"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=930"}],"version-history":[{"count":2,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/930\/revisions"}],"predecessor-version":[{"id":965,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/930\/revisions\/965"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}