Viewing 12 posts - 1 through 12 (of 12 total)
that sp destroys all my table permissions, looking into others...
September 21, 2009 at 10:51 am
Looks like that will work, but I need to have it select all the situations where the owner id PRODCTL. The SP's syntax is: sp_changeobjectowner [ @objname = ]...
September 21, 2009 at 10:36 am
Found the problem, thanks for the guidance Steve. it was my original join, trying to join on illitm instead of ilitm. Those are both valid fields, but ilitm...
August 27, 2009 at 5:57 pm
it is the join fields, just tried a select and join to the temp table without update... got the original error. experimenting...
August 27, 2009 at 5:12 pm
I changed my original line to cast as a float...
select illitm,ilmcu,illocn,cast(sum(iltrqt) as float) as TotalSold into #SoldTable from proddta.f4111
then ran this...
select illitm, cast(TotalSold as float) from #SoldTable
with no errors.
:crazy:
August 27, 2009 at 5:05 pm
I queried the temp table and sorted by the TotalSold column, found nothing but integers.
Could this error pertain to the join fields, or is it just for the...
August 27, 2009 at 4:14 pm
Thanks for the help guys - sorry about the original message - I was really just trying to be funny but I have nothing but respect for you all. ...
June 26, 2009 at 9:35 am
I've settled on the following, which I've set to run each morning. Right now, I just get the email and glance at it to make sure the datediff is...
June 25, 2009 at 5:24 pm
Sorry, I was able to figure out the tough part for myself, too quick to ask for help.
select
DATEDIFF(day,max(startedon), GETDATE()) AS NumberOfDays
from dbo.table
June 25, 2009 at 4:35 pm
Looks like CAST will do the trick - thanks!
June 5, 2009 at 9:05 am
I thought that might be it, so I simplified it to:
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'NTSVR1 Mail',
@recipients = 'joe@web.com',
@query =...
May 15, 2009 at 2:14 pm
Viewing 12 posts - 1 through 12 (of 12 total)