Viewing 15 posts - 481 through 495 (of 774 total)
it's solved.
I copyed the object again and put it in the @var1 and it works...
Maybe it was something like ' or other think...
Thank you
June 1, 2011 at 11:41 am
CREATE TRIGGER TRG_INS_CARTOES ON dbo.CARTOES
INSTEAD OF INSERT
AS
begin
declare @NUMCARTAO integer
declare @NIF_ANTIGO varchar(20)
declare @IS_CENTRAL_LX as char(2)
select @IS_CENTRAL_LX = TP_CENTRAL from parametros
--Não actualiza no Central sincronizador
if ISNULL(@IS_CENTRAL_LX, '-1') <> 'LX'
...
June 1, 2011 at 11:30 am
Yes, i cliked and it redirect me to the END ELSE BEGIN...
June 1, 2011 at 11:04 am
The error was lack of ()
now, when i execute it i receive another error:
Msg 156, Level 15, State 1, Procedure TRG_INS_CARTOES, Line 32
Incorrect syntax near the keyword 'else'.
Msg 156, Level...
June 1, 2011 at 10:45 am
Ninja i am sorry but my english is not very good.
What did you mean with your last post?
did you mean that i am doind right if i create the job...
May 25, 2011 at 3:36 pm
It's decided! i am going to create the job that updates the stats to work every day.
Thank you very much gail and ninja for the great help.
May 25, 2011 at 3:29 pm
I did it to a database that is not on production.
In this case what do you think?
It's better to update statistics every day manualy on the production database or...
May 25, 2011 at 3:08 pm
sorry did,t undestood your question.
What i did was:
I created some new indexs on some tables includind the liquidacao table.
This are new indexs created on tables.
I have tried create the indexes...
May 25, 2011 at 12:16 pm
With the indexs created and the update statistics the query is now very fast..
May 25, 2011 at 12:06 pm
Thank you gail.
I have created indexes on all the tables that make joins in the query (some did not had).
Now the query is permorming much better.
May 25, 2011 at 12:03 pm
and in 2000? the behavior was the same? or it was neded less chages to fire the trigger?
May 25, 2011 at 11:39 am
Thanks for the tip but in this case i don't know if it is necessary, because when you update the statistics the query becames very performante.
May 25, 2011 at 9:28 am
By the way, i have one table (that is on the join) which as a column (the primary key) with an DESC index.
A DESC index is what you call on...
May 25, 2011 at 9:06 am
Viewing 15 posts - 481 through 495 (of 774 total)