Database change connection in sqlite

Dineshkumar.S 446 Reputation points
2022-07-25T09:30:11.067+00:00

I have made some database change in my local SQLite for a windows form app using c# but when i generate the build and run in another system the database changes made are not available they are goin off so how to check how the sync is happening in the app n??

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,682 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,228 questions
0 comments No comments
{count} votes

Accepted answer
  1. AgaveJoe 26,191 Reputation points
    2022-07-25T11:29:10.207+00:00

    You asked this question as if the community knows what you are thinking and how you application works.

    Since Sqlite is a local database, I'm guessing your deployment process does not copy the correct database or your seed logic does not work properly. But, this is only a guess.

    If you want community debugging services, then share enough code to reproduce this issue.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Olaf Helper 40,736 Reputation points
    2022-07-25T09:47:06.363+00:00

    That's to less on informations.
    How do you create/update the database? A Code First Entity Framework solution? Own code? With a tool?


  2. Karen Payne MVP 35,031 Reputation points
    2022-07-25T11:40:57.977+00:00

    Seems like you need to consider how do changes affect current data prior to database changes if any and if so you need to write code to handle current data and if it does not affect current data redistribute the new database to the client.

    When considering adapting to current data, create say a console utility that first backs up current data, modify to suit the new schema followed by validating the changes work all done on your development machine than once satisfied give the utility to clients.

    What is involved in writing a utility, you have not supplied enough information to tell you but best advice is to write out requirements than work from there.

    0 comments No comments