Viewing 15 posts - 646 through 660 (of 698 total)
I'm sure someone will come up with a more elegant solution, but this should work for you. if the total negative numbers add up to more than the total positive...
August 18, 2009 at 6:50 am
the main reason why you're getting problems trying to execute the code that people have been pasting here to assist you, is because they can't test it themselves before giving...
August 18, 2009 at 5:30 am
Ravi (8/17/2009)
August 18, 2009 at 5:15 am
Your stored proc returns a result set I assume, so I assume you're asking if you can do something like:
INSERT INTO TABLE (COLUMNS)
EXEC StoredProc
To my knowledge, no, you can't do...
August 17, 2009 at 11:59 am
If you actually want to remove N spaces, IE you want your procedure / statement to have an input which will define the number of spaces you want to remove,...
August 17, 2009 at 10:23 am
I don't think default values work for functions, though I could be wrong. Either way though, what Matt wrote will work, you don't really need to change your function declaration...
August 17, 2009 at 10:21 am
Yeah, having tried to help some other people out here with incomplete data to work with, I know how annoying that can be, so I do what I can 😛
The...
August 17, 2009 at 10:09 am
DBASkippack (8/17/2009)
Is it posible to convert the following using T-SQL:MMDDYY to YYYYMMDD
For example, 081709 needs to be rendered as 20090817
thanks in advance..
Well, I'm not sure if there's a CAST or...
August 17, 2009 at 8:33 am
So, let me see if I understand this right.
What you're essentially doing is, getting a total of the subscribers on a monthly basis, and then, using the results stored into...
August 17, 2009 at 7:39 am
it's pretty unlikely that the cause is due to the linked servers.
the procedure you've pasted is pretty huge, and without knowing any table structure or data details, it'd be hard...
August 17, 2009 at 6:11 am
Ravi (8/17/2009)
Qty Age
-5 ...
August 17, 2009 at 5:43 am
Actually, you're right - I was wrong in what I wrote earlier.
When you have "IF NOT @i = 0", that evaluates into "IF NOT (UNKNOWN)", which results in FALSE.
IF (UNKNOWN)...
August 14, 2009 at 12:46 pm
i think you just misinterpreted the answers. when he says "i is null", he means that the result of "If @i is null" evaluates to true, and so he's just...
August 13, 2009 at 11:57 am
this was like, an entire lecture's worth of material in the database course i just finished taking 😛 made it a bit easier to figure out, lol
August 13, 2009 at 5:34 am
Viewing 15 posts - 646 through 660 (of 698 total)