<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>dynasql Discussions Rss Feed</title><link>http://dynasql.codeplex.com/Thread/List.aspx</link><description>dynasql Discussions Rss Description</description><item><title>New Post: Paging implementation using some common query and different select clause</title><link>http://dynasql.codeplex.com/discussions/443202</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
Please see below function in which i have been making a use of DynaSQL framework.&lt;br /&gt;
&lt;br /&gt;
*******************Function (VB.Net) *****************************************************************&lt;br /&gt;
Public Overloads Function GetConfiscatedMembersList() As List(Of bMemberMst)&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;     Try
         m_dbQuery = DBQuery.SelectAll() _
         .TopRange(MyBase.PagingInfo.PageSize *(MyBase.PagingInfo.CurrentPage - 1), MyBase.PagingInfo.PageSize) _
         .From(Database.Tables.EMEMBER_MST.ToString()) _
         .Where(Database.Tables.EMEMBER_MST.Columns.C_IS_CONFISCATED.ToString, Data.Compare.Equals, DBConst.String(&amp;quot;1&amp;quot;)) _
         .AndWhere(Database.Tables.EMEMBER_MST.Columns.C_STATUS.ToString, Data.Compare.Equals, DBConst.String(CByte(Gspl.Enumerations.Definations.DB_Status.Active).ToString()))

         m_ListOfT = Database.Tables.EMEMBER_MST.Rows.ToCollection(Of bMemberMst)(m_dbQuery)


         '--Set Paging Details.-------------------------------------------------------------------------------------------------------------------------------------------------------------
         If MyBase.PagingInfo.PageSize &amp;gt; 0 Then
             m_dbQuery = DBQuery.SelectCount() _
             .From(Database.Tables.EMEMBER_MST.ToString()) _
             .Where(Database.Tables.EMEMBER_MST.Columns.C_IS_CONFISCATED.ToString,Data.Compare.Equals, DBConst.String(&amp;quot;1&amp;quot;)) _
            .AndWhere(Database.Tables.EMEMBER_MST.Columns.C_STATUS.ToString,Data.Compare.Equals,DBConst.String(CByte(Gspl.Enumerations.Definations.DB_Status.Active).ToString()))
              CountTotalPages(m_dbQuery)
         End If
        '------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

         Return m_ListOfT
     Catch ex As Exception
         Throw ex
     End Try&lt;/code&gt;&lt;/pre&gt;

End Function&lt;br /&gt;
&lt;hr /&gt;
I need to use paging based on some user preferences. Here you can see that only different ce between the two queries is,&lt;br /&gt;
 &lt;br /&gt;
  DBQuery.SelectAll() _&lt;br /&gt;
  .TopRange(MyBase.PagingInfo.PageSize *(MyBase.PagingInfo.CurrentPage - 1), MyBase.PagingInfo.PageSize)&lt;br /&gt;
&lt;br /&gt;
  And&lt;br /&gt;
&lt;br /&gt;
  DBQuery.SelectCount()&lt;br /&gt;
 &lt;br /&gt;
So, as of now you can see the query is same starting from &amp;quot;From&amp;quot; clause. Only the above part differs. So, is there any way to achieve the thing in some  graceful way, instead of duplicating the query 2 times?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance..!!&lt;br /&gt;
&lt;/div&gt;</description><author>gandhiashishp</author><pubDate>Fri, 10 May 2013 04:56:45 GMT</pubDate><guid isPermaLink="false">New Post: Paging implementation using some common query and different select clause 20130510045645A</guid></item><item><title>New Post: Is this project is yet alive?</title><link>http://dynasql.codeplex.com/discussions/438646</link><description>&lt;div style="line-height: normal;"&gt;I see where you are going with this&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;DBQuery.Select(Northwind.Orders.OrderID, Northwind.Orders.OrderDate)
                 .From(Northwind.Orders)
                 .Where(Northwind.Orders.OrderStatus, Compare.Equals, OrderStatus.Complete)&lt;/code&gt;&lt;/pre&gt;

