If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Alter table fragmentation with stored proc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-15-04, 08:08
sarkeif sarkeif is offline
Registered User
 
Join Date: May 2004
Posts: 4
Alter table fragmentation with stored proc

Is there anyway to use an ALTER FRAGMENT statement with a SQL stored procedure and have a host variable as part of the statement.

ex..
ALTER FRAGMENT ON TABLE fact_orders MODIFY
bbuorders013 TO snapshot_seq = 3
AND snapshot_date_seq = ws_date
bbuorders013;

ws_date would the host variable containing a value such as '2004-11-15'

I receive a -873 when I try this.


Thanks for any help
Reply With Quote
  #2 (permalink)  
Old 11-15-04, 09:14
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Please test:

Remember define DBDATE=Y4MD-.
ALTER FRAGMENT ON TABLE fact_orders MODIFY
bbuorders013 TO snapshot_seq = 3 ,
snapshot_date_seq = extend(ws_date,year to day) in bbuorders013;

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 11-15-04, 09:33
sarkeif sarkeif is offline
Registered User
 
Join Date: May 2004
Posts: 4
Thanks but I got the same error message.
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

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