Upload
anandna
View
134
Download
0
Embed Size (px)
Citation preview
04/18/2013 Page 1 of 2
SAP Note 181114 - Replacing a Stored Proc using MSSPROCS
Note Language: English Version: 3 Validity: Valid Since 08/25/2005
Summary
SymptomAn SAP provided stored procedure must be updated in your SQL Server DB andSAP support personnel have asked you to use the program MSSPROCS to performthe update.
Other termsMSSPROCS
Reason and PrerequisitesStored procedures might need to be replaced as a result of codeimprovements, unique circumstances related to an upgrade, or FCS programinvolvement.
SolutionThe following process should be used to run and interact with the programMSSPROCS. This process only works if you have been provided an entirereplacement sql script. This process will not work for selective edittingof sql scripts, only REPLACEMENTS.
1. Log on to SAP, run transaction SE38 and in the program name fieldenter MSSPROCS. Enter the correct database release matching therelease your system is using.
2. Open up Notepad, and open the file which contains the stored proceduretext which was provided to you by SAP support. In the Notepadapplication, choose Edit->Select All, then Copy. This will place thestored procedure code in the clipboard.
3. Back in the SAP window, select the correct stored procedure to edit bymarking the box to the left of the stored procedure name, and thenselect the push button entitled "Edit" or "Editieren". A new windowwill appear with the stored procedure text.
4. Mark the top line of the stored procedure text with the SELECT button(F9) , and also mark the bottom line of the text. There doesn't needto be text in the lines you select. Just select the top and bottomlines.
5. Next select the scissors icon to cut the lines. No lines will bepresent in the window.
6. Now select Edit->Insert buffer->Clipboard. This will move theclipboard contents created in step 2 to the stored procedure text.
7. Now you save the changes made by hitting the SAVE FOLDER icon. Thiswill cause the window to exit.
8. The final step is make the changes known to SQL Server. To do thisyou must now hit the "Starten" or "Start" button. The stored procedureis now updated. WARNING: DO NOT use "ALLE STARTEN" or "START ALL"
04/18/2013 Page 2 of 2
SAP Note 181114 - Replacing a Stored Proc using MSSPROCS
Header Data
Release Status: Released for CustomerReleased on: 08/25/2005 16:34:08Master Language: EnglishPriority: Recommendations/additional infoCategory: Special developmentPrimary Component: BC-DB-MSS Microsoft SQL Server
The Note is release-independent
Related Notes
Number Short Text
1839755 SQL Error 8152 in DB02 Space Overview
Attributes
Attribute Value
Operating system NT/ALPHA
Operating system NT/INTEL
Database system MSSQLSRV7.0