And you do not have to manually crank the Northwind database schema references.&lt;br /&gt;
&lt;br /&gt;
If you were to create a dependancy to this library and your tables and columns (etc) inherited from DBClause then this would work nicely.&lt;br /&gt;
Or would happily start including the code base in the library itself.&lt;br /&gt;
&lt;br /&gt;
Thank you&lt;br /&gt;
&lt;/div&gt;</description><author>perceiveit</author><pubDate>Fri, 19 Apr 2013 10:42:59 GMT</pubDate><guid isPermaLink="false">New Post: Is this project is yet alive? 20130419104259A</guid></item><item><title>New Post: Is this project is yet alive?</title><link>http://dynasql.codeplex.com/discussions/438646</link><description>&lt;div style="line-height: normal;"&gt;Hey thanks for your reply. Actually, i have created the same tool. Though using my tool, i allow to create a Stub (classes for any given databases), which allows user to refer any table or columns just using an OOPS approach. &lt;br /&gt;
&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;br /&gt;
Database.Tables.Table_NAme.Columns.Column_Name&lt;br /&gt;
&lt;br /&gt;
This allows user an ease to deal with database. Additionally, if i incorporate that feature with yours then it would be an awesome gift to the tech guys. So, i am planning to move for it. &lt;br /&gt;
&lt;br /&gt;
Though, thanks for your reply. If you are happy to get my changes, then i would send you it once i am done with that.&lt;br /&gt;
&lt;br /&gt;
Thank you very much.&lt;br /&gt;
&lt;/div&gt;</description><author>gandhiashishp</author><pubDate>Mon, 08 Apr 2013 05:09:08 GMT</pubDate><guid isPermaLink="false">New Post: Is this project is yet alive? 20130408050908A</guid></item><item><title>New Post: "Duplicate Table"</title><link>http://dynasql.codeplex.com/discussions/438903</link><description>&lt;div style="line-height: normal;"&gt;Sounds like there are 2 things here - the dynamic analysis of the table schema, and then the select into.&lt;br /&gt;
I did a quick test method &lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;using the SchemaProvider to get a table based on the name&lt;/li&gt;
&lt;li&gt;Build a DROP clone table if exists statement&lt;/li&gt;
&lt;li&gt;Build a CREATE clone table statement using the schema information&lt;/li&gt;
&lt;li&gt;Build an INSERT INTO and a SELECT FROM using the schema information&lt;/li&gt;
&lt;li&gt;Execute the DROP then CREATE&lt;/li&gt;
&lt;li&gt;
Execute the INSERT&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
Work surprisingly well. Code is below.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;            string tbl2Clone = &amp;quot;DQSL_COURSES&amp;quot;;
            string cloneTbl = tbl2Clone + &amp;quot;_Clone&amp;quot;;

            //your database instance
            DBDatabase db = this.Database;

            //use the schema provider to extract the name and column info
            Schema.DBSchemaProvider schema = db.GetSchemaProvider();
            Schema.DBSchemaTable tbl = schema.GetTable(tbl2Clone);
            

            DBCreateTableQuery createClone = DBCreateTableQuery.Create.Table(tbl.Schema, cloneTbl);
            DBDropTableQuery dropClone = DBDropTableQuery.Drop.Table(tbl.Schema, cloneTbl).IfExists();

            DBInsertQuery ins = DBQuery.InsertInto(cloneTbl);
            DBSelectQuery sel = DBSelectQuery.Select();

            foreach (Schema.DBSchemaTableColumn col in tbl.Columns)
            {
                //append the columns to the create statement
                if(col.Size &amp;gt; 0)
                    createClone.Add(col.Name, col.DbType, col.Size, col.ColumnFlags);
                else
                    createClone.Add(col.Name, col.DbType, col.ColumnFlags);

                //if we are not an auto assign then add the column to the select and the insert
                if (col.AutoAssign == false)
                {
                    sel.Field(col.Name);
                    ins.Field(col.Name);
                }
            }
            sel = sel.From(tbl.Schema, tbl.Name);
            //add any filtering to the select statement to limit the inserted rows

            //Append the select as part of the insert
            ins.Select(sel);

            //statement construction complete

            //drop any existing cloned table
            db.ExecuteNonQuery(DBQuery.Drop.Table(cloneTbl).IfExists());
                 // IF EXISTS (SELECT *
                //          FROM [INFORMATION_SCHEMA].[TABLES]
                //          WHERE  ([TABLE_NAME] = 'DQSL_COURSES_Clone') ) 
            //              DROP TABLE [DQSL_COURSES_Clone]

            db.ExecuteNonQuery(createClone);
                    //  CREATE TABLE [dbo].[DQSL_COURSES_Clone] (
            //              [CourseID] CHAR(4) PRIMARY KEY NOT NULL, 
            //              [Title] NVARCHAR(100) NOT NULL, 
            //              [Credits] FLOAT(4) NOT NULL, 
            //              [DepartmentID] INT NOT NULL, 
            //              [Description] NVARCHAR(1000) NULL)

            //execute the insert into select from
            db.ExecuteNonQuery(ins);
                 //  INSERT INTO [DQSL_COURSES_Clone]
            //          ([CourseID], [Title], [Credits], [DepartmentID], [Description])
            //              (SELECT [CourseID], [Title], [Credits], [DepartmentID], [Description]
        //               FROM [dbo].[DQSL_COURSES]) &lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>perceiveit</author><pubDate>Thu, 04 Apr 2013 11:58:47 GMT</pubDate><guid isPermaLink="false">New Post: "Duplicate Table" 20130404115847A</guid></item><item><title>New Post: "Duplicate Table"</title><link>http://dynasql.codeplex.com/discussions/438903</link><description>&lt;div style="line-height: normal;"&gt;This is similar to another post, but not identical.&lt;br /&gt;
