Viewing 3 posts - 16 through 18 (of 18 total)
Regarding your initial question. The length of the @cmd variable may be too short to accept all the dynamic text you are trying to insert. In this case, it would...
July 30, 2008 at 5:40 pm
#850929
Here is another option that could be used:
where isnull(Message,'') > ''
July 25, 2008 at 8:33 am
#848428
Here are two more options, one returning an integer value.
declare @date datetime
select @date = '01/01/2008'
select year(@date) * 100 + datepart(week,@date)
select convert(varchar,year(@date) * 100 + datepart(week,@date))
May 15, 2008 at 8:46 am
#815928