|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm getting the following error message when I excute this query: ALTER TABLE CLIENTES ALTER COLUMN Observaciones TYPE VARCHAR(10000) Error message: unsuccessful metadata update. Column OBSERVACIONES from table CLIENTES is referenced in U_CLIENTES The column I'm trying to change it's a regular column (no index, no key) How can I do it? Thanks in advance, JGeer |
|
#2
|
||||
|
||||
|
Is there an FK pointing to that?
__________________
My blog Tutorials about OSS databases, DBMonster ... Contribute to OSS Development, fill bug reports! Developer Shed eSupport Commented my.ini/my.cnf (ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins Random data (with a bias) |
|
#3
|
|||
|
|||
|
What is U_CLIENTES?
-- Best regards, Fikret Hasovic http://fikret.fbtalk.net USAID TAMP Senior Programmer * FirebirdSQL Foundation member. - Join today at http://www.firebirdsql.org/ff/foundation * JEDI VCS contributor http://jedivcs.sourceforge.net/ * Firebird and Fyracle news http://www.fyracle.org |
|
#4
|
|||
|
|||
|
U_Clientes is a stored procedure that updates the table Clientes.
No FK points to that field either. Thanks. |
|
#5
|
||||
|
||||
|
All you have to do is comment the procedure's body (between begin and end
), alter the column and then uncomment the procedure.
__________________
If i've been helpful, please add to my reputation. My unfinished site: http://www.dever.ro |
|
#6
|
|||
|
|||
|
Thanks SilverDB, that solves the problem although I have a few procedures to comment
Is this the only method to solve the problem? What if I want to alter a column from code? Is there any way to disable dependencies? Maybe through system tables? Thanks again, JGeer |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > How to ALTER COLUMN? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|