Viewing 15 posts - 4,366 through 4,380 (of 8,731 total)
Have you considered changing your splitter function to a faster one?
Here's probably the fastest available: http://www.sqlservercentral.com/articles/Tally+Table/72993/
August 19, 2015 at 8:10 am
aziznet (8/19/2015)
I need to calculate with SQL the average duration...
August 19, 2015 at 8:07 am
BL0B_EATER (8/19/2015)
Ed Wagner (8/19/2015)
BL0B_EATER (8/19/2015)
crookj (8/19/2015)
Ed Wagner (8/19/2015)
Ed Wagner (8/19/2015)
djj (8/19/2015)
Eirikur Eiriksson (8/18/2015)
DonlSimpson (8/18/2015)
BearingGrease
Seal
Approval
Process
Procedure
medical
Costs
cash
Johnny
August 19, 2015 at 8:01 am
People seem to be forgetting the aggregation. I hope that you're doing this to move out of this horrible design that will only create headaches.
SELECT AttribName,
CASE...
August 19, 2015 at 7:53 am
TheSQLGuru (8/18/2015)
Ken at work (8/18/2015)
TheSQLGuru (8/18/2015)
assuming both datatypes ARE real, cast the hard-coded values in the isnulls to the same datatpye - not the result of the isnull.
I'm not sure...
August 19, 2015 at 7:35 am
aldous.chris (8/19/2015)
As expected, I received the following error: 'Conversion failed when converting date and/or time from character string.'
As mentioned, the format YYYYMMDD will automatically convert to datetime without the need...
August 19, 2015 at 7:22 am
This was the option that I mentioned yesterday, but I had to get out of the office and couldn't post it.
It will replace any number of instances and has the...
August 19, 2015 at 7:06 am
SQL Server doesn't allow user defined functions with variable parameters. All the parameters must be included every single time. There could be an option if you would take 2 strings,...
August 18, 2015 at 12:51 pm
Here's one with the same functionality but as an inline table valued function.
CREATE FUNCTION dbo.iDateSerial
(
@year int ,
@month int ,
@day int
)
RETURNS TABLE
AS
RETURN
...
August 18, 2015 at 12:42 pm
Eric M Russell (8/18/2015)
Jeff Moden (8/18/2015)
Alan.B (8/17/2015)
Jeff Moden (8/14/2015)
Alan.B (8/14/2015)
BobAtDBS (8/14/2015)
August 18, 2015 at 8:00 am
If you ask me, I would rewrite the query like this even if it's not exactly what you have right now:
SELECT TE.JobID,
TotalDistanceTravelled as Distance,--convert(varchar(30),TotalFare) as TotalFare,...
August 18, 2015 at 7:08 am
I hope that you're not using the triangular joins methods as they're very slow. If you want to know the reason, it's explained in here: http://www.sqlservercentral.com/articles/T-SQL/61539/
For the cursor option, you...
August 17, 2015 at 2:29 pm
whereisSQL? (8/17/2015)
Eirikur Eiriksson (8/17/2015)
Ed Wagner (8/17/2015)
eccentricDBA (8/17/2015)
whereisSQL? (8/17/2015)
DonlSimpson (8/17/2015)
OptimizerCost-based
low-cost provider strategy
Low Quality
WYPIWYG
Consultant
Contractor
August 17, 2015 at 1:40 pm
In 2012+ versions, you can use the OVER() clause for this.
In 2008 and previous versions, there are different methods which are fully explained in here along with a performance comparison:
August 17, 2015 at 1:38 pm
The amazing part is that this same poster was in charge of a 2005 to 2012 migration. :w00t:
August 17, 2015 at 11:25 am
Viewing 15 posts - 4,366 through 4,380 (of 8,731 total)