So I know this should be a simple question you can find everywhere, but I don't know which actions should I take? I have really almost none database work experience.
My situation:
- I have created a application using c# winforms, there's many forms.
- I have created a VeiklosDuomenys.mdf with three datatables, they are collected in a dataset VeiklosduomenysDataSet.xsd.
- Some of the forms connects to the database like this:
cn = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\Linas\source\repos\IVS\IVS\VeiklosDuomenys.mdf;Integrated Security=True");
How can I change my database, so it could be more versitile, I want so that when I send debug folder to the another computer, for example in that computer the user just go to register form (inputs data), saves to the local database (there should be no data prior, starts fresh for the user). If there's a need for more information, please tell me, i'll edit by your demands.
EDIT 1:
So I have succesfully with my poor understanding installed the sql server in another computer, now it actually works I can see all the data. When I insert data to the registration form and click register it now says that the .mdf is ReadOnly, so I go to the properties, check all permissions and now I try to run the program again, the result is I get another exception saying "Login Failed for user", now what? Why do I need this, can I just bypass it somehow, this is a school project there's no need for safety. I am using windows authetication and the problem should be that "Integrated security = true" on all my sql connections, if i would set it to false i'll need sql authetication.
I don't even know how to create that user, is it really necessary to use sql authetication? How can I bypass this error the easiest, maybe most dangeruos way?