Viewing 15 posts - 31 through 45 (of 48 total)
Much closer, but now we're starting a day before the start date.
March 31, 2011 at 2:42 pm
I'm not sure it's working...I'm getting different results with that than I am with my own clunky method...and when I specify a date range of '2011-03-01 00:00:00.000' to '2011-03-03 00:00:00.000',...
March 31, 2011 at 9:49 am
Can I still use the < function with two varchar values then? I'll give it a shot.
March 31, 2011 at 9:44 am
Okay, now it works GREAT on my test system...which...uses SQL Server 2008. But it doesn't work on SQL Server 2005, which is my prod environment. (I know I shouldn't have...
March 31, 2011 at 9:37 am
In a hurry? And you came up with that? I couldn't have done that if I had a month. Thanks!
One question though, where do I tell it what table to...
March 31, 2011 at 9:31 am
I'm getting a syntax error on that one inside the SUM() functions. THEN ELSE END...it says incorrect syntax near the keyword "ELSE"
March 31, 2011 at 9:23 am
I'm afraid I don't understand ColdCoffee's code. It's a little too advanced for me.
March 31, 2011 at 6:35 am
Okay. I have a solution now that is at least working, but it's really...well...clunky. It creates a table, loops the select statement to find the values, inserts them into that...
March 30, 2011 at 12:08 pm
Okay. I am thoroughly confused. I'm trying to do what, in my mind, should be a very simple task, but it always seems to be the simplest tasks that are...
March 30, 2011 at 6:52 am
I'm not having any luck.
Maybe I should explain better what I'm trying to do...
I receive a start date and an end date from a user.
I need to select everything from...
March 29, 2011 at 2:48 pm
Glad you got it figured out! That kinda stuff can happen to seasoned professionals, too. I'm a newbie at SQL, but I'm much more experience with C#, and I once...
March 29, 2011 at 6:38 am
Oh, I get it! You're literally pivoting the table, turning the rows into columns and the columns into rows. That is a neat trick! I think that might work for...
March 29, 2011 at 6:35 am
Here's where my inexperience comes in. What is a pivot?
March 28, 2011 at 3:04 pm
You just said what I was starting to get at in my own head... 🙂 Maybe the creation of a new schema can't happen within the same block of code...
March 28, 2011 at 2:46 pm
Are you creating the new schemas in the new database within the T-SQL script you wrote, or before you run the script?
March 28, 2011 at 2:24 pm
Viewing 15 posts - 31 through 45 (of 48 total)