Viewing 15 posts - 4,816 through 4,830 (of 9,643 total)
Ian Scarlett (7/2/2009)
I would say yes, because in the first query you are only reading one table, but in the second you are reading 2 tables.
Err, Jack, isn't
SELECT A.*
FROM...
July 2, 2009 at 11:59 am
Well, it depends.
Can you modify the table structure to include the calculated column?
Are the values in conditionvariables changing?
The beauty of Lowell's solution is that, if the...
July 2, 2009 at 10:29 am
GilaMonster (7/2/2009)
http://www.sqlservercentral.com/Forums/Topic746075-360-1.aspx
Converting the while to a select off a (large) tally table's the easy part. The no duplicate values and exact number of...
July 2, 2009 at 9:42 am
Dave Ballantyne (7/2/2009)
Try to isolated the issue , what is performance like if you make it a sequential count ?
Also i...
July 2, 2009 at 9:40 am
Lowell (7/2/2009)
doh i did not know using SSIS was a requirement....sorry...
Nice solution though Lowell, and probably better than doing it using SSIS. I really like the concept of doing...
July 2, 2009 at 9:26 am
Okay, then if you have to use SSIS I'd use an Execute SQL Task with code like this:
-- create test table variables
DECLARE @stats TABLE (location VARCHAR(25), DATE DATETIME, a_temp FLOAT,...
July 2, 2009 at 9:19 am
Are these tables in the same database?
July 2, 2009 at 8:52 am
Just to provide an example check out this code in AdventureWorks:
SET STATISTICS IO ON
SET STATISTICS TIME ON
SELECT
SalesOrderDetailID
FROM
Sales.SalesOrderDetail AS...
July 2, 2009 at 8:50 am
I would say yes, because in the first query you are only reading one table, but in the second you are reading 2 tables. On small tables it may...
July 2, 2009 at 8:39 am
You might be best serverd by adding a computed column to the table that contains the number of seconds (milliseconds if you need this fine a granularity) and then using...
July 2, 2009 at 8:28 am
As David has said there isn't a simple answer. The Optimizer checks the conditions and then makes a best guess as to what access path will be the best,...
July 2, 2009 at 8:17 am
Whenever I recommend using sp_MSForEachTable I always include a link to this article which explains the parameters of the procedure and how it works.
I would script out all my procedures,...
July 2, 2009 at 8:10 am
Lynn Pettis (7/1/2009)
I need you to give me a script that will automagically determine what records to delete from unspecified tables.I mean really, you want fries with that too?
I had...
July 1, 2009 at 2:48 pm
All you need to do is change the owner of the app_views schema to dbo. Then the SQL Server will use ownership chaining to allow access to the base...
July 1, 2009 at 1:07 pm
Yes, the fact that all the tables are on the linked server would support creating a stored procedure on that server.
July 1, 2009 at 11:18 am
Viewing 15 posts - 4,816 through 4,830 (of 9,643 total)