Viewing 15 posts - 6,616 through 6,630 (of 7,600 total)
I don't see why it would necessarily be that bad, at least for a straightforward "row must match the username" check. I've done these a few times w/o any...
March 25, 2013 at 3:48 pm
And, finally, you don't really need SUBSTRING, LEFT is good enough :-):
SELECT @string, LEFT(@string, LEN(@string) - CHARINDEX('\', REVERSE(@string)) + 1)
March 25, 2013 at 3:46 pm
I wouldn't try using views, as then the table/view name changes every time, so you're forced to use dynamic SQL, which causes additional security headaches.
Instead, I suggest creating a controller...
March 25, 2013 at 3:38 pm
Your stated incrementation method is so unusual and customized that I'd suggest just creating table with pre-generated key values; and, when you need to increment by one, instead of...
March 25, 2013 at 3:34 pm
SQLKnowItAll (3/22/2013)
IT is worth noting that we have 6 different environments and making sure all logins have a synced sid is sometimes not realistic. So that is why I...
March 22, 2013 at 4:39 pm
SQLKnowItAll (3/22/2013)
ScottPletcher (3/22/2013)
SQLKnowItAll (3/22/2013)
ScottPletcher (3/22/2013)
March 22, 2013 at 4:33 pm
SQLKnowItAll (3/22/2013)
ScottPletcher (3/22/2013)
March 22, 2013 at 4:03 pm
IF you can very briefly drop the problem login(s) on your clients' machines, and immediately recreate them, you can fix this problem once and for all! Then you would...
March 22, 2013 at 3:36 pm
frecal (3/21/2013)
Msg 1033, Level...
March 21, 2013 at 5:28 pm
Very little to go on ... but here's my best guess so far:
IF EXISTS(SELECT 1 FROM sys.objects WHERE name = 'FACT_SalesAnalysis')
DROP TABLE FACT_SalesAnalysis
-- ...
March 21, 2013 at 5:25 pm
SELECT
DATEADD(HOUR, DATEDIFF(HOUR, 0, RunDateTime), 0) AS AvgHourlyDateTime,
--DATEADD(MILLISECOND, -3, DATEADD(HOUR, DATEDIFF(HOUR, 0, RunDateTime) + 1, 0)) AS AvgHourlyEndDateTime,
AVG([RowCount]) AS...
March 21, 2013 at 4:05 pm
It looks to me like you're checking all connections to the database. If there are many such connections for different users, that could be a drag on the trigger.
So,...
March 21, 2013 at 12:07 pm
Would need to also at least see the DDL ("CREATE TABLE"/"CREATE INDEX") for the tables, including all indexes.
March 21, 2013 at 11:50 am
You can use COALESCE(): for only 4 values, it's actually clearer to me personally (ymmv) than the other method.
SELECT
t.id,
COALESCE(t.field1, t.field2, t.field3, t.field4)...
March 21, 2013 at 11:27 am
Lynn Pettis (3/20/2013)
March 20, 2013 at 2:12 pm
Viewing 15 posts - 6,616 through 6,630 (of 7,600 total)