Viewing 15 posts - 3,061 through 3,075 (of 13,461 total)
probably very similar, using reverse and patindex for the first non numeric character: from there, for the 1/-1, a case based on the len() would be what i would use.
with...
July 25, 2013 at 8:02 am
procedure a supposed to be called with the full EXEC ProcName @Parameters or EXECUTE ProcName @Parameters.
only when a procedure is the only line item (or the first line item in...
July 25, 2013 at 7:56 am
Learner, it kind of sounds like these users are sysadmins? i don't think you can deny a sysadmin anything, so you have to take away their superpowers before you can...
July 24, 2013 at 1:43 pm
its a binary AND operation.
5 = 00000101
17 = 00010001
the only column in BOTH values binary representation above is the first column, representing 2^0, so the value is 1.
16...
July 24, 2013 at 7:36 am
ok i created this complete example by merging some of your stuff into my known, working trigger example.
it's working well for me, but has a couple of duplicate columns from...
July 24, 2013 at 6:38 am
pwalter83 (7/24/2013)
However, I was wondering is it not possible to implement this logic within the table structure because as I mentioned earlier, the values in one table would be...
July 24, 2013 at 5:47 am
pwalter83 (7/24/2013)
I am very new to SQL and really dont know how to phrase my question.
There are 2 tables linked through a primary key and if the values in...
July 24, 2013 at 5:14 am
can you use the trick of a SUM(CASE...
not sure if you need a count, or the coutn distinct for each item:
SELECT
[DateofScan]
,[DeviceType]
,count([PlugInID])
,SUM(CASE WHEN Critical = 'Y' THEN 1 ELSE 0...
July 23, 2013 at 3:07 pm
Koen Verbeeck (7/23/2013)
Didn't know this site censored some words.Hum. Whaddayaknow...
Oh man,so you've been added into the naughty list, then right?
July 23, 2013 at 2:12 pm
you should be able to fix it without a trace at all; the error is in the report itself.
somewhere in that' reports definition,you've got something like
...WHERE ClientID = (SELECT...
July 23, 2013 at 1:50 pm
sturner (7/23/2013)
July 23, 2013 at 1:05 pm
i'd consider rewriting the trigger to support multiple rows by joining to the tables instead .
something like this looks right to me:
edit: Exactly what sturner was thinking. I'm too slow!,...
July 23, 2013 at 11:53 am
i think the issue is really that the trigger is not updating anything, right, and not that the trigger does not fire?
my first guess would be that the inner condition...
July 23, 2013 at 11:44 am
david.ostrander (7/23/2013)
I currently have an SSIS package running and the first part of it deletes all data in (Table A) but saves the rows with the PIT of...
July 23, 2013 at 10:34 am
well, assuming this section is still in your original script
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N' [product]]') AND type in (N'U'))
note that it is looking for a...
July 23, 2013 at 9:34 am
Viewing 15 posts - 3,061 through 3,075 (of 13,461 total)