Viewing 15 posts - 211 through 225 (of 236 total)
Please define "calendar format".
If you're using the date in a query, you'll want it to remain a DATETIME field unless the dates in your table are in some weird format.
--J
May 25, 2010 at 12:20 pm
iklektic (5/25/2010)
I need your help! I'm trying to create a report that is going to list out the customer ID of all those clients that meet a very...
May 25, 2010 at 12:13 pm
I had to do this very recently (last few days), and I ended up creating the stored procedure as a CLR. I wasn't sure how I felt about it...
May 25, 2010 at 11:58 am
Is it returning NULL instead? You could:
SET @lastQuartRewardState = ISNULL(@lastQuartRewardState, 'Absent')
... at the very end.
May 19, 2010 at 10:06 am
Also, you are erroneously using the table alias "et", without actually declaring it. You need to do one of the following:
1. Declare et: "FROM earned_transaction AS et"
2. Use...
May 19, 2010 at 9:56 am
Which line is the error on? You should have two END statements, one to match the BEGIN, and another to match the CASE. I don't see the second...
May 19, 2010 at 9:50 am
Because your stored procedure returns a single value instead of a rowset, I recommend using a FUNCTION rather than a PROCEDURE. Functions allow you a little more flexibility (like...
May 19, 2010 at 9:28 am
Pat,
SELECT and SET do not belong together.
SET allows you to do simple operations with variables
SET @date = GETDATE()
SET @int = 1
SELECT allows you to set variables from data in a...
May 19, 2010 at 9:20 am
You can set a BIT field to 2, but it will resolve to 1.
DECLARE @bit BIT
SET @bit = 2
SELECT @bit
Returns 1.
Instead:
SET @isLockOutPeriod = CASE
WHEN CAST(@currentDate AS...
May 19, 2010 at 8:57 am
pattamuthu (5/19/2010)
May 19, 2010 at 8:22 am
SET @theDate = GETDATE()
May 19, 2010 at 8:10 am
bagofbirds-767347 (4/22/2010)
April 22, 2010 at 12:28 pm
It's also worth noting that I have never handed over a project that wasn't paid for. I accept a deposit, do the work, demo it from a development server,...
April 21, 2010 at 3:26 pm
I'd be concerned about being paid yourself. If they're willing to screw a company, what are the going to do to a solitary consultant? I'm not sure if...
April 21, 2010 at 3:18 pm
hein-1120388 (4/20/2010)
I'll have to look at the firewall route for blocking the ranges, but then some clients connect from anywhere in the...
April 20, 2010 at 1:40 pm
Viewing 15 posts - 211 through 225 (of 236 total)