Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 11 months ago.
Improve this question
I've created a multiple user application in WinForm and it have a database on the server which is on the other computer. So far, i set up the server database (MySql) manually and create each tables in the database manually as well. I was wondering is there a way to create (maybe an exe file) to automate the entire process?
I've did some searching on the internet but most of the answer i get are the configuration of the database which i've go through it when i did the manual set up. I developed the application and the database separately so what is related to the database in my application are the connection string only. i did managed to publish the application and now i need to find a way to publish my server database.
With mysql you cannot automate the install of the mysql software, unless you have a paid for enterprise licence or you release your software as open source under GPL.
To automate mysql installation, you can use mysql installer console.
What you can definitely automate is the deployment of your mysql data structure and the configuration of the mysql instance.
The former requires an sql script that creates the database and all other database objects (tables, indedes, views, users, etc) that you can execute as part of an install process. The latter requires overwriting or adding your settings to my.cnf / my.ini configuration files.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Current connection string:
Data Source=DESKTOP-2LESKTC\\SQLEXPRESS;Initial Catalog=test_database;Integrated Security=True;Connect Timeout=5
I am building an application that is using a SQL Server database and is working fine on my PC when I run the .exe file of the WPF / C# application; but my problem is: how can I make the connection string (datasource) of SQL Server generic that my .exe file will automatically detect it whenever its installed on any new client PC?
I will add SQL Server dependencies but data source remains same in my code which is my current PC, how to change it in such a way that it can vary automatically when application is deployed?
There are many ways to accomplish that goal, however the most common is to make use of the ConfigurationManager that reads from an App.Config file that contains your connection string. You can then add App.config transformations for you different environments that contain connection strings specific to those environments.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to export some tables of netsuite to mssql. How can i get the table structure and will insert that data to mssql . I need to use this data for my analytics tool. Can anybody help me on this ?
If you have purchased the SuiteAnalytics Connect bundle from NetSuite, you can download and install their ODBC driver on your SQL server. Then you can create a linked server directly to your NetSuite instance.
The schema for the views that are exposed via the ODBC driver can be found in the NetSuite help under the topic SuiteAnalytics -> SunteAnalytics Connect -> Connect Schema.
We have a set of stored procedures that run nightly downloading our data into SQL server using this feature.
We purchased the SuiteAnalytics Connect add-on module for this purpose and got ODBC connection access to our data. It's not cheap, but it does provide pretty good access. You can do it via SuiteTalk / RESTlets, but you'll have to build your own, unless someone else on here has or knows of something pre-built/written to download data that way.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to make an engineering program using C# language, the program requires input from the user to substitute it in the equations but the equations needs lots of constants and coefficients, for example, a frictional coefficient that varies with temperature, so I have tabulated this data in an SQL database table.
So my question: is it possible to make this table included within the application so that the program can be easily published and used so that users do not need to install SQL or any database program.
If using a database is not the right call to create such application how to do this ?
You can use SQL Server Compact for file based databases up to 4GB.
I believe what you're looking for is Visual Studio's SQL Server Project:
http://msdn.microsoft.com/en-us/library/84b1se47%28v=vs.90%29.aspx
To use it for your scenario, you would script out the database WITH data:
Generate script in SQL Server Management Studio
It probably won't load in < 5 seconds, but you can also set the db project to just be there & not load every time the project is loaded, then a dev can just re-enable the db project, publish it & disable it again.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have created a .Net application which has some functionality to store and retrieve records from SQL database.
But now I have to create a setup of this application and install it on client side. But I don't know how to do that. Plus database functionality should also work on client end I mean he should be able to add and delete the records through program.
I have to create a setup for my .net application which also consist database file all connectivity. So when I install it on client machine it should not ask for database or connectivity stuff.
If you have created SQL Server Database for your WinForms application then you would probably need to deploy same SQL Server version that you used to the clients server/PC.
Otherwise you will need to restructure your code for SQL ServerCE or whichever database you would use.
SQL Server compact download: http://www.microsoft.com/cs-cz/download/details.aspx?id=17876
You will just need to pass the .sdf file to your WinForms project and use similar syntax as for SQL Server.
E.g.
SqlCeConnection conn =
new SqlCeConnection(#"Data Source=|DataDirectory|\dbJournal.sdf");
conn.Open();
Note: That you could install only SQL Server Express which is NOT full version of SQL Server and doesn't require that much disk space and processing power.
SQL Server Express download: http://www.microsoft.com/en-us/download/details.aspx?id=29062
Recommend to see (SQL CE): .NET Window Forms local database
This article will be helpful for creating set up. For Database support, add compact edition of your database into setup file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am not a very experienced programmer. And I am facing technical issues in database servers.
I have developed a small standalone C# Application which is already in use.
It uses SQLite database. The database usage is not very heavy. Only a few form needs to be read and write to the database.
Now there is a requirement that it should be used on LAN.
I know that SQLite is not a good database option for client/server.
But keeping these points in mind should I change the database or not..
The application is already using SQLite and this is not a project from start.
The database usage is not very heavy. Only a few forms will be filled and data is written on the database.
At most 1-4 Pc's will be using the application simultaneously.
I had tried to install MS SQL server on my customers PC but then I am facing so many technical issues and it is taking a lot of time.
So I am thinking to stick with SQLite only.
Any suggestions will be greatly appreciated.
So is your question "Can I share a SQLite database between multiple workstations", or "How to install SQL Server"?
I'd say go with the last. SQLite even promotes the use of a client-server DMBS if you require multiple processes accessing the same database.
Installing MS SQL server can be pain; you have to ensure .NET framework is installed, windows service pack is installed and MSI has correct version. Still I would prefer going that way, because of robustness and reliability it promotes and rather write some robust installer to "make it happen".
You can of course, keep your current solution and write web service that will lock access to database to one-client & one-query at time only and rewrite your app to use this service instead of accessing db directly.
Btw. - Microsoft SQL Server Compact Edition is working similar to SQLLite (in the terms ease of install), and it allows multiple connection to the same database (.sdf file)
http://technet.microsoft.com/en-us/library/bb380177%28SQL.90%29.aspx