&lt;br /&gt;
I have a view, which I want to 'clone' into a Staging table (drop and recreate is fine).  What is the most efficient way of doing this with this library.&lt;br /&gt;
&lt;br /&gt;
I can do the following:&lt;br /&gt;
Retrieve the data from the view into a DataTable.&lt;br /&gt;
create a DBCreateTableQuery&lt;br /&gt;
loop through the columns calling the DBCreateTableQuery.Add method.&lt;br /&gt;
execute the DBCreateTableQuery.&lt;br /&gt;
&lt;br /&gt;
Is this the best approach - was wondering whether there was a way without the data ending up within .net (i.e. all work is done on the SQL Server)?&lt;br /&gt;
&lt;br /&gt;
G&lt;br /&gt;
&lt;/div&gt;</description><author>glaidler</author><pubDate>Wed, 03 Apr 2013 09:42:40 GMT</pubDate><guid isPermaLink="false">New Post: "Duplicate Table" 20130403094240A</guid></item><item><title>New Post: Is this project is yet alive?</title><link>http://dynasql.codeplex.com/discussions/438646</link><description>&lt;div style="line-height: normal;"&gt;Still alive, but help yourself to what you need. &lt;br /&gt;
That is what open source is about.&lt;br /&gt;
&lt;/div&gt;</description><author>perceiveit</author><pubDate>Tue, 02 Apr 2013 08:00:59 GMT</pubDate><guid isPermaLink="false">New Post: Is this project is yet alive? 20130402080059A</guid></item><item><title>New Post: Is this project is yet alive?</title><link>http://dynasql.codeplex.com/discussions/438646</link><description>&lt;div style="line-height: normal;"&gt;Hey guys..!!&lt;br /&gt;
&lt;br /&gt;
Actually i had been thinking to implement such concept since a long time. I also have implemented the same thing, for MySQL and MsSQL support.&lt;br /&gt;
&lt;br /&gt;
Though, in order to support all the databases, i have been thinking to borrow code from here, as it will save my time. So, may i know, is this project is yet alive? Because i have seen that there is not any updates to this project since Dec 2012.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
&lt;/div&gt;</description><author>gandhiashishp</author><pubDate>Mon, 01 Apr 2013 09:30:41 GMT</pubDate><guid isPermaLink="false">New Post: Is this project is yet alive? 20130401093041A</guid></item><item><title>New Post: Retrieving Inserted ID</title><link>http://dynasql.codeplex.com/discussions/360165</link><description>&lt;div style="line-height: normal;"&gt;How do I accomplish this when dynamically generating the insert query? Here's my code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; public int CreateRecord(string tableName, Dictionary&amp;lt;string, string&amp;gt; values)
    {
        int result = 0;

        try
        {
            DBDatabase db = OpenDynamicDB();
            DBInsertQuery qry = DBQuery.InsertInto(tableName);

            foreach (KeyValuePair&amp;lt;string, string&amp;gt; kvp in values)
            {
                DBParam paramV = DBParam.ParamWithValue(kvp.Key, kvp.Value);
                qry.Field(kvp.Key);
                qry.Value(paramV);
            }

            result = db.ExecuteNonQuery(qry);
        }
        catch (Exception ex)
        {
            ExceptionManager.Publish(ex);
        }

        return result;
    }
