Viewing 15 posts - 586 through 600 (of 3,011 total)
This is a simpler way to find the last day of the same month last year, if that is what you are after.
declare @MyDate datetime
set @MyDate = '2/28/2009'
select LastDay...
May 30, 2012 at 9:22 am
Lynn Pettis (5/24/2012)
Cadavre (5/24/2012)
WITH t1 AS (SELECT 1 N UNION ALL SELECT 1 N),
t2...
May 24, 2012 at 4:16 pm
Yes. Index maintenance is just like any other transaction, so it is logged and gets applied to the target.
May 17, 2012 at 7:46 am
riya_dave (5/16/2012)
thanks,it worked in sql.but nit in ssrs expression.
any idea?
You should ask Reporting Services questions in the Reporting Services forum, instead of a TSQL forum.
May 16, 2012 at 10:09 pm
ColdCoffee (5/16/2012)
This?
declare @date date = '02/29/12'
select dateadd(DD, -1, dateadd(YY,datediff(yy,0,@date),0))
This also works with one less function call.
select dateadd(yy,datediff(yy,-1,@date),-1)
May 16, 2012 at 10:08 pm
I had an interesting experience recently where I was being interviewed by someone without the technical experience to be able to evaluate my skills at a company where I would...
May 15, 2012 at 8:17 pm
chandan_jha18 (5/15/2012)
I had a procedure where there was a condition in where clause:
where ISNULL(d.[RejectReason], 0) IN (240,241,300,301)
The column RejectReason is int,null.
After going through several posts in this forum, I started...
May 15, 2012 at 10:08 am
Jeff Moden (5/12/2012)
Elliott Whitlow (5/12/2012)
May 15, 2012 at 7:46 am
If those are the only ways you access the table, then a clustered index on col2, col1 would cover all your lookups with no need for additional indexes.
However, I would...
May 2, 2012 at 10:54 am
Matt Miller (#4) (4/25/2012)
Michael Valentine Jones (4/24/2012)
April 25, 2012 at 12:55 pm
I would think that venting the waste heat into a cluster of greenhouses would make a lot of sense. Grow expensive flowers or vegetables in places where they would...
April 24, 2012 at 9:18 pm
Abrar Ahmad_ (4/24/2012)
We do have a new pragmatic software with the front-end technologies as N/Hibernate etc. The team has devised a manual sequence/identity mechanism (physical tables with next...
April 24, 2012 at 8:59 pm
I would just point out that Facebook's terms of use state the following:
"...
You will not solicit login information or access an account belonging to someone else.
...
You will not share your...
April 23, 2012 at 12:41 pm
Here is how to do it in your T-SQL query.
select
a.MyNum,
ZeroFilled =
case when a.MyNum < 0 then '-' else ' ' end+
right('00000000'+convert(varchar(11),abs(a.MyNum)),11),
SpaceFilled =
right(' ...
April 16, 2012 at 8:13 am
GilaMonster (4/5/2012)
george sibbald (4/5/2012)
where I have added a clustered index to a heap I have achieved a...
April 5, 2012 at 7:11 pm
Viewing 15 posts - 586 through 600 (of 3,011 total)