Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > Sybase Store Procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-08, 11:42
sriyaz sriyaz is offline
Registered User
 
Join Date: Mar 2008
Posts: 21
Sybase Store Procedure

Hi,

I have Sybase user store procedure(1000+) in the user database.I want to recompile all store procedure at a time.
Are there any procedure to recompile all Store Procedure at a time?

Thanks in advance.

Regards,
Shaikh
Reply With Quote
  #2 (permalink)  
Old 06-24-08, 12:49
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 370
use <database>
go
select "exec sp_recompile "+name from sysobjects where type='U'
go

Copy paste the output and run.

type='U' is for table names.

Last edited by trvishi : 06-24-08 at 12:52.
Reply With Quote
  #3 (permalink)  
Old 06-25-08, 05:10
karthi_syb karthi_syb is offline
Registered User
 
Join Date: Jun 2008
Location: India
Posts: 58
You can also use dynamic sql to do this.
Reply With Quote
  #4 (permalink)  
Old 06-25-08, 11:39
sriyaz sriyaz is offline
Registered User
 
Join Date: Mar 2008
Posts: 21
Thanks Karthi,

Can you please give me an example of dynamic sql.

We migrated Sybase 12.5 32-bit to Sybase12.5 64-bit.
We are getting problem while compiling the SP.
Can you please suggest me Which is the easiest way to recompile all SP in one-shot.

Thanks in Advance.
Sriyaz
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On