Viewing 15 posts - 16 through 30 (of 38 total)
One thing that may speed it up is the following:
When possible, use isnull rather than the case statement.
According to the execution plan, it is twice as fast.
ie.
replace this:
CASE WHEN @Country...
July 17, 2003 at 9:51 am
Actually I didn't express that correctly... I would return the 70 million rows into a new table and eventually run some aggregating queries on that.
June 24, 2003 at 11:23 am
The results are in:
quote:
WTF is a SARG?
That's a searchable argument I think... when you look...
June 19, 2003 at 8:48 am
Here's a somewhat related question:
These two tables have the exact same data (approximately 10 million rows):
create table tImpression1 (userId numeric, time datetime, col1 int, col2 int, col3 int)
create table tImpression2...
June 18, 2003 at 9:47 am
I've never done it before but the first idea that comes to mind is as follows:
create table tHyperlinkedTerms (hyperLinkedTermsId int IDENTITY, keyword varchar(100), description varchar(4000))
create table tGlossary (glossaryId int IDENTITY,...
June 16, 2003 at 10:44 am
Did you remember to specify the output parameter as an output?:
exec proc_name @output_Param = @localVar OUTPUT
This works on sql2000.... I don't know about 7.0
drop table t1
drop table t2
drop procedure usp_test
GO
create...
June 12, 2003 at 3:46 pm
ok I think that I get you now...
join a table to itself on address and companyID
and delete rows where response is a 4 for one and a 1 for the...
June 12, 2003 at 3:33 pm
update tblStreetData
set streetName =
case when substring(a.streetName,1,2) = 'N ' then substring(a.streetName,3,len(a.streetName)-2)
when substring(a.streetName,1,2) = 'S ' then substring(a.streetName,3,len(a.streetName)-2)
when substring(a.streetName,1,2) = 'E ' then substring(a.streetName,3,len(a.streetName)-2)
when substring(a.streetName,1,2) = 'W ' then substring(a.streetName,3,len(a.streetName)-2)
else streetName
end
from...
June 12, 2003 at 3:20 pm
I think that it may be more of a data storage problem than a query problem...
Here's another idea...I should have two tables with a 1 to 1 relationship (on id):
create...
June 12, 2003 at 1:18 pm
I think that this might work:
DELETE #CL_FINAL
FROM #CL_FINAL
where CorrectResponseID = 1 or CorrectResponseID = 4
Here is how I would delete based on joins to other tables:
DELETE #CL_FINAL
FROM #CL_FINAL
join #anotherTable on...
June 12, 2003 at 9:52 am
This is a utility that I use to help with dates.
Basically I create a temp table...
create table #dateBuilder (date datetime, monthID int, month varchar(25),...
Then insert into the temp table:
insert into...
June 11, 2003 at 2:56 pm
Thanks very much for all the replies.
As per bertovich's suggestion, I think that I'm going to work towards storing each days data in a separate table and use a partitioned...
June 9, 2003 at 10:50 am
Great tip... but I'm a little confused. Did that just show me what was previously already set, or did that set the environment variables for the user accessing dos from...
March 4, 2003 at 12:07 pm
I didn't set the proxy account, but I'm not sure that it would be necessary since the account that runs the procedure already has system administrator priviledges.
-J
February 27, 2003 at 8:27 am
A little more tinkering around and I found out some useful info:
The following works from the command prompt but will not work from xp_cmdshell:
perl e:\path\to\perlfile\importExcel.pl
perl.exe e:\path\to\perlfile\importExcel.pl
The following works from the...
February 25, 2003 at 4:51 pm
Viewing 15 posts - 16 through 30 (of 38 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