Quantcast
Channel: Für Entwickler: SQL Server Forum
Viewing all articles
Browse latest Browse all 1772

Eigenartige SQL Server Dateinamen

$
0
0

Nach dem ermitteln der default Pfade mittels kleiner Query

Data -> "C:\Users\Werner\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\v11.0\"
Log -> "C:\Users\Werner\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\v11.0\"

und dem Ausführen eines restores mittels Client Applikation

                        "set   @Default_Data_Path = @Default_Data_Path + 'BridgeTeam.mdf';  "
                        "set   @Default_Log_Path = @Default_Log_Path + 'BridgeTeam.ldf';     "

                            "RESTORE DATABASE BridgeTeam "
                            "FROM DISK = '{0:s}\\BridgeTeam.bak' "
                               "WITH FILE = 1, RECOVERY, "
                               "MOVE 'BridgeTeam' TO @Default_Data_Path,"
                               "MOVE 'bridgeTeam_log' TO @Default_Log_Path;"
                        "END",
                                  InstallationPath);

hat der SQL Server die Datendatei und die Logdatei so benannt

"master.mdfBridgeTeam.mdf"
"mastlog.ldfBridgeTeam.ldf"  

  ?????


Viewing all articles
Browse latest Browse all 1772