restore postgres database from sql file
psql -d database_name -f backup.sql
restore postgres database from sql file
psql -d database_name -f backup.sql
sql server rename mdf file
USE [master];
GO
ALTER DATABASE QuestelServicesDirectValidation_ORIG SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE QuestelServicesDirectValidation_ORIG SET OFFLINE
GO
ALTER DATABASE QuestelServicesDirectValidation_ORIG MODIFY FILE (Name='QuestelServicesDirectValidation_ORIG', FILENAME='C:Program FilesMicrosoft SQL ServerMSSQL13.MSSQLSERVERMSSQLDATAQuestelServicesDirectValidation_ORIG.mdf')
GO
ALTER DATABASE QuestelServicesDirectValidation_ORIG MODIFY FILE (Name='QuestelServicesDirectValidation_ORIG_log', FILENAME='C:Program FilesMicrosoft SQL ServerMSSQL13.MSSQLSERVERMSSQLDATAQuestelServicesDirectValidation_ORIG_log.ldf')
GO
ALTER DATABASE QuestelServicesDirectValidation_ORIG SET ONLINE
GO
ALTER DATABASE QuestelServicesDirectValidation_ORIG SET MULTI_USER
GO
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us