Viewing 15 posts - 51,811 through 51,825 (of 59,072 total)
The real users will show up at your desk in a panic... have the porkchops ready... 😀
March 13, 2008 at 9:46 am
Folks, just to be clear, you might be able to create a permanent view on the fly and drop it at the end of the proc, but there is no...
March 13, 2008 at 9:43 am
John Mitchell (3/13/2008)
Jeff Moden (3/13/2008)
March 13, 2008 at 9:38 am
Matt Miller (3/13/2008)
the process requiring that space would have aborted.
That would also make it easier to find... dummy that did it would scream out loud 😀
March 13, 2008 at 8:09 am
... or, you can just use the power of UNION...
SELECT customer1
from yourtable
where customer1 like 'sm%' UNION
SELECT customer2
from yourtable
where customer2 like 'sm%' UNION
SELECT customer3
from yourtable
where customer3 like 'sm%'
Real key...
March 13, 2008 at 8:05 am
Lynn Pettis (3/13/2008)
Again, the cost is relative to the batch its self, and it is quite possible that the cost of the query (relative to the batch) is higher.
I've found...
March 13, 2008 at 8:01 am
Matt Miller (3/12/2008)
Jeff Moden (3/10/2008)
March 13, 2008 at 7:58 am
Yes... same problem as with Global Temp Tables... if same job runs more than once, BOOM on table creation or YECH on what happens to the data because more than...
March 13, 2008 at 7:54 am
Do a Google search for sp_MSForEachTable...
March 13, 2008 at 7:39 am
Jack Corbett (3/13/2008)
Nice article. I like the fact that is clearly takes you from start to finish and offers a solution to a commonly encountered problem.
Agreed... and test data...
March 13, 2008 at 7:35 am
I have sp2 installed and I noticed the same thing an a good number of queries that end up using a loop join...
I've never trusted % if batch, anyway......
March 13, 2008 at 7:31 am
Wouldn't OUTPUT return the same data type as whatever column or variable appeared in the stored procedure?
March 13, 2008 at 7:25 am
While it's true that there is some trickery you can perform to "Tune the hardware" and "Tune the database" and you can throw indexes at tables to make some queries...
March 13, 2008 at 7:12 am
No... no way to create a temp view. Creating a TempTable to hold what the TempView would have contained is the next best thing and pretty darned fast to...
March 13, 2008 at 7:00 am
Heh... LOL. I guess using TOP to overcome a double triangular join will do. 😀 I'll add it to my list of paging methods to test for...
March 13, 2008 at 6:43 am
Viewing 15 posts - 51,811 through 51,825 (of 59,072 total)