&lt;/code&gt;&lt;/pre&gt;

Thanks,&lt;br /&gt;
Ronnie&lt;br /&gt;
&lt;/div&gt;</description><author>rlebi</author><pubDate>Sun, 10 Mar 2013 22:17:17 GMT</pubDate><guid isPermaLink="false">New Post: Retrieving Inserted ID 20130310101717P</guid></item><item><title>New Post: Retrieving Inserted ID</title><link>http://dynasql.codeplex.com/discussions/360165</link><description>&lt;div style="line-height: normal;"&gt;How do I accomplish this when dynamically generating the insert query? Here's my code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; _public int CreateRecord(string tableName, Dictionary&amp;lt;string, string&amp;gt; values)
    {
        int result = 0;

        try
        {
            DBDatabase db = OpenDynamicDB();
            DBInsertQuery qry = DBQuery.InsertInto(tableName);

            foreach (KeyValuePair&amp;lt;string, string&amp;gt; kvp in values)
            {
                DBParam paramV = DBParam.ParamWithValue(kvp.Key, kvp.Value);
                qry.Field(kvp.Key);
                qry.Value(paramV);
            }

            result = db.ExecuteNonQuery(qry);
        }
        catch (Exception ex)
        {
            ExceptionManager.Publish(ex);
        }

        return result;
    }_
&lt;/code&gt;&lt;/pre&gt;

Thanks,&lt;br /&gt;
Ronnie&lt;br /&gt;
&lt;/div&gt;</description><author>rlebi</author><pubDate>Sun, 10 Mar 2013 22:17:04 GMT</pubDate><guid isPermaLink="false">New Post: Retrieving Inserted ID 20130310101704P</guid></item><item><title>New Post: Encounter a problem of subquery alias in Oracle</title><link>http://dynasql.codeplex.com/discussions/433927</link><description>&lt;div style="line-height: normal;"&gt;This discussion has been copied to a work item. Click &lt;a href="http://dynasql.codeplex.com/workitem/33809" rel="nofollow"&gt;here&lt;/a&gt; to go to the work item and continue the discussion.&lt;br /&gt;
&lt;/div&gt;</description><author>perceiveit</author><pubDate>Fri, 22 Feb 2013 10:48:05 GMT</pubDate><guid isPermaLink="false">New Post: Encounter a problem of subquery alias in Oracle 20130222104805A</guid></item><item><title>New Post: Encounter a problem of subquery alias in Oracle</title><link>http://dynasql.codeplex.com/discussions/433927</link><description>&lt;div style="line-height: normal;"&gt;When I construct a query which involves subquery alias, I find that an AS keyword is appended between the subquery and the alias name.&lt;br /&gt;
However it is correct when the AS function is used on normal table join&lt;br /&gt;
For instance, I draft a sample query to illustrate the problem I found.&lt;br /&gt;
Do I use the API correctly? Or is there any workaround for this problem?&lt;br /&gt;
Thank you for your advice.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;DBSelectQuery subQuery = DBQuery
.Select(DBField.Field(&amp;quot;OBJECTID&amp;quot;))
.Max(&amp;quot;SDE_STATE_ID&amp;quot;).As(&amp;quot;SDE_STATE_ID&amp;quot;)
.From(FeatureTableSchemaName, &amp;quot;A&amp;quot; + regId)
.GroupBy(&amp;quot;OBJECTID&amp;quot;);

