I am making a erp using WPF-C# and i have a confustion on how can i connect my app to sql server after compiling. I am asking this because my app connects to DB when i compile it with Visual Studio and SQL server is already installed on my pc, So my erp app works fine on my pc but the issue is that when i run the app on another computer, App runs but DB connection failed. I installed SQL server to another computer but not working.
So i make a form which ask DB connection parameters at the start of the app and user type DB parameters and my app check that DB exist or not. The issue that where i save DB info if it exist, i cant save it in db because app need parameters to connect to DB. So tell me how i save these DB parameter locally that my app checks that the info exist or not , if exist app connects to db and if not a form will appear to user to give DB info.
burhanahmed92
0
Light Poster
Recommended Answers
Jump to PostUse a file. Xml file would work well. Search how to read/write to an XML file. Or you can just save the connection information to a text file.
Jump to PostEncrypt the data before saving it.
All 6 Replies
cgeier
187
Junior Poster
burhanahmed92
0
Light Poster
cgeier
187
Junior Poster
burhanahmed92
0
Light Poster
cgeier
187
Junior Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.