Viewing 15 posts - 16 through 30 (of 30 total)
Hi Steve,
You are right. It is the worst but that is going to be done at a later date as per the project priority.
January 29, 2002 at 1:46 pm
Hi Robert,
Well my problem is, the app uses "sa" as the id to connect to the db. All the security process is taken care of in the application. Therefore...
January 29, 2002 at 12:06 pm
This is a check list which I would have to make sure if I come across something like this
1) Check to make sure that table has the trigger for...
January 29, 2002 at 9:42 am
Steve,
You are right! I wish I could do that...
Well I am going to tell it to my customers and basically tell them the downside...
January 28, 2002 at 1:47 pm
Hi Deuce,
Well not really.. Because my app connects all users as the same SQL login after I do the intial security check using a lot of group hierarchy...
January 28, 2002 at 10:36 am
Steve/Andy
If I understand it right the unique name will be user_name + host_name right? Now I dont understand your reasoning behind the combination to be unique. Could you please...
January 24, 2002 at 2:50 pm
Thanks Steve!! I was a little frustrated basically venting out..
January 23, 2002 at 5:23 pm
It is int identity and not identity int. I dont understand why the datatype is called identity int when you got to define as int identity. Oh well..
January 23, 2002 at 3:03 pm
Steve,
I am going to go with the host_name(). That sounds like what I wanted..
Thanks
January 23, 2002 at 12:30 pm
Steve/Deuce
So what do you think is the best way of getting an unique number/id/name so that I can identify that that box was used for this trigger to fire. Thats...
January 23, 2002 at 12:08 pm
Guys,
Thanks for your time. The problem was I had another trigger on the same table which was redundant. I deleted the old trigger and everything is hip.
Thanks Steve
January 23, 2002 at 9:38 am
Here it is.. thanks
drop trigger tr_req
go
create trigger tr_req on req for update
as
declare @table varchar(128),@col varchar(128),@old_value varchar(100),@new_value varchar(100),@last_upd_date datetime,@doc_type varchar(20),@col_name varchar(100)
select @table = 'req'
set nocount on
select @last_upd_date = getdate()
select...
January 22, 2002 at 4:08 pm
Thanks I got it
select @s-2 = 'select @col_name = '''+@col+''''
January 22, 2002 at 2:58 pm
Also got another quick question about the same thing. If I want to print the @col which is a variable itself how can I get it?
I have @col dynamically assigned...
January 22, 2002 at 2:52 pm
Thanks Brian! So is two single quote equal 1 single quote. Is that why we need
SET @s-2 = 'SELECT @table = ''abc'' '
Thanks again
January 22, 2002 at 2:44 pm
Viewing 15 posts - 16 through 30 (of 30 total)