I have a table in Sql Server, in which I want to generate alphanumeric sheets. So I'm going to make an alter column but when I execute it, it gives me an error, I don't understand why it happens. Here is the SQL code:
ALTER TABLE [DB_AtencionCliente].[WAPP].[TBL_TRANSFERENCIA_BANCARIA]
ALTER COLUMN FOLIO AS ([TIPO_TRX] + RIGHT('00000000' + CAST([TRX] AS VARCHAR(9)), 9)) PERSISTED;