{"id":3884,"date":"2013-08-28T05:46:16","date_gmt":"2013-08-27T19:46:16","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3884"},"modified":"2013-08-28T05:46:16","modified_gmt":"2013-08-27T19:46:16","slug":"advantage-stored-procedures-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/advantage-stored-procedures-primer-tutorial\/","title":{"rendered":"Advantage Stored Procedures Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Advantage\/StoredProcedure\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Advantage Stored Procedures Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Advantage\/StoredProcedure\/Advantage_StoredProcedure_Primer-31of.jpg\" title=\"Advantage Stored Procedures Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">Advantage Stored Procedures Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s tutorial uses the database application called Advantage, and adds to a previous tutorial called <a href=\"#apt\" title='Advantage Primer Tutorial'>Advantage Primer Tutorial<\/a> presented below, to oversee the results of some SQL code calls to create tables called POINT and CIRCLE used to store information defining a circle, and then it creates an Advantage Stored Procedure in the database to help add circle data with an AddCircle Stored Query operations.  The tutorial takes place on a Windows desktop.  Let&#8217;s see below what <a target=_blank title='Stored Procedures information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Stored_procedure'>Wikipedia<\/a> says about Stored Procedures generally.<\/p>\n<blockquote><p>A stored procedure is a subroutine available to applications that access a relational database system. A stored procedure (sometimes called a proc, sproc, StoPro, StoredProc, sp or SP) is actually stored in the database data dictionary.<\/p>\n<p>Typical use for stored procedures include data validation (integrated into the database) or access control mechanisms. Furthermore, stored procedures can consolidate and centralize logic that was originally implemented in applications. Extensive or complex processing that requires execution of several SQL statements is moved into stored procedures, and all applications call the procedures. One can use nested stored procedures by executing one stored procedure from within another.<\/p>\n<p>Stored procedures are similar to user-defined functions (UDFs). The major difference is that UDFs can be used like any other expression within SQL statements, whereas stored procedures must be invoked using the CALL statement.[1]<\/p><\/blockquote>\n<p>Here is some downloadable Advantage SQL code which shows the Advantage SQL commands performed and can be renamed to <a target=_blank title='AddCircle.sql' href='http:\/\/www.rjmprogramming.com.au\/Advantage\/StoredProcedure\/AddCircle.sql_GETME'>AddCircle.sql<\/a> as required.<\/p>\n<p>Please enjoy today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Advantage\/StoredProcedure\/\" title=\"Advantage Stored Procedures Primer Tutorial\">tutorial<\/a>.<\/p>\n<hr \/>\n<p id='apt'>Previous tutorial <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Advantage\/\" title='Advantage Primer Tutorial'>Advantage Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Advantage\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Advantage Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Advantage\/Advantage_Primer-9of.jpg\" title=\"Advantage Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Advantage Primer Tutorial<\/p><\/div>\n<p>Welcome to the Advantage (Database Server) Primer Tutorial &#8230; or APT for short, because it is apt, and not because I cut and paste a lot.<\/p>\n<blockquote><p>Advantage Database Server is a relational database management system (RDBMS) for small to medium sized businesses by Sybase iAnywhere. Database author Cary Jensen describes Advantage as follows: &#8220;Advantage has been around since 1993, when it was introduced to provide a stable solution for Clipper developers who were tired of slow performance and corrupt indexes inherent to file server-based databases. Over the years, ADS has grown in both popularity and features. Advantage is now a mature product with an impressive collection of features that rival many of the more expensive and complicated database servers&#8221;.[1]<\/p>\n<p>\u201cIn short, the Advantage Database Server is a high-performance, low-maintenance, remote database server that permits you to easily build and deploy client\/server applications and web-based applications\u201d.[2]<\/p><\/blockquote>\n<p>Advantage Database Server is an excellent database to use and its SQL is an excellent tool to learn and use in conjunction with the Visual Studio suite of Visual C# and VB.Net, where its integration is quite good.<\/p>\n<p>Its database structure is easy to follow with individual Windows files for each table&#8217;s contents and a separate individual file for a table&#8217;s index data.   This is a fairly big difference in architecture to MS-SQL.<\/p>\n<p>In the primer <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Advantage\/'>tutorial<\/a> you can see the Advantage Data Architect program in use after a successful install.   Want to direct you towards some useful links below.<\/p>\n<p>Link to Advantage Database Server more information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Advantage_Database_Server' title='Link to Advantage Database Server more information'>via Wikipedia, from where quote above came<\/a>.<br \/>\nLink to Advantage Database Server download page &#8230; <a target=_blank href='http:\/\/devzone.advantagedatabase.com\/dz\/content.aspx?Key=20&#038;Release=16&#038;Product=4&#038;Platform=11' title='Advantage Download page'>via Sybase<\/a>.<br \/>\nLink to Advantage Database Server installation advice page &#8230; <a target=_blank href='http:\/\/devzone.advantagedatabase.com\/dz\/webhelp\/advantage8.1\/mergedProjects\/ads-dotnet\/base_ado_net_doc\/installing_the_advantage_net_data_provider.htm' title='Advantage Install advice page'>via Sybase<\/a>.<br \/>\nLink to Advantage Database Server (developer) home at Sybase (a SAP company) &#8230; <a target=_blank href='http:\/\/devzone.advantagedatabase.com\/dz\/content.aspx?key=1' title='Advantage Developer Zone'>via Sybase (a SAP company)<\/a>.<br \/>\nLink to Advantage Database Server jobs done &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=824' title='Examples of use of Advantage Database Server'>Advantage Database Server jobs done<\/a> &#8230; some of personal experience.\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d854' onclick='var dv=document.getElementById(\"d854\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=47\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d854' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3884' onclick='var dv=document.getElementById(\"d3884\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=47\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3884' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s tutorial uses the database application called Advantage, and adds to a previous tutorial called Advantage Primer Tutorial presented below, to oversee the results of some SQL code calls to create tables called POINT and CIRCLE used to store information &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/advantage-stored-procedures-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,12,37],"tags":[66,299,997,1201,1319],"class_list":["post-3884","post","type-post","status-publish","format-standard","hentry","category-database","category-elearning","category-tutorials","tag-advantage","tag-database-2","tag-programming","tag-stored-procedure","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3884"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=3884"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3884\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=3884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=3884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=3884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}