Hi,
"Rock" <(E-Mail Removed)> wrote in message
news:85765D94-0FEC-445C-850B-(E-Mail Removed)...
> Thanks for responding to my question. Yes I have a primary key assigned
> and
> the value of "result" is, 1. And as for the type of database, I am not
> entirely sure how much info I can give but I will try: it is a SQL
> Database
> located on my computer (.mdf) there is only this one table that I am
> trying
> to add to. Lastly, the VS project was just started from scratch so all
> variable settings are at there defaults as to try and eliminate any
> variables.
>
> I have been following examples to the T and have had no luck, I hope you
> can
> find or recall things to try so I can get this thing going!
If result == 1 then i think there's little chance the update failed.
Is the .mdf file part of the VS project (visible in solution explorer) ?
If so, then most likely it's copied to bin/debug each time your app starts
and that's the one used by your app. But the next time your app starts it
gets overwritten and all previous changes made are lost.
An option is to change "|DataDirectory|\yourdb.mdf" into "..\...\yourdb.mdf"
within connectionString inside app.config file. This way it will always use
the project database (instead of a new copy)
HTH,
Greetings
>
> Sorry for the redundancy.
>
> Sincere thanks,
> Rock
>
>
> PS. Is there an read-only setting that would allow this to happen? Where
> everything looks like it is updating and going well but then the database
> just doesn't take the changes.
|