on 04-01-2014 8:03 PM
Olá experts,
Alguém tem um tipo de bloqueio, preferencialmente via Transaction, para impedir cadastros com " * " nos codigos ou descricao de PN e Itens?
Ocorrem alguns cadastros equivocados, quando os usuarios tentam fazer procuras sem setar o modo corretamente...
Abraço a todos.
Boa tarde
Fiz da seguinte forma
if (@object_type = '2' AND @transaction_type = 'A')
Begin
declare @verificador int
set @verificador = (select COUNT(*) from OCRD where CARDCODE = @list_of_cols_val_tab_del and CardName LIKE '%*%')
if @verificador >0
Begin
set @error_message = 'Pn com Nome Inválido Caracter * detectado'
set @error = 1
end
end
Por favor marcar topico como resolvido caso atenda
A disposição
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.