ISNULL statements replaced when DataTable is reconfigured

Last post 03-24-2007 3:11 PM by ask_Scotty. 1 replies.

Sort Posts:

  • ISNULL statements replaced when DataTable is reconfigured

    03-23-2007, 9:55 AM
    • Loading...
    • tim_ster
    • Joined on 03-23-2007, 1:45 PM
    • Posts 1

    Hi, I've got the following problem:

    I have in my XSD document a TableAdapter with several queries in it. One of them is a query in which I replace null-values by another value (like: ISNULL(field_name,'value') AS field_name).

    All is well to this point, but when I reconfigure the 'standard' GetData() query of that TableAdapter (for example because I have added a new field in the TableAdapter), the ISNULL's are gone! This is really a problem, because in that case several queries should be checked to see if they are all still correct.

    Does anyone else have this problem? Or better: a solution?

    Thanks.

  • Re: ISNULL statements replaced when DataTable is reconfigured

    03-24-2007, 3:11 PM
    Answer
    • Loading...
    • ask_Scotty
    • Joined on 01-06-2007, 5:52 AM
    • Warwick
    • Posts 707

    Hello my friend,

    A solution would be to have your query in a View and then base your TableAdapter on the View. 

     

    Kind regards

    Scotty

     

     

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter