Viewing 15 posts - 61 through 75 (of 334 total)
prathibha_aviator (4/18/2013)
IF (SELECT COALESCE((SELECT dI.[entry] FROM InitialData AS dI WITH(NOLOCK) WHERE dI.dept= 'Support'
...
April 18, 2013 at 12:34 pm
Aha.. right. What I meant was...
select * from InitialData where [entry]='1'
works for me...
April 18, 2013 at 12:17 pm
prathibha_aviator (4/18/2013)
Table with Values...
Trying to test the condition that i developed...i want to compare all the rows with the entry value '1'....
Am I missing something?
What's wrong with
select * from...
April 18, 2013 at 12:08 pm
Why are you using <>1? If you want the condition to be true it needs to be dI.[Entry]=1. Otherwise it will always result in a null which coalesce converts to...
April 18, 2013 at 11:54 am
The job_num field should match the datatype in the source table. ie, it should be an int, and it should not be null, correct.
for your audit table you want...
April 17, 2013 at 1:27 pm
Soooooooooooo... you're saying this code is production ready? :hehe:
April 16, 2013 at 8:33 am
Google UNPIVOT and then count aggregate.
April 11, 2013 at 1:19 pm
ben.brugman (4/11/2013)
It's not difficult to convince any manager; that storage in SQL-server would be a good idea. But because of lack of interaction software for the manager, most (if...
April 11, 2013 at 8:47 am
Have you tried looking at the end of the file to see what it's choking on in something like Notepad++ so you can see the characters?
April 11, 2013 at 8:44 am
Is SSMS right-click the table and select Create To Clipboard
Go to the alternate database and open a query
Paste the create statement and run it.
Now that you have the table just...
April 11, 2013 at 8:37 am
😀
I must have spent thirty seconds trying to scroll up and down to find the query the OP was talking about.
April 10, 2013 at 3:50 pm
Lowell:
Thanks! I never thought of using a recursive CTE but that seems like the ticket to me if we stick with a straight SQL solution.
sturner:
I have to agree that...
April 10, 2013 at 2:07 pm
Lowell?
Was there a piece missing where you convert it to a 32-bit format binary? ie. 001001001110010110001100...etc?
I stored your snippet for when I want to convert from ip to int and...
April 10, 2013 at 12:49 pm
I hate it because I can't figure out how to setbase it into a single query but this will work for you.
declare @ip varchar(200)
declare @address varchar(200)
set @address = '24.55.187.203'
set @ip...
April 10, 2013 at 11:36 am
April 10, 2013 at 8:37 am
Viewing 15 posts - 61 through 75 (of 334 total)