How to move database and attach it to SQL Server 2008 -


i not able attach database sql server 2008 on different machine. moved .mdf , .ldf files after detaching database 1 computer another. when try attach database on new machine database not show on file location.

if browse manually can see files (.mdf , .ldf). there no hidden files under mssql > data folder contains other database files.

also there way backup database, move new machine , add under sql server? if yes how can so? please advise.

if see mdf , ldf files via file explorer, not in sql server management studio, sql server management studio login might have insufficient permissions

if sql server version same both original , destination instance, there should no problems attach mdf , ldf files

  1. right-click databases node in object explorer
  2. select attach...

enter image description here

3.click add

enter image description here

4.navigate folder mdf , ldf files stored. make sure ssms login has enough privileges files/folders

enter image description here

5.select mdf file , click ok

the patch ldf file automatically added if it's in same folder. if not, add manually, same way added mdf file

to backup , restore backup new database, see these articles:

create full database backup (sql server)

restore database backup (sql server management studio)


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -