Viewing 15 posts - 52,171 through 52,185 (of 59,102 total)
Only if you promise to avoid cursors and while loops like they were going to kill you... because they'll certainly kill the performance of your code. There's almost always...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 4:50 pm
I sure do... read the URL in my signature. People will come screaming out of the woodwork to answer your question almost before you can ask it if you...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 4:30 pm
Welcome aboard... first, here's one answer two your problem...
SELECT
(
SELECT SUM(ROOMREVENUE) AS 'ROOM REVENUE' FROM RPT_HOTEL_STATS WHERE PROPERTY = 'DELSOL'
AND STAT_DATE > '2007-12-31 00:00:00.000'
AND STAT_DATE <= DATEDIFF(day, 0, getdate())
)
/
(
select SUM(NUMROOMS) FROM...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 4:25 pm
willyboy (3/4/2008)
It is just not updating the JobSteps table.
How do you know that? What if it's updating the table with the same stuff that you have in it (NULLS?)...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 4:19 pm
willyboy (3/4/2008)
It would not surprise me if someone wanted to reach through the internet and throttle me.
Depends... do ya like porkchops? 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 4:12 pm
Guess I should be pretty happy then... apparently some of my articles inspire people to ask questions. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 4:01 pm
Ok, no... you have to use NEWID() to populate the column. It is NOT a self populating column. Then, you would check for an error... if no error,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 3:41 pm
Heh... no,... I'll happily continue to be "wrong" on this one... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 3:29 pm
Adam Bean (3/4/2008)
haha! That's my view!!! I feel special ...http://www.sqlservercentral.com/Forums/Topic457115-146-1.aspx
Dang, Adam... why don't you put your name on that bad boy! 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 3:06 pm
Hmmm.... when it comes to plain ol' delimited text files such as CSV files, I sometimes think people make things way too difficult. You can easily get a listing...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 2:35 pm
Remove the semi-colon... change the double quotes to single quotes around 'James'.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 1:26 pm
paulhunter (3/4/2008)
So, by this logic every line begins a new sentence in english.
Heh... don't be warping my words, Paul... I said a new line never starts with a...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 1:10 pm
Haritha Kodali (3/4/2008)
CREATE view "MAGICSSHD"."Incident" ...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 11:59 am
Heh... how well I know... been there and done that! The "R" in "CPR" stands for "REPLACE" and I frequently forget to do just that... 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 11:37 am
Please... take just a minute and at least add some carriage returns to your code...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 4, 2008 at 11:22 am
Viewing 15 posts - 52,171 through 52,185 (of 59,102 total)