DBSelectQuery query = DBQuery
.Select(DBField.Field(&amp;quot;atable&amp;quot;, &amp;quot;OBJECTID&amp;quot;))
.Select(DBField.Field(&amp;quot;atable&amp;quot;, &amp;quot;LST_UPD_USR_NAME&amp;quot;))
.From(&amp;quot;SDE&amp;quot;, LineageTableName).As(&amp;quot;sls&amp;quot;)
.InnerJoin(FeatureTableSchemaName, &amp;quot;A&amp;quot; + regId).As(&amp;quot;atable&amp;quot;).On(&amp;quot;LINEAGE_ID&amp;quot;, Compare.Equals, &amp;quot;SDE_STATE_ID&amp;quot;)
.InnerJoin(subQuery).As(&amp;quot;filterTable&amp;quot;).On(DBField.Field(&amp;quot;atable&amp;quot;, &amp;quot;OBJECTID&amp;quot;), Compare.Equals, DBField.Field(&amp;quot;filterTable&amp;quot;, &amp;quot;OBJECTID&amp;quot;))
.Where(DBComparison.Between(DBField.Field(&amp;quot;sls&amp;quot;, &amp;quot;LINEAGE_ID&amp;quot;), DBParam.ParamWithValue(startState + 1), DBParam.ParamWithValue(endState)))
.AndWhere(DBField.Field(&amp;quot;sls&amp;quot;, &amp;quot;LINEAGE_NAME&amp;quot;), Compare.Equals, DBParam.ParamWithValue(lineageName))
.AndWhere(DBField.Field(&amp;quot;atable&amp;quot;, &amp;quot;SDE_STATE_ID&amp;quot;), Compare.Equals, DBField.Field(&amp;quot;filterTable&amp;quot;, &amp;quot;SDE_STATE_ID&amp;quot;))
.AndWhere(DBField.Field(&amp;quot;atable&amp;quot;, &amp;quot;OBJECTID&amp;quot;), Compare.Equals, DBField.Field(&amp;quot;filterTable&amp;quot;, &amp;quot;OBJECTID&amp;quot;))
.OrderBy(&amp;quot;OBJECTID&amp;quot;);&lt;/code&gt;&lt;/pre&gt;

