Viewing 15 posts - 8,776 through 8,790 (of 13,461 total)
data format nazi
no solution for you!
i guess i'm feeling generous;
I didn't even bother looking at the request, as the lack of consumable data was as far as i cared to...
September 10, 2010 at 1:25 pm
syntax...you can fix that....the original trigger i wrote was tested, so it's gotta be a modification.
note i did test on a 2008 server...there may be a difference if this is...
September 10, 2010 at 1:14 pm
Tara-1044200 (9/10/2010)
great thank a lot Lowell.finally can i use triiger for prohibintg INSERT,UPDATE and DELETE also ?
not a server wide trigger No.
triggers for ALL SERVER can only track LOGON...
September 10, 2010 at 12:31 pm
Tara-1044200 (9/10/2010)
from the above script does it mean that users listed in NOT IN cluse can drop the tables.
Actually my goal is to...
September 10, 2010 at 11:37 am
Tara-1044200 (9/10/2010)
I want to prohibit everyone except User1 and User2...
September 10, 2010 at 9:57 am
because of the error "A triggermust be the first command in a batch"
you have to use dynamic SQL after the IF EXISTS test.
that goes the same for procedure/ function/ view...
September 10, 2010 at 9:51 am
Tara-1044200 (9/10/2010)
September 10, 2010 at 9:43 am
Tara-1044200 (9/10/2010)
This looks exciting to me and would like to try but few questions..
1. Yes i have 3 tables only across all servers
2. i have 2 win groups to restrict...
September 10, 2010 at 9:21 am
Tara i saw the other thread , and yes it's possible, but you need to decide on some way to identify the table...specific name, maybe from a table in master,...
September 10, 2010 at 8:49 am
Tara i saw the other thread , and yes it's possible, but you need to decide on some way to identify the table...specific name, maybe from a table in master,...
September 10, 2010 at 8:40 am
yes that was exactly what i was trying to show you; i just included the whole code so you could see how to obfuscate a specific script;
you can see that...
September 10, 2010 at 4:48 am
lets try something different...show us what you think the INSERT INTO statement would look like;
your requirement changed form updating colA and colB to something different....all the clues for your trigger...
September 9, 2010 at 11:58 am
igngua (9/9/2010)
September 9, 2010 at 10:43 am
if the three columns make the row unique, why are you changing one of the values? a trigger like that should change columns other than those comrising the primary key.
if...
September 9, 2010 at 8:28 am
update dbo.eicanalesres
SET idcontrato = '13'
FROM INSERTED
WHERE dbo.eicanalesres.IdContrato = INSERTED.IdContrato
AND dbo.eicanalesres.EiCanalId = INSERTED.EiCanalId
AND dbo.eicanalesres.EiFechServ = INSERTED.EiFechServ
AND inserted.idcontrato = '02'
AND inserted.EiCanalId = '91'
and inserted.eifechserv = eicanalesres.eifechserv
you missed the core of...
September 9, 2010 at 7:18 am
Viewing 15 posts - 8,776 through 8,790 (of 13,461 total)