Viewing 15 posts - 31 through 45 (of 94 total)
I got it. I gave the other user in the same PC administrative access to SQL Server via Windows Groups. Then logged on to windows using other user & was...
April 7, 2009 at 7:34 am
Paul
Users I meant custom users i.e. they can be salesman, buyer, seller, manager & not the users within the sql server.
I have a user created table where users is a...
April 3, 2009 at 2:13 pm
yes. but once my job fails & restarts the tempdb table would not be available any more. moreover, global temp table may leave orphaned tables.
Thanks
April 3, 2009 at 6:52 am
unfortunately i cann't add another table to the database though this would help me run procedure in checkpoint.
i have to create transaction within a loop to delete user & send...
April 2, 2009 at 1:34 pm
Well! good point. I will have to check with business to see if this is required for any other purposes.
Thanks
April 1, 2009 at 8:22 am
the below one just worked fine. I have to test the performance alone now.
col1 - primary key
col2 & col3 - Need not audit
col4 - nullable column
col5 - not nullable column
select...
March 31, 2009 at 5:17 pm
Yes. Other than the key column we wouldn't need to add "or ((d.col5 <> i.col5) or (i.col5 is null) or (d.col5 is null))" to a column that is not nulllable...
March 31, 2009 at 4:10 pm
this is a good query but would fail if there are NULL values in deleted. i think the below query would fix it. But, anyway I have to double check...
March 31, 2009 at 3:48 pm
1. My Requirement is I have 26 columns in a table & we might add few more columns. Out of 26, two columns one column is in 6 position &...
March 31, 2009 at 2:53 pm
For example, take my query:
insert dbo.audit_abc (col1,col2,col3,col4,col5,audittype)
select d.col1,d.col2,d.col2,d.col4,d.col5,
case
when i.col1 is null then 'delete'
else 'update'
end
from deleted d
left outer join inserted i
on d.col1 = i.col1
where col2<>col2
and col5<>col5
In this query except col3 &...
March 31, 2009 at 1:12 pm
COLUMNS_UPDATED is not helpful. It requires lot of validation which would impact the performance. I want this to be validated at the query level.
if all columns except my two...
March 31, 2009 at 12:30 pm
Matt, Jack, Thank you. The detailed answers are excellent & this explains me how to design our systems.
Thanks
RJ
March 19, 2009 at 1:06 pm
My application directly accesses the database tables (application creates insert, update, select statements & executes against the database.) i.e. there is no stored procedure in between application & tables so...
March 16, 2009 at 1:16 pm
Storing it in binary seems to be a good plan. but, i have to check with my project if this comply to what we are looking. anyway thanks y...
March 12, 2009 at 1:56 pm
well, you have an option to store stored procedure or function encrypted in the database but would be visible only to certain users. is there some functions that allows in...
March 12, 2009 at 6:22 am
Viewing 15 posts - 31 through 45 (of 94 total)