Viewing 15 posts - 16 through 30 (of 726 total)
midan1 (12/22/2007)
how to findday before Last day of the month
i need to find the value in my table
"day before Last day of the month"
TNX
I have a strong feeling we're missing...
December 22, 2007 at 12:04 pm
Without the rest of your code, it's hard to say for sure what all problems you might have, but I'm guessing that your @AchieveLevel variable is an int. If so,...
December 21, 2007 at 12:01 pm
Possible, yes. Recommended, not in my book. In fact, unless you come up with a VERY good reason for this, I can't in good conscience tell you how to do...
December 20, 2007 at 10:09 pm
Glad that it worked for you, Marcus, and Jeff was spot on that the easier it is for us to help you, the more likely we are to do so.
For...
December 19, 2007 at 2:47 pm
This should work with your sample data. You get to add the rest of the columns from the two main tables to the select, as I'm lazy, in case you...
December 19, 2007 at 1:01 pm
Jeff Moden (12/18/2007)
Now, be gentle with me... just now starting to get my feet wet on 2k5... 😉
...since the following two queries return the identical result set, why did you...
December 18, 2007 at 9:06 pm
Since you're using 2005, you might try this method (I stole the table variable code from Adam Haines, since I'm lazy), tweaking it as needed:
declare @tbl1 table(id int,descr varchar(25))
declare @tbl2...
December 18, 2007 at 2:07 pm
Depending on your environment, that solution may or may not be acceptable. By default, I don't think the surface area configurator is going to allow the openrowset shown above, although...
November 9, 2007 at 2:26 pm
While I didn't test this, so there may be other issues, lose the comma on the line before the LOG ON line.
November 9, 2007 at 1:15 pm
While you should have gotten an error, I'm not sure why it was a syntax error. SELECT INTO won't work because it's a loop, so on the second pass, it...
November 8, 2007 at 2:17 pm
Since there are several places that it could have been turned on, why not verify that that is your problem first?
I'd just add a SET IMPLICIT_TRANSACTIONS OFF to the code...
November 8, 2007 at 1:46 pm
For a quick and dirty solution, you can just make a copy of that system stored proc (carefully, as you don't want to overwrite existing system stored procs if you...
November 8, 2007 at 1:28 pm
I was going to respond in the other thread, but since it's in the Data Corruption forum for some reason, I'll toss it in here. If you'd rather not use...
November 8, 2007 at 10:59 am
While you can also do it pretty easily with CASE statements, you can also add a Replace function to goodguy's code and handle the blank lines in a single row,...
November 7, 2007 at 2:34 pm
Jeff Moden (11/6/2007)
November 7, 2007 at 8:23 am
Viewing 15 posts - 16 through 30 (of 726 total)