in

InfoPath Dev

Converting an Access Databse to a SQL Database

Last post 01-03-2008 09:19 AM by Greg Collins. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-19-2007 12:37 PM

    Converting an Access Databse to a SQL Database

    NEVER MIND..FIGURED IT OUT! 

     

    I am converting an an Access database that I am using as a prototype to a SQL Database.  But I have a problem with the row size...it exceeds the maximum bytes allowed per role(8060).  My row size is (11733).  I use the table as an Main datasource wjich allows to me to read and write back to it. 

    I need to break my one large table into a few smaller ones which will also give me better performance too.  But how do I make multiple tables or a sql query that would bring all the data together as one Main Datasource?

     

  • 12-21-2007 10:32 AM In reply to

    Re: Converting an Access Databse to a SQL Database

    Cool! Glad you got it figured out. What was your solution?

    Visit my Web site:

    http://www.braintrove.com

    Greg Collins / Microsoft MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 01-03-2008 05:38 AM In reply to

    Re: Converting an Access Databse to a SQL Database

    I created two smaller tables but I have another problem now...

    I added a Where a clause and an Order By clause at the end of the SQL statement created by Infopath the query and it worked fine using one table as the Main Data Source.  But now that I am uisng 2 smaller tables, the query is using Shape Select with an Append Select and a Relate clause at the end of the SQL statement.  When I use the Where a clause and an Order By clause I get the following error...

    The following error occurred:

    The query method on the Document object failed.
    InfoPath cannot run the specified query.
    [0x80040E14][MSDataShape] Data shape command text contains a syntax error at or near position 2237 in the command. The text near the error is: " [LaborSummaryID] WHERE (((LaborSummary.[ECAM])".

    File:script.js
    Line:73

    I think the Where a clause and an Order By clause needs to be after the Relate statement but I do not know how to do that since the SQL statement is generated by Infopath. I just put it at the end when I was using one table, which did not create the Relate statement, and it worked fine.

    Can you help? 

     

     

     

    Filed under:
  • 01-03-2008 09:19 AM In reply to

    Re: Converting an Access Databse to a SQL Database

    One table is always so much easier to work with!

    Unfortuntately, I don't have a deep knowledge of SQL syntax. I'm still learning. The first question I would have is whether your SQL statement works in a Query window inside SQL Server Management Studio? If so, then it is possible that InfoPath just can't handle that complexity--or maybe it can but needs some additional help. Maybe someone else here, with more SQL knowledge than myself, can help out. If it doesn't work in Management Studio, then I would highly recommend bringing up your question to a SQL-specific newsgroup/forum to get a SQL expert to help out.

    Good luck!

    Visit my Web site:

    http://www.braintrove.com

    Greg Collins / Microsoft MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.