Viewing 15 posts - 61 through 75 (of 122 total)
We're running this in a stored procedure:
SELECT
myFields FROM
OPENROWSET(
'Microsoft.ACE.OLEDB.12.0','Excel 12.0;Database=\\myServer\UploadedFile\WorkLoad_Dist.xlsx', [Sheet1$])
I've also used a direct path to the file system. It works for SA, it works for a...
January 25, 2013 at 4:47 pm
How can I check the security context? There is no linked server because we;re using openrowset.
I looked at stack - I would think if it was trying to access...
January 25, 2013 at 4:29 pm
I've run this test previously with similar results. I've attached the execution plan. I removed some columns so that we're just dealing with the view in question.
Thanks! ...
January 25, 2013 at 8:55 am
Sorry, I just realized that the fast and slow executions are included in each file. Compare the top one to the bottom one. You can see in the...
January 25, 2013 at 4:33 am
That helps but still doesn't explain why the
where IN (sub select)
has such a different execution plan than
WHERE IN (constants)
What I've done to improve the performance (and I'm not really...
January 24, 2013 at 11:24 am
Well, I can see the difference. I'm interested in knowing if there's a way to improve it.
When I use a constant in my query, the data is...
January 23, 2013 at 9:22 am
Uploaded the two execution plans.
Thanks!
ST
January 23, 2013 at 9:09 am
Temp table is a heap with 1 row, 2 columns of int, int.
Looking for how to post an execution plan.
January 23, 2013 at 9:05 am
The execution plans are pretty big. I'm not sure how to post them.
I get completely different execution plans between fldValue=123 and fldValue IN (select value from tempTable). I...
January 23, 2013 at 8:59 am
I have become aware that my DISTINCT is ignored. My question is why? Is this by design? My real world data contains 100K+ records in each side...
July 26, 2010 at 5:17 am
OK, I figured it out. Strange indeed.
The purpose of the query is to determine which parts have not been used in the building of a widget.
My first derived table...
July 23, 2010 at 8:41 am
Set the default value for the new field to null.
Modify your delete trigger to only update if the new field value is null:
update myTable set myField = oldValue...
July 9, 2010 at 8:10 am
Given that the ROWCOUNT is deprecated I would suggest this solution
-- update 100 rows at a time
-- insure that you are counting rows
SET NOCOUNT OFF
while (1 = 1)
begin
UPDATE...
July 9, 2010 at 5:58 am
Another solution could be:
-- Create a table to hold your text value
create table #txt (txt text)
insert into #txt (txt) values('myy value here')
--...
July 22, 2009 at 12:43 pm
Viewing 15 posts - 61 through 75 (of 122 total)