Skip to Content

information about setdatasource to a dataset

setdatasource to a dataset does it require the existence of the physical tables (in the database) that served to design the crystal report? Im am using cr 2014 with visual studio 2017 and sql server? Can one safely delete the tables from Sql server and the report remains working? Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 23, 2020 at 09:01 PM

    Hello,

    Yes, CR keeps a copy of the table structure in the RPT file.

    If you change the DB structure you need to open each report in CR Designer and manually Verify Database to clean them up is the safest way.

    So as long as the field maps the same in your new DataSet it should work.

    Depending on the field types depends on if it works or not...

    CR SDK has an auto-field-mapping function, if it can't match the field types or names it just deletes them from the report which usually breaks the report.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2020 at 11:26 AM

    Thanks a lot Don Williams. That what I was looking for.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.