Viewing 15 posts - 136 through 150 (of 304 total)
GilaMonster (1/24/2009)
I find it amusing that people do that to me, even with a photo and my real name in the sig.
I guess that's because Gail is used both as...
January 24, 2009 at 5:07 pm
O jeez... failing memory... is it "Gloria"?
Nope, it's Goldie. 🙂 I think I'm going to change my user name.
And, thanks... that's one of the posts I was looking...
January 23, 2009 at 9:51 am
Don't know if this helps, Jeff, but I found a post from a few months back that was asking to solve this problem.
The OP did not say why he needed...
January 23, 2009 at 7:28 am
That works great. Thanks, Jacob.
I also realized that another option would be to use the built-in stored procedure sp_sproc_columns.
January 21, 2009 at 6:01 pm
GSquared (1/14/2009)
January 15, 2009 at 2:50 pm
B (1/14/2009)
I see you've solved this now but here is the answer I came up with....
declare @customerID int
set @customerID = 2
SELECT * FROM @Categories where CustomerID =@customerID
union all
SELECT *...
January 14, 2009 at 2:36 pm
GSquared (1/14/2009)
Otherwise, you're likely to end up with two or more descriptions for the same...
January 14, 2009 at 2:31 pm
Solved it! Thanks to some help from a co-worker.
DECLARE @Results TABLE
(
CategoryID INT
,Description VARCHAR(20)
)
INSERT INTO @Results
SELECT CategoryID, Description
FROM @Categories
WHERE CustomerID IS NULL
UPDATE R
SET R.Description = C.Description
FROM @Results R
JOIN @Categories C ON...
January 14, 2009 at 1:05 pm
Yes, it would be ideal to do the conversion in the front end application. But sometimes you do need to do the conversion in the database.
January 2, 2009 at 9:26 am
I also forgot to mention that it is easier & faster to do this in code instead of SQL.
I would recommend doing that if at all possible.
January 2, 2009 at 9:19 am
I agree that times should be stored as UTC in the database.
However, usually the user wants to see dates/times in their own time zone.
January 2, 2009 at 9:15 am
The only way to do this is to store the daylight savings information per region in the database.
Then you can write functions to calculate time change.
The Code Project has an...
January 2, 2009 at 5:49 am
r.hensbergen (12/16/2008)
Lynn, you're too nice!
I agree! WAY too nice.
December 16, 2008 at 2:35 pm
Jeff Moden (12/10/2008)
I already did such a comparison in Part 1 of this series, Goldie. 😉 Of course, I don't mind if someone else does a head-to-head comparison.
Jeff, in...
December 10, 2008 at 5:49 pm
Madhivanan (12/10/2008)
Nice Article JeffHere is mine
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/08/27/dynamic-pivot-in-sql-server-2005.aspx
:hehe: I was waiting for you to respond to this one. :hehe:
Jeff says he thinks his way is going to end up faster than yours.
It...
December 10, 2008 at 8:12 am
Viewing 15 posts - 136 through 150 (of 304 total)