SAP Note 151603 - Copying an SQL Server database

Component : Microsoft SQL Server -

Solution : https://service.sap.com/sap/support/notes/151603 (SAP Service marketplace login required)

Summary :
This SAP Note outlines the process for copying an SQL Server database within a homogeneous system copy, applicable to SAP systems utilizing SAP databases such from modules like BW and CRM. It details system copy procedures using SQL Server stored procedures sp_detach_db, sp_attach_db, or the 'CREATE DATABASE FOR ATTACH' command. A structured process from preparation, file structure analysis, creating directory structures, detaching, and reattaching databases ensures integrity and minimal disruption. The instructions require adherence to version compatibilities and prerequisite configurations for the SQL Server and SAP system. For database upgrades across different SQL Server versions, corresponding precautions and steps are specified to manage database file versions and ensure system functionality post-migration.

Key words :
<sapsid>gosetuser '<sid>'gotruncate  table  sdbaptruncate  table  sdbarnon-schema system, truncate  table  sap_perfsampletruncate  table  sap_perfinfotruncate  table  sap_perfvali, <sapsid>truncate  table  sdbaptruncate  table  sdbarthen create, <sapsid>gosetuser '<sid>'goexec sap_droprocnon-schema system, <sapsid>gosetuser '<sid>'gotruncate  table  sap_perfhist, <sapsid>goexec sap_droprocthese commands delete, permanent stored procedurescall transaction se38, <sapsid>truncate  table  sap_perfhist, delivered sap installation master dvd, alter database  tempdb  modify  file

Related Notes :

1471910SQL Server Partitioning in System Copies and DB Migrations
1458291SolMan 7.1 Database Warehouse & Alerting for MSSQL
1388700SQL Server Remote Database Monitor in Solution Manager 400
960769Windows: Migration from 32-bit to 64-bit (x86_64)
666805MS SQL Server: Migrating from 32-bit to 64-bit
600027Installing the Corrected MS SQL Server Collation
555223FAQ: Microsoft SQL Server
551915R/3 won't start after database restore or database copy
363018File management for SQL Server
339912R3COPY on NT-MS SQL Server
193816Restore with SQL Server
172547Platform changes between Intel and Alpha with SQL Server 7.0