Viewing 10 posts - 1 through 10 (of 10 total)
Yes, try it in the sql you pass into the proc. I use this to mail out two tables--I don't seem to recall this limitation...
June 18, 2010 at 10:43 am
Rookie>>
I am not sure about this. My idea would be that you need to have read/write/create/drop permissions to the tempdb. I would start by googling that?
February 8, 2010 at 4:08 pm
I modified the HTML generating portion of the code to handle column names with spaces and numbers, and also column values with numeric values that might also have null values....
February 2, 2010 at 5:20 pm
Unless you need to search based on the computed column. Then I would recommend a trigger or an indexed view, depending on how often that table is updated.
July 8, 2009 at 3:18 pm
You know, I get tripped up here a lot.
Say that you have departments which have budget codes for every budget type reassigned every budget year. You want...
July 8, 2009 at 3:09 pm
are emp1 and emp2 separate tables?
Otherwise,
Select t.id,
count(*) as EmpCt
from TABLE t
group by t.id
July 7, 2009 at 1:48 pm
Yeah, I noticed that it wasn't the most efficient SQL I've seen. 🙂 Thanks for the info.
July 7, 2009 at 11:46 am
Sentence case with objects treated as proper nouns and any prefixes denoting styles in lower case.
Select wi.WidgetID,
wi.WidgetName
from dbo.WidgetInventory wi
where wi.WidgetID =...
July 7, 2009 at 11:35 am
I found this a while back. I'm sure you can google the coder's name and see what terms it's released under.
CREATE FUNCTION [dbo].[fn_SplitAndRemovePunctuation](@s VARCHAR(8000))
returns @out TABLE (wrd ...
July 6, 2009 at 6:20 pm
My .02:
I prefer option B
1. It's readable. The aliases don't get into the way of the column, which is what I'm really interested in in the Select.
2. I know...
May 7, 2009 at 9:46 am
Viewing 10 posts - 1 through 10 (of 10 total)