<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server (και άλλες databases)</title><link>https://www.dotnetzone.gr:443/cs/forums/28/ShowForum.aspx</link><description>Θέματα που αφορούν τον SQL Server (7.0, 2000, 2005) αλλά και Oracle, Access, DB2, MySQL, κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Procedure για δημιουργία κλάσης σε C# από SQL SEVER</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9340.aspx</link><pubDate>Tue, 07 Feb 2006 20:11:47 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9340</guid><dc:creator>imanos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9340.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=9340</wfw:commentRss><description>Το παραπάνω το ανέφερα ως ένα άρθρο και όχι τίποτα παραπάνω.&lt;br&gt;Ισως κακώς και να το έβαλα.</description></item><item><title>Απ: Procedure για δημιουργία κλάσης σε C# από SQL SEVER</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9334.aspx</link><pubDate>Tue, 07 Feb 2006 09:58:37 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9334</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9334.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=9334</wfw:commentRss><description>Δεν καταλαβαίνω που θα μπορούσε να χρησιμέψει η δημιουργία κώδικα από ένα stored procedure. Πέρα από το ότι η T-SQL είναι ακατάλληλη για επεξεργασία strings, νομίζω ότι ένα τέτοιο stored procedure θα έδενε τις εφαρμογές με τη βάση με περίεργο τρόπο, καθώς θα απαιτούσε αλλαγές στη βάση κάθε φορά που θα θέλαμε να αλλάξουμε τις κλάσεις που χρησιμοποιεί η εφαρμογή. Καλύτερα θα ήταν η εφαρμογή να διαβάζει τα metadata και να δημιουργεί τις κλάσεις που θέλει, όπως θέλει.</description></item><item><title>Procedure για δημιουργία κλάσης σε C# από SQL SEVER</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9013.aspx</link><pubDate>Mon, 30 Jan 2006 09:44:48 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9013</guid><dc:creator>imanos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9013.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=28&amp;PostID=9013</wfw:commentRss><description>&lt;P&gt;&amp;nbsp; Παραθέτω παρακάτω πως μπορουμε να παράγουμε παράγουμε μία βασική κλαση σέ C# από τον SQL SERVER&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;IF&lt;/span&gt; &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;EXISTS&lt;/span&gt; (&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;select&lt;/span&gt; * &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;FROM&lt;/span&gt; dbo.&lt;span style="color: LawnGreen;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;sysobjects&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHERE&lt;/span&gt; id = &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;object_id&lt;/span&gt;(N&lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'GenerateCsharpClass_sp'&lt;/span&gt;) &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;AND&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;OBJECTPROPERTY&lt;/span&gt;(id, N&lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'IsProcedure'&lt;/span&gt;) = 1)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DROP&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PROCEDURE&lt;/span&gt; GenerateCsharpClass_sp&lt;br /&gt;GO&lt;br /&gt;&lt;span style="color: Teal;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;/*&lt;br /&gt;&lt;br /&gt;Βασική Οντοτητα δημιουργίας Κλάσης&lt;br /&gt;Η stored procedure δέχεται ως παράμετρο το όνομα ένος αντικειμένου της βάσης δεδομένων (table, view) ΚΑΙ&lt;br /&gt;παράγει (C# code) βασισμένο στα πεδία της οντότητας&lt;br /&gt;Χρήση Παραδείγματος:&lt;br /&gt;USE Northwind&lt;br /&gt;EXEC GenerateCsharpClass_sp 'Orders'&lt;br /&gt;&lt;br /&gt;*/&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CREATE&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PROCEDURE&lt;/span&gt; GenerateCsharpClass_sp &lt;br /&gt; (&lt;br /&gt;  @askedObjectName &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(100)&lt;br /&gt; )&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;AS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DECLARE&lt;/span&gt; @objName &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(20),@objtype &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(20)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DECLARE&lt;/span&gt; clsCursor &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CURSOR&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;FOR&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SELECT&lt;/span&gt; sc.name, st.name type &lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;FROM&lt;/span&gt;   &lt;span style="color: LawnGreen;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;syscolumns&lt;/span&gt; sc &lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;INNER&lt;/span&gt; &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;JOIN&lt;/span&gt;  &lt;span style="color: LawnGreen;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;systypes&lt;/span&gt; st&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;ON&lt;/span&gt; st.xusertype = sc.xusertype&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHERE&lt;/span&gt;  Id=&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;OBJECT_ID&lt;/span&gt;(@askedObjectName)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DECLARE&lt;/span&gt; @declareCodes &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(8000),&lt;br /&gt; @csCodes &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(8000),&lt;br /&gt; @propCodes &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(8000)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @declareCodes = &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;''&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @csCodes = &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;''&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @propCodes = &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;''&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;OPEN&lt;/span&gt; clsCursor&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;FETCH&lt;/span&gt; NEXT &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;FROM&lt;/span&gt; clsCursor &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;INTO&lt;/span&gt; @objName, @objtype&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DECLARE&lt;/span&gt; @cType &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(20)&lt;span style="color: Teal;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;-- C# type&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DECLARE&lt;/span&gt; @csParms &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;varchar&lt;/span&gt;(4000)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @csParms = &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;''&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;IF&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;@@FETCH_STATUS&lt;/span&gt; &amp;lt;&amp;gt; 0&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CLOSE&lt;/span&gt; clsCursor&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DEALLOCATE&lt;/span&gt; clsCursor&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'Λάθος... Ελέγξτε την παράμετρο κλήσης'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;RETURN&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;END&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHILE&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;@@FETCH_STATUS&lt;/span&gt; = 0&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @cType = &lt;br /&gt;    &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CASE&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHEN&lt;/span&gt; @objtype &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LIKE&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'%char%'&lt;/span&gt; &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;OR&lt;/span&gt; @objtype &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LIKE&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'%text%'&lt;/span&gt; &lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;THEN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'string'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHEN&lt;/span&gt; @objtype &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;IN&lt;/span&gt; (&lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'decimal'&lt;/span&gt;, &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'numeric'&lt;/span&gt;)&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;THEN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'double'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHEN&lt;/span&gt; @objtype = &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'real'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;THEN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'float'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHEN&lt;/span&gt; @objtype &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LIKE&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'%money%'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;THEN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'decimal'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHEN&lt;/span&gt; @objtype = &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'bit'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;THEN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'bool'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHEN&lt;/span&gt; @objtype = &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'bigint'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;THEN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'long'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;WHEN&lt;/span&gt; @objtype &lt;span style="color: Silver;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LIKE&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'%int%'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;THEN&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'int'&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;ELSE&lt;/span&gt;&lt;br /&gt;    @objtype&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;END&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @declareCodes = @declareCodes + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'private '&lt;/span&gt; + @ctype + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' '&lt;/span&gt; + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'m_'&lt;/span&gt; + @objName + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;';'&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(13)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @csCodes = @csCodes + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'m_'&lt;/span&gt; + @objName + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' = '&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LOWER&lt;/span&gt;(&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LEFT&lt;/span&gt;(@objName, 1)) + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SUBSTRING&lt;/span&gt;(@objName, 2, &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LEN&lt;/span&gt;(@objName)) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;';'&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(13)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @csParms = @csParms + @ctype + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' '&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LOWER&lt;/span&gt;(&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LEFT&lt;/span&gt;(@objName, 1)) + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SUBSTRING&lt;/span&gt;(@objName, 2, &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LEN&lt;/span&gt;(@objName)) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;', '&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;SET&lt;/span&gt; @propCodes = @propCodes + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'public '&lt;/span&gt; + @ctype + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' '&lt;/span&gt; + @objName + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(13) +&lt;br /&gt;&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'{'&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(13) +&lt;br /&gt;&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'get { RETURN m_'&lt;/span&gt; + @objName + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'; }'&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(13) +&lt;br /&gt;&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'set { m_'&lt;/span&gt; + @objName + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' = value; }'&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(13) +&lt;br /&gt;&lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'}'&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(13)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;FETCH&lt;/span&gt; NEXT &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;FROM&lt;/span&gt; clsCursor&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;INTO&lt;/span&gt; @objName, @objtype&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;END&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'[Serializable]'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'public class '&lt;/span&gt; + @askedObjectName + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'Info'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'{'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; @declareCodes&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;''&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'public '&lt;/span&gt; + @askedObjectName + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'Info('&lt;/span&gt; + &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LEFT&lt;/span&gt;(@csParms, &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;LEN&lt;/span&gt;(@csParms) - 1) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;')'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'{'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; @csCodes&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Fuchsia;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CHAR&lt;/span&gt;(9) + &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'}'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;''&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; @propCodes&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;PRINT&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'}'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;CLOSE&lt;/span&gt; clsCursor&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;DEALLOCATE&lt;/span&gt; clsCursor&lt;/span&gt;&lt;/P&gt;</description></item></channel></rss>