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.
Related
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.
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 1 year ago.
Improve this question
I have two SQL Server servers. Server A - SQL Server - 2005 and server B - SQL Server 2019 faster. Both of them are the same but with different versions.
How to monitor procedures and functions between two servers, one 2005 and the other 2019 using C#. The two are the same but with different versions.
I want to develop a desktop application that monitors the updates that are made on the 2005 server and updates 2019.
I want only a tip. No C# Code. Thanks.
Is this possible?
I need a little bit idea to start my code.
to monitor db activities you can use sql server features like sql job , db management (email feature) to get update via email about event occured to servers .
to view both server's activities from one server you create a link server from sql19 to sql05 .
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 6 years ago.
Improve this question
I am new to IBM DB2. Got a job to migrate data from DB2 to SQL Server. Able to connect DB2 database with IBM DB2 client via command prompt. We have already migrated Oracle data to SQL server with ASP.NET SQL Bulk Copy in C#. Need to migrate DB2 data on regular basis based on daily updates. Need details on how to run DB2 sql queries in any editor just like SQL plus for Oracle or Management Studio for SQL Server. Also need information on how to sync DB2 data with Bulk Copy in C#. Thank you in advance for the answers!
2 ways I currently do this are by using an ODBC connection to the db2 db and then:
1) set up a linked server so that queries can be directly run against db2. The downside is that moving large tables is pretty slow.
2) use SSIS to move the data. These can be created directly from SQL server for simple imports and for anything requiring more complicated coding such as cleaning up the data along the way (I have to remove lots of white space char fields), I use Visual Studio to create the SSIS packages.
Both methods can be set up as jobs and run automaticaly.
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 6 years ago.
Improve this question
I have a C# application with SQL Server, and I have one database and lots of tables. If I want run this application from another PC, what can I do?
For example I will set up SQL Server 2012 Express on the other PC, then should I attach my database? Or anyway? Second question when I install just SQL Server 2012 Express, how can I attach my database?
SQL Server and C# are made to talk to each other across machines (client/server). To connect from a C# program to a SQL Server database you need to know the instance name (the SQL Server install where you can have more then one instance per physical machine), the database name and depending on whether you are using built in security (where you are using your sign in account on the client which has privileges on the server) or not in which case you need to provide a user name/password that does have privileges on the server.
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