Viewing 15 posts - 57,016 through 57,030 (of 59,070 total)
CSDunn,
You can either use the forumla in the following in a UDF or directly...
SELECT DATEADD(yy,[Last Sale Date]/1000-1900,[Last Sale Date]-([Last Sale Date]/1000*1000)-1) AS [Last Sale Date] FROM dbo.tblPaymHistCurrentWeek
January 25, 2007 at 8:17 pm
A view that looks like the following would certainly do it (untested)...
SELECT d.FirstName = MIN(CASE WHEN d.PropertyName = 'FirstName' THEN d.PropertyValue ELSE '' END),
d.LastName = MIN(CASE WHEN d.PropertyName...
January 25, 2007 at 7:29 pm
Wayne,
Whether I agree with the premise of using WITH (NOLOCK) or not, your post did what all good posts are supposed to do... spark pro/con conversation.
Thought I'd reward you...
January 25, 2007 at 8:29 am
Tony Rogerson's blog he has code which demonstrates this. http://sqlblogcasts.com/blogs/tonyrogerson/archive/2006/11/16/1345.aspx |
That code, once you actually get the data...
January 25, 2007 at 7:18 am
James,
Would you mind posting both versions? I'd like to do a little testing to see what's up... thanks.
January 23, 2007 at 4:41 pm
Ramesh,
Thanks for the feedback...
Unless your payroll process has hierarchical payments such as those found in an MLM, I'm pretty sure that we can help you figure out a way to...
January 23, 2007 at 7:19 am
Heh... ya... hence the need for the article. Thanks for the reminder ![]()
January 22, 2007 at 10:23 pm
Its a bit difficult... I have a hard time thinking in a non-set based fashion when trying to write the cursor examples ![]()
January 22, 2007 at 5:51 pm
Then you need to use something like what DC Clark posted based on a date column...
January 22, 2007 at 4:58 pm
Thanks for the feedback, Gova... much appreciated.
January 22, 2007 at 4:55 pm
What does an SP do that needs to execute "at least 200+" times per user?
January 21, 2007 at 9:19 pm
Not listed? It's listed as "Set Option Changed in Batch" and "Set Option Changed". And they kinda tell you how to build a test... create a proc with theoption you want...
January 21, 2007 at 9:11 pm
One of the other problems with Cursors AND While-Loops is the number of resources (mostly cpu time) they use when compared to properly written setbased code... the following example code is...
January 21, 2007 at 2:59 pm
Shoot... didn't mean to make it sound like I took it any other way... guess I need to use more smiley faces ![]()
January 21, 2007 at 9:06 am
Viewing 15 posts - 57,016 through 57,030 (of 59,070 total)