Viewing 15 posts - 11,326 through 11,340 (of 14,953 total)
Check out the Case statement in Books Online.
You can write a pretty simple case statement to get this.
January 26, 2009 at 8:15 am
Change:
and cast(h.created as datetime) < convert(datetime, floor(convert(float, getdate()))))
to:
and cast(h.created as datetime) < dateadd(hour, 2, convert(datetime, floor(convert(float, getdate())))))
January 26, 2009 at 8:14 am
Please post the execution plan for the query. Then we can really help out.
If you aren't sure how to do that:
In management studio, on the toolbar, there's a button...
January 26, 2009 at 8:08 am
One of the problems I've seen that causes Excel-as-database solutions is where IT has some byzantine policy for software specification, and it's complex and painful enough that nobody wants to...
January 26, 2009 at 7:50 am
Jeff, something I have to ask:
You keep mentioning that recursive CTEs are worse than cursors. I can see that in some cases, but in cases like a hierarchy crawl,...
January 26, 2009 at 7:37 am
Glad I could help.
I can understand why char(0) wouldn't work, since it's basically the lack of a character.
January 26, 2009 at 7:19 am
I'd have to hear both sides of the story to be sure, but it sure sounds like a good way to go out of business in short order. How...
January 26, 2009 at 7:05 am
One thing I find useful, when presenting a case for whatever (expense or anything else), is rehearse it first (if it'll involve any face-to-face, or might).
Play the part of devil's...
January 26, 2009 at 6:57 am
You might want to look into something like Satori's BulkMailer (http://www.satorisoftware.com/Products/BulkMailer/default.aspx). It's a pre-packaged solution for CASS and presort, provides all the paperwork, etc. Not very expensive, either,...
January 23, 2009 at 8:57 pm
Take a look at "Cast and Convert" in Books Online. It has the data on how to get formatted dates out of the system more easily than that.
On an...
January 23, 2009 at 8:51 pm
Experience counts more than training, in many cases, because so many people get degrees/certs, but don't actually know anything of any value. Not saying that's true in your case,...
January 23, 2009 at 8:48 pm
You're welcome.
January 23, 2009 at 8:25 pm
bbaley (1/23/2009)
GSquared (1/23/2009)
January 23, 2009 at 8:17 pm
Jeff Moden (1/23/2009)
January 23, 2009 at 8:09 pm
Yes. Right-click on the query pane (in Management Studio), select "Results To", and change it to Text, instead of Grid. That's what I meant by setting the output...
January 23, 2009 at 2:37 pm
Viewing 15 posts - 11,326 through 11,340 (of 14,953 total)