Click here to Skip to main content
15,897,185 members
Home / Discussions / Database
   

Database

 
GeneralRe: find store procedure Pin
George_George14-Jan-09 4:37
George_George14-Jan-09 4:37 
GeneralRe: find store procedure Pin
Paddy Boyd14-Jan-09 4:41
Paddy Boyd14-Jan-09 4:41 
GeneralRe: find store procedure Pin
George_George14-Jan-09 4:49
George_George14-Jan-09 4:49 
GeneralRe: find store procedure Pin
Paddy Boyd14-Jan-09 4:51
Paddy Boyd14-Jan-09 4:51 
GeneralRe: find store procedure Pin
George_George14-Jan-09 4:58
George_George14-Jan-09 4:58 
GeneralRe: find store procedure Pin
Paddy Boyd14-Jan-09 5:29
Paddy Boyd14-Jan-09 5:29 
GeneralRe: find store procedure Pin
George_George14-Jan-09 5:55
George_George14-Jan-09 5:55 
AnswerRe: find store procedure Pin
Wendelius14-Jan-09 3:31
mentorWendelius14-Jan-09 3:31 
George_George wrote:
Any ideas to find where is the physical location of store procedures


All information concerning a stored procedure is located in system tables. These tables reside in the primary file group of the database. However, the physical location isn't normally relevant for these tables (unless you're interested in complex backup/restore scenarios etc.).

One place you can look at is sys.sql_modules. From that view you can see for example your current procedures and their implementation.

George_George wrote:
I have a source control system and I want to check-in the store procedure code


You can use Management Studio's ability to script a procedure. Using it, you'll get an initial version for your source control. After that, modify the script as you like and check-out/check-in when you make modifications. I'm not aware that Management Studio supports any source control system so you may have to do this using file system operations (meaning you checkout to a file and then open it in Management Studio etc)


George_George wrote:
And I also want to merge the store procedure code outside Management Studio using other diff tools and let Management Studio reflect the changes


As previously use whetever tools you need and open the result into Management Studio.

George_George wrote:
merge/change the code from outside, when I press refresh button in Management Studio, I can see the new merged code of store procedures


You first have to execute the script in order to get the procedure to the database. After that, you'll see the change.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: find store procedure Pin
George_George14-Jan-09 4:48
George_George14-Jan-09 4:48 
GeneralRe: find store procedure Pin
Wendelius14-Jan-09 5:12
mentorWendelius14-Jan-09 5:12 
GeneralRe: find store procedure Pin
George_George14-Jan-09 5:18
George_George14-Jan-09 5:18 
GeneralRe: find store procedure Pin
Wendelius14-Jan-09 5:43
mentorWendelius14-Jan-09 5:43 
GeneralRe: find store procedure Pin
George_George14-Jan-09 5:59
George_George14-Jan-09 5:59 
GeneralRe: find store procedure Pin
Ashfield14-Jan-09 21:23
Ashfield14-Jan-09 21:23 
GeneralRe: find store procedure Pin
George_George15-Jan-09 22:59
George_George15-Jan-09 22:59 
GeneralRe: find store procedure Pin
J4amieC14-Jan-09 22:37
J4amieC14-Jan-09 22:37 
GeneralRe: find store procedure Pin
George_George15-Jan-09 22:51
George_George15-Jan-09 22:51 
GeneralRe: find store procedure Pin
J4amieC16-Jan-09 1:11
J4amieC16-Jan-09 1:11 
AnswerRe: find store procedure Pin
Hamid_RT15-Jan-09 21:04
Hamid_RT15-Jan-09 21:04 
GeneralRe: find store procedure Pin
George_George15-Jan-09 22:49
George_George15-Jan-09 22:49 
Questionsmarter ways to make a column value unique Pin
George_George14-Jan-09 2:01
George_George14-Jan-09 2:01 
AnswerRe: smarter ways to make a column value unique Pin
Colin Angus Mackay14-Jan-09 2:17
Colin Angus Mackay14-Jan-09 2:17 
GeneralRe: smarter ways to make a column value unique Pin
George_George14-Jan-09 2:30
George_George14-Jan-09 2:30 
AnswerRe: smarter ways to make a column value unique Pin
Hamid_RT15-Jan-09 2:28
Hamid_RT15-Jan-09 2:28 
QuestionHow to generate XML reoprt programmatically using SQL Server Reporting Services Pin
DipaliG13-Jan-09 18:32
DipaliG13-Jan-09 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.