I am working on an ERP Project, using sql server for database.
Now when I deploy the project, I have to install sql server which uses a lot of storage and time is also wasted. As the client is never going to fire any query. Thus, having no need of the development environment. So, is there any option to overcome this.
Local DB is one of the option but having difficulties in configuring it. If anybody ever used it and Please help me out. Or if there's any other option please help me with that
NOTE: I am using asp.net as front end technology
I'm not sure if this is what you're trying to do, but if you want your app to connect to an SQL Server database, you will need at least the OLE DB Driver to be installed on your server.
It will allow your app to connect to an SQL Server instance, which can be running on any other machine.
In complement you could have a look at this : https://www.connectionstrings.com/
and this https://learn.microsoft.com/fr-fr/sql/connect/oledb/oledb-driver-for-sql-server?view=sql-server-ver15
Related
I have been tasked with building an application for a Windows laptop that engineers can take out into the field where there is no internet access. Then, they will add data through a form and once they get back and have internet access, they can then hit a "Sync" button and send the data they collected to an external SQL Server database.
The database is SQL Server 2016 and the application is going to be a C# .NET desktop application. My question is what options are available for the database when there is no internet access? I don't really want to do Excel or Access. I really like SQL Server Compact but it seems dated. Is SQL Server Compact still relevant with the latest .NET Framework or is there something newer that everyone uses?
You could try creating a ssis package that syncs data between the offline database and live database.
The ssis package can be executed either as a sql server job that runs at intervals
or
from a stored procedure . Please find the below link on how to execute a package from stored procedure.
https://msdn.microsoft.com/en-us/library/jj820152.aspx
The stored procedure can then be called from inside the application.
I've got an internal ASP.Net application which I would like to send to someone. The problem I have is that the app is using local SQL Server database. Is it possible to have a copy of the database to the file and just replace the access to the db for the file? If yes how?
Personally, I would sign up for a free Microsoft Azure account, use the free Azure Migration tool to copy your database to Azure, then just change your web.config to point at the Azure database.
This saves having to buy any SQL Server licenses, and requires the fewest amount of changes to your app.
No, they'll need SQL Server as well. They can install a free Express edition if they're eligible for the license.
If you set up your application properly, it should be easy to replace the data layer with a portable database like SQLite, so they don't have to install anything.
I want to build an ASP.NET website with Entity Framework 5 but I do not have permission to install SQL Server on my system, is it possible? If yes, how? If not, any alternative, like files etc...
If you can't install anything, then I'm afraid you're stuck with embedded databases like SQL Server Compact Edition or Sqlite. (and some NOSQL databases as well, I believe some of them don't require a server)
Just don't forget about one thing - embedded databases usually aren't enough for web environment.
For instance:
https://stackoverflow.com/questions/11591002/how-can-i-use-sqlite-in-a-c-sharp-project
http://www.microsoft.com/en-us/sqlserver/editions/2012-editions/compact.aspx
You could offload the database platform entirely to a remote Azure database; there's lots of info on this online, but this page might be a good starting point.
An alternative would be to host your database on another service like AWS or Microsoft Azure.
I want to create a desktop application, I normally work on web based applications so have very little knowledge about creating console applications using .Net and visual studio.
So now in this application I'l also be using database connectivity and stored procedures (SQL server). But how should I start doing this as I dont want to install SQL server on my clients system.
thanks in advance..
I think it depends on the goal of your application, the amout and sturcture of the data and the environment. The last point aims to the client system, if the client is part of an enterprise network (e.g. Active Directory) or is a common user at home.
maybe you can use xml or json files to store the data
if you need a database, you can create a setup project for your application which automatically installs a SQL Server express
another way is, if it's applicable for you, your application can consume a webservice which provide the data
you could use SQL Server compact http://msdn.microsoft.com/en-us/library/cc645984(v=sql.100).aspx or SQL Lite to embark your DB in your application without external dependencies.
Otherwise, if offline isn't a requirement, you could go the "cloud" way, with web APIs
Age old question! When you have finished developing and testing your ASP.Net web application, the database you want to deploy is now full of test information and needs to be emptied (and identity fields reseeded to 1) before you deploy.
When using a server instance, this isnt difficult (create a SQL script to do the job) but when using a user instance, its seems there is no easy way around?
Can anyone help with this? Thanks
See if this could help you http://rip747.wordpress.com/2007/10/01/sql-server-2005-import-export-reset-identity-keys-no-workaround-2005-sucks-period-the-end/
Here is another good one
http://dotnetslackers.com/community/blogs/mosessaur/archive/2007/12/09/sql-server-2005-clean-your-database-records-amp-reset-identity-columns-all-in-6-lines.aspx
You can connect SSMS to a user instance DB, it just requires a bit of voodoo to discover the DB name.
As for scripting the sql, you can also use the Sql Server hosting toolkit to do this.