which turns out to be :&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;SELECT &amp;quot;atable&amp;quot;.&amp;quot;OBJECTID&amp;quot;, &amp;quot;atable&amp;quot;.&amp;quot;LST_UPD_USR_NAME&amp;quot;
    FROM &amp;quot;SDE&amp;quot;.&amp;quot;STATE_LINEAGES&amp;quot; &amp;quot;sls&amp;quot; INNER JOIN &amp;quot;RDMSADMIN&amp;quot;.&amp;quot;A109&amp;quot; &amp;quot;atable&amp;quot;
             ON  (&amp;quot;LINEAGE_ID&amp;quot; = &amp;quot;SDE_STATE_ID&amp;quot;)  INNER JOIN 
             (SELECT &amp;quot;OBJECTID&amp;quot;, MAX(&amp;quot;SDE_STATE_ID&amp;quot;)  AS &amp;quot;SDE_STATE_ID&amp;quot;
                FROM &amp;quot;RDMSADMIN&amp;quot;.&amp;quot;A109&amp;quot;
                GROUP BY &amp;quot;OBJECTID&amp;quot;) 
                 AS &amp;quot;filterTable&amp;quot;
             ON  (&amp;quot;atable&amp;quot;.&amp;quot;OBJECTID&amp;quot; = &amp;quot;filterTable&amp;quot;.&amp;quot;OBJECTID&amp;quot;) 
    WHERE  ( ( ( (&amp;quot;sls&amp;quot;.&amp;quot;LINEAGE_ID&amp;quot; BETWEEN :orc_param1 AND :orc_param2)  AND  (&amp;quot;sls&amp;quot;.&amp;quot;LINEAGE_NAME&amp;quot; = :orc_param3) )  AND  (&amp;quot;atable&amp;quot;.&amp;quot;SDE_STATE_ID&amp;quot; = &amp;quot;filterTable&amp;quot;.&amp;quot;SDE_STATE_ID&amp;quot;) )  AND  (&amp;quot;atable&amp;quot;.&amp;quot;OBJECTID&amp;quot; = &amp;quot;filterTable&amp;quot;.&amp;quot;OBJECTID&amp;quot;) ) 
    ORDER BY &amp;quot;OBJECTID&amp;quot;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>mawkish</author><pubDate>Thu, 21 Feb 2013 09:05:06 GMT</pubDate><guid isPermaLink="false">New Post: Encounter a problem of subquery alias in Oracle 20130221090506A</guid></item><item><title>New Post: Default values in select query</title><link>http://dynasql.codeplex.com/discussions/428745</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have following table&lt;/p&gt;
&lt;p&gt;TABLE1&lt;/p&gt;
&lt;p&gt;COL1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COL2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COL3&lt;/p&gt;
&lt;p&gt;11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13&lt;/p&gt;
&lt;p&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to execute query like this &amp;quot;SELECT getdate(),0,COL1,COL2,COL3 from TABLE1&amp;quot; and get date like this&lt;/p&gt;
&lt;p&gt;07-01-2012&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13&lt;/p&gt;
&lt;p&gt;07-01-2012&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;
&lt;/div&gt;</description><author>mayurdongre</author><pubDate>Mon, 07 Jan 2013 11:59:47 GMT</pubDate><guid isPermaLink="false">New Post: Default values in select query 20130107115947A</guid></item><item><title>New Post: SQL CE Support?</title><link>http://dynasql.codeplex.com/discussions/427993</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I don't see SQL CE mentioned anywhere. Does this generator support SQL CE 4? If not, are there extensibility points I can utilize to add that support?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;/div&gt;</description><author>akilhoffer</author><pubDate>Sat, 29 Dec 2012 15:59:29 GMT</pubDate><guid isPermaLink="false">New Post: SQL CE Support? 20121229035929P</guid></item><item><title>New Post: How to add new column on already exist table in database</title><link>http://dynasql.codeplex.com/discussions/406394</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;means I have already table tab1 with column col1,col2,col3 like this&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline"&gt;tab1:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;col1&lt;/p&gt;
&lt;p&gt;col2&lt;/p&gt;
&lt;p&gt;col3&lt;/p&gt;
&lt;p&gt;I cann't add one more column col4 in table tab1&lt;/p&gt;
&lt;/div&gt;</description><author>mayurdongre</author><pubDate>Thu, 27 Dec 2012 15:16:02 GMT</pubDate><guid isPermaLink="false">New Post: How to add new column on already exist table in database 20121227031602P</guid></item><item><title>New Post: How to get DataTable</title><link>http://dynasql.codeplex.com/discussions/406856</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Thanks it's usefull for me and also work if there is no data present in table&lt;/p&gt;
&lt;/div&gt;</description><author>mayurdongre</author><pubDate>Tue, 25 Dec 2012 08:03:48 GMT</pubDate><guid isPermaLink="false">New Post: How to get DataTable 20121225080348A</guid></item><item><title>New Post: Import excel data into database</title><link>http://dynasql.codeplex.com/discussions/407261</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;That's really a different capability to what we are trying to do here.&lt;/p&gt;
&lt;p&gt;You can connect to excel files with ACE.OLEDB connection string&lt;/p&gt;
&lt;p&gt;http://www.connectionstrings.com/excel-2007&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are using SQL Server do it from the Management Studio import export wizard...&lt;/p&gt;
&lt;p&gt;http://msdn.microsoft.com/en-us/library/ms140052.aspx&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>perceiveit</author><pubDate>Thu, 20 Dec 2012 06:10:57 GMT</pubDate><guid isPermaLink="false">New Post: Import excel data into database 20121220061057A</guid></item><item><title>New Post: How to get DataTable</title><link>http://dynasql.codeplex.com/discussions/406856</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Have you tried the methods on the data table itself.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;
DBQuery sel = DBQuery.SelectAll().From(&lt;span style="color:#a31515"&gt;&amp;quot;Table&amp;quot;&lt;/span&gt;);

db.ExecuteRead(sql, reader =&amp;gt;
{
     DataTable dt = &lt;span style="color:blue"&gt;new&lt;/span&gt; DataTable();
     dt.Load(reader);
});

&lt;span style="color:green"&gt;//do something with your table&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>perceiveit</author><pubDate>Thu, 20 Dec 2012 06:01:25 GMT</pubDate><guid isPermaLink="false">New Post: How to get DataTable 20121220060125A</guid></item><item><title>New Post: Import excel data into database</title><link>http://dynasql.codeplex.com/discussions/407261</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello Perceiveit,&lt;/p&gt;
&lt;p&gt;is there any function to import excel file into database&lt;/p&gt;
&lt;p&gt;I have excel file with 50000-100000 rows and 50-100 columns&lt;/p&gt;
&lt;p&gt;is there any fasted way to insert excel record into database.&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;
&lt;/div&gt;</description><author>mayurdongre</author><pubDate>Wed, 19 Dec 2012 07:05:09 GMT</pubDate><guid isPermaLink="false">New Post: Import excel data into database 20121219070509A</guid></item><item><title>New Post: How to get DataTable</title><link>http://dynasql.codeplex.com/discussions/406856</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I tried using this code&lt;/p&gt;
&lt;p&gt;DataSet dsTable = new DataSet();&lt;/p&gt;
&lt;p&gt;dsTable.Tables.Add(new DataTable(&amp;quot;Table&amp;quot;));&lt;/p&gt;
&lt;p&gt;&lt;br&gt;
DBQuery query = DBQuery.SelectAll().From(tableName);&lt;br&gt;
&lt;br&gt;
Constants.DATABASE.PopulateDataSet(dsTable, query);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;it works fine but give error when there is no data present in database table - &amp;quot;tableName&amp;quot;&lt;/p&gt;
&lt;/div&gt;</description><author>mayurdongre</author><pubDate>Tue, 18 Dec 2012 05:15:03 GMT</pubDate><guid isPermaLink="false">New Post: How to get DataTable 20121218051503A</guid></item><item><title>New Post: How to get DataTable</title><link>http://dynasql.codeplex.com/discussions/406856</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Try the DBDatabase.PopulateDataSet(...) method.&lt;/p&gt;
&lt;p&gt;Pass in the DataSet, the DBQuery and the name(s) of the table(s) you want to fill.&lt;/p&gt;
&lt;p&gt;There are 16 overloads so should be something for you.&lt;/p&gt;
&lt;/div&gt;</description><author>perceiveit</author><pubDate>Mon, 17 Dec 2012 20:40:50 GMT</pubDate><guid isPermaLink="false">New Post: How to get DataTable 20121217084050P</guid></item></channel></rss>