473,320 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Recompiling SPs in SQL server

Hi Group,

I have a database which has around 2000 SPs. I dont have relationships
defind in the database as its a maintainence project so now I want to
recomiple each SP so to know that the SPs are in correct state. One
way is to use sp_recomiple system stored procedure but it will only
recomiple the SP when the SP is called. I want the SPs to get
recompiled and report me errors in the SPs.

I dont want to change the SP by WITH RECOMPILE option since that will
also mean changing all SPs. and every other option i found only works
when the SP is called. I cannot write EXEC <SP NAME> since it means
providing parameters for the SPs and its a very tidious task.

Can anyone suggest me some easier way to do it ??

Thanks in advance
Sunil
Jul 20 '05 #1
1 1657

"Sunil" <su***********@hotmail.com> wrote in message
news:bd**************************@posting.google.c om...
Hi Group,

I have a database which has around 2000 SPs. I dont have relationships
defind in the database as its a maintainence project so now I want to
recomiple each SP so to know that the SPs are in correct state. One
way is to use sp_recomiple system stored procedure but it will only
recomiple the SP when the SP is called. I want the SPs to get
recompiled and report me errors in the SPs.

I dont want to change the SP by WITH RECOMPILE option since that will
also mean changing all SPs. and every other option i found only works
when the SP is called. I cannot write EXEC <SP NAME> since it means
providing parameters for the SPs and its a very tidious task.

Can anyone suggest me some easier way to do it ??

Thanks in advance
Sunil


Your desciption is a little unclear, but I suspect that maybe you want to
recreate the procedures to check that the syntax is valid, not recompile or
execute them - those are three different things. If so, one option is to
script all the procedures to a file using Enterprise Manager, then run the
file (preferably in a test database), and review the output. You could use
osql.exe to do this, and send the output to a file for easier viewing.

If I've misunderstood you, could you explain exactly what you mean by "in a
correct state"? Also, it would be useful to know which version of SQL Server
you have, as deferred name resolution means that your stored procedures may
be (re)created successfully, but will not execute due to missing objects.

Simon
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Drazen Gemic | last post by:
Is there a way to extend PHP features, like adding new database connectivity module, java interoperability etc. without recompiling PHP ? I need a UNIX/Linux solution, something like dropping .so...
0
by: Primaria Falticeni | last post by:
Can I put a new charset or modify an existing one without recompiling MySQL? If yes, please tell me how. Thanks Anticipated, Iulian -- MySQL General Mailing List
4
by: JimBob | last post by:
I have a simple stored procedure that is recompiling over and over. I have run several traces and I can't figure out the problem. Here is the code: CREATE procedure dbo.Sp_multi_selectEmployee...
0
by: Ryan Liu | last post by:
All, Now I have meet a strange problems. When all the files have been compiled and when linking, make always recompiles some files. I don't know why. Would you mind giving some suggestion? The...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
0
by: Zachary Hilbun | last post by:
I am developing an ASPNET app using c# on a remote server. The server lost a hard drive and one probject was recovered on that server and one was not. I can't compile or syncronize anymore on the...
3
by: Lucas Tam | last post by:
Does recompiling cause session objects to disappear? -- Lucas Tam (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address when replying....
4
by: Christopher Ireland | last post by:
Hi all, I've got an app written under the v1.1 of the .Net framework and I'm now considering recompiling it under v2.0. Can I expect my app to run any faster? Are there any advantages to...
9
by: friendhouston | last post by:
Hi, Have a requirement where new items may be added later to an existing list of items. These new items may have new features but will need to contain minimum basic features like description and...
2
by: Geet | last post by:
Hi all, I'm reading this article on Microsoft's website: http://support.microsoft.com/kb/932872/ , and they state that the solution is to recompile the "COM dll"... how do I do this? Is there a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.