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
- right-click databases node in object explorer
- select attach...
3.click add
4.navigate folder mdf , ldf files stored. make sure ssms login has enough privileges files/folders
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:
Comments
Post a Comment