Isar database backup locally and restore - database

I want to know if there is a way by which I can export all the database of the Isar into a backup and then restore it so if a user wants to uninstall the app the user can backup the data locally into a location like sdcard or phone storage and after reinstalling they can restore from backup all the database and can use it again. So what can be the ways by which it can be done?

Related

Error “TF400998: The current user failed to retrieve the SQL Server service account information” when trying to configure backup plan in TFS 2015

This is a "Answer Your question" type of the post. Just hope the information here will help anyone.
Situation:
Migrated TFS from Machine A to Machine B
Restored the DB
Reconfigured DBs using TfcConfigure RemapDB
Changed service account, url, binding and etc.
domainname\TFSService = service account to run TFS
Problem:
Logged on as the domainname\TFSService
Tried to setup "Scheduled backups for TFS" using a domain account used as a service account for running TFS (HOWTO)
Back up should be stored on a remote server (accessible over UNC)
ERROR = Error “TF400998: The current user failed to retrieve the SQL Server service account information” when trying to configure backup plan in TFS 2015
Question:
How to setup the Scheduled Backup using TFSService account?
Solution:
Give domainname\TFSService account local Administrator permissions on Your TFS Server
Give domainname\TFSService account the sysadmin role in Your SQL Instance used to run TFS
Five domainname\TFSService account Log on as a service permissions on the TFS Server (HOWTO)
(IMPORTANT!!!) Run SQL Server Service hosting TFS DBs AS domainname\TFSService (HOWTO)
(IMPORTANT!!!) Give 'Full permissions' for the account used to run the SQL Service on the UNC destination folder.
Example: If SQL Server Account = domainname\TFSService, than permissions on the UNC should also be given to domainname\TFSService
Rerun the TFS "Scheduled Backup" configuration. Should resolve the error.
Sorry if this obvious or straight forward and considered as spam/flooding. Just spent over 3-4 hours. Hopefully this helps people save time and nerves.
In TFS2015 simply make sure that:
Make sure MachineA and MachineB are in the domain and a user "yourDomain\username" is added Application Tier >> Administration Console Users
Take Full Backup Now throw Scheduled Backups and move the backup to MachineB network share, as a restore process might fail throw network.
Open TFS Admin console on MachineB and Remove Application Tier feature if exists.
Use SQL Managment Studio to remove Tfs_configuration and other Tfs_* databases on MachineB
In TFS Admin Console of MachineB, you will have only option to restore under Scheduled Backup.
After restoring process on MachineBLaunch the Application-Tier Onlywizard (right click on Application Tier in TFS Admin Console).In Databases, specify the new SQL Server instance(MachineB/sqlexpress`) where you restored the TFS databases

Uploading a database to server

How do I upload to my local host database to a server uses direct admin.
I tried to take a .gz file from my local host database and when uploading it to the server It said that it is not a backup database. So do I have to create the database tables and columns by my own self not by uploading it?
In Direct Admin Under MySQL management, Create a new MySQL database and user with sufficient privileges.
Go to PHPmyAdmin, Select the database you just created and choose the import tab. Upload the gz file and hit Go! The localhost database tables are now in your server.

how to restrict sql database to be opened in other servers?

Currently i have a database that is attached to a named instance server with login credentials ,but at the same time if i attach the database to another server in other system ,the same gets opened.
How to deal with this?
Is there a way to restrict the database file to opened by others without valid credentials ?
You can do a BACKUP with MEDIAPASSWORD.
Here is the T-SQL command to backup your database:
BACKUP DATABASE Northwind TO DISK='C:\abc.BAK' WITH MEDIAPASSWORD='abc12345'
Reference Links:
Backup

How to restore DNN Backup

I have taken DNN 6 backup in the following ways
Copy the DNN folder from C:\inetpub\wwwroot
Take Sqlserver 2008 Enterprise edition database backup
When I try to restore it, I am getting error:
Connection Error(s): Index #: 0 Source: .Net SqlClient Data Provider
Class: 14 Number: 18456 Message: Sql login failed
I am using the following link for restoration:
.../Install/InstallWizard.aspx
Note !!! When i change the database and username, it will install the fresh installation but not restoring backup database.
How to solve this problem?
Some of the answer here will depend on where/how you are restoring the database.
If you take a database from one server to the other, the user account does NOT come with it from a server login perspective. So after restoring the database, you will need to create a new user account for managing the access to the database.
I'm not sure about needing to run the /InstallWizard.aspx to perform a restore. The first step is to get the files laid down in the Windows directory you want, and then get the IIS setup and pointed properly ensuring that you have the right security access (Depending on your version of IIS) to the files. If you get all that right you will be good to go from a file perspective.
As far as SQL Server you will need to do a manual database restore and as Mitch says create a new account that will have access to the database - You will need to change both database access statements the web.config to specify the new user. (standard and legacy if they both exist) Finally, make sure that SQL server is configured in Mixed Mode Authentication if you are specifying a SQL user.

How do you restore DTS permissions after database restore on SQL 2000

As part of the way we handle support for our clients for an enterprise application, we have them backup their database, I restore it on our server, do some maintenance, backup it up, and have them restore it on their server. This works very well, but I usually have to reset the users permissions for that database. But at the moment I have one client that is not able to run the DTS packages on that server due to a database user not being able to connect to the database. I've tried looking through every possible setting and option as well as checked and rechecked the permissions for that user, who by the way is in the dbo role, but nothing seems to work. Anyone know why I can't connect even though the user has the correct permissions?
Thanks in advance!
The owner of the database might be wrong. I'd check that first by making sure the owner is set to a user or role on their network (or sa if they're not using Windows authentication).

Resources