dbTalk Databases Forums  

'sa_recompile_views' already exists - error

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss 'sa_recompile_views' already exists - error in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonesy
 
Posts: n/a

Default 'sa_recompile_views' already exists - error - 01-27-2010 , 04:43 PM






I get the following error when trying to unload a database from Sybase
9 to 11 using the "-an" flag:

***** SQL error: Item 'sa_recompile_views' already exists

I can avoid the error by dumping the unload SQL to a file, commenting
out the following create statement:
"create procedure dbo.sa_recompile_views(in ignore_errors integer
default 0) ....", and loading the SQL file into a new database. The
new database appears to work properly afterward.

Is it safe to ignore this error and comment out this step of the
unload process?

Thanks,

Mike

Reply With Quote
  #2  
Old   
Bruce Hay
 
Posts: n/a

Default Re: 'sa_recompile_views' already exists - error - 01-28-2010 , 09:52 AM






Yes, removing the "create procedure" statement for sa_recompile_views from the
reload.sql file is a valid fix. Another fix would be to insert a row for
sa_recompile_views with type='P' in the dbo.EXCLUDEOBJECT table of the version 9
database. Somehow that row has been deleted.

SQL Anywhere Developer Community:
http://www.sybase.com/developer/libr...ere-techcorner


SQL Anywhere Blog Center: http://www.sybase.com/sqlanyblogs




Jonesy wrote:
Quote:
I get the following error when trying to unload a database from Sybase
9 to 11 using the "-an" flag:

***** SQL error: Item 'sa_recompile_views' already exists

I can avoid the error by dumping the unload SQL to a file, commenting
out the following create statement:
"create procedure dbo.sa_recompile_views(in ignore_errors integer
default 0) ....", and loading the SQL file into a new database. The
new database appears to work properly afterward.

Is it safe to ignore this error and comment out this step of the
unload process?

Thanks,

Mike

Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.