Viewing 15 posts - 511 through 525 (of 691 total)
What you're talking about is referred to as "row-level security". This is a good introductory article:
http://vyaskn.tripod.com/row_level_security_in_sql_server_databases.htm
If you have more specific questions once you get going, post back...
November 7, 2004 at 11:21 am
How big is your partnumber data?
Would you mind telling me:
A) The data type of the column
B) the output from:
SELECT AVG(LEN(PartNumber)) AS AvgLen,
MAX(Len(PartNumber)) AS MaxLen,
MIN(Len(PartNumber)) AS MinLen,
COUNT(*) AS Count
FROM...
November 5, 2004 at 2:12 pm
Thanks, Tal! I'm sure that will be very useful. Are you hosting that? Do you mind if I link to it from my blog?
November 5, 2004 at 2:03 pm
I've read in various places that PATINDEX was faster than LIKE, but have never been able to reproduce it on my end. Can you post some code that proves...
November 5, 2004 at 11:36 am
If you're using SQL Server 2000, I recommend that you use SCOPE_IDENTITY() instead of @@IDENTITY. The latter will return the last identity generated for your session, whereas the former...
November 5, 2004 at 11:34 am
What type of dependencies? If there are foreign keys referencing the column, or if it is indexed, you will have to drop the keys/index in order to drop the...
November 5, 2004 at 9:01 am
Garry,
No, you cannot do that; the INSERTED and DELETED tables will have the same columns and datatypes as whatever table the trigger fired for.
November 5, 2004 at 8:08 am
No worries, you've got me beat by 3300 posts already ... Too bad there's not a prize
November 5, 2004 at 7:38 am
You can use a CASE expression for this:
UPDATE Table
SET qty_total = CASE WHEN (start_qty - end_qty) < 0 THEN 0 ELSE (start_qty - end_qty)...
November 4, 2004 at 1:57 pm
I think you want something like:
select *
from IV10200
where daterecd =
(SELECT max(daterecd)
from IV10200 i1
where i1.itemnmbr = IV10200.itemnmbr)
November 4, 2004 at 10:54 am
Russell, you can use parameterized queries for that purpose. Performance gains of stored procedures over parameterized queries are really not an issue at this point (IMO) ... unfortunately, people...
November 4, 2004 at 10:50 am
Also, I just found this KB article that might apply:
November 4, 2004 at 8:57 am
Are you sure you updated the correct instance? If you're running multiple instances, you do have to run the update on each instance separately. If you're not running...
November 4, 2004 at 8:56 am
I recently discussed my feelings about this in my blog... You can read them here:
http://sqljunkies.com/WebLog/amachanic/archive/2004/10/26/4823.aspx
... the jist of my argument is that stored procedures may not necessarily be better...
November 4, 2004 at 8:46 am
Viewing 15 posts - 511 through 525 (of 691 total)