Viewing 7 posts - 121 through 127 (of 127 total)
My knee-jerk reaction is usually to just look at the query plan; that is also what I would suggest in this case: Look at the query plan.
March 6, 2008 at 11:31 am
Another alternative might be something like:
table (id int, profileName varchar(12))
insert into @profiles
select 1, 'Joe Soap' union all
select 2, 'Jane Done' union all
select 3, 'Ben Missing'
declare @groups table
(id int, groupName varchar(12),...
March 6, 2008 at 11:14 am
Perhaps something like:
declare @tabB table (Col1 int, Col2 int)
insert into @tabB
select 1, 4 union all
select 2, 9 union all
select 3, 8 union all
select 4, 9
select * from @tabB
where col2 =...
January 10, 2008 at 12:23 pm
Very good, thank you Adam
January 10, 2008 at 8:10 am
Yes, I think that specifically WHERE EXISTS will beat EXCEPT; but as you said, it is always best to run some timings and compare the results.
January 10, 2008 at 7:57 am
Keep in mind that the EXCEPT operator will frequently be slower than other potential options. Here is a thread at MSDN that I recall from about a year ago:
January 10, 2008 at 7:40 am
I thought that if you were not using the sysadmin privilege that the windows access was defined by the proxy account designated by the sp_xp_cmdshell_proxy_account stored procedure -- or is...
January 10, 2008 at 7:21 am
Viewing 7 posts - 121 through 127 (of 127 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy