Viewing 15 posts - 4,501 through 4,515 (of 8,753 total)
Jeff Moden (9/19/2015)
Eirikur Eiriksson (9/17/2015)
September 19, 2015 at 8:22 am
kevitra (9/18/2015)
select * from ourtable where contains(bigcolumn, '\\AReallyLongStringofTextHere') works fine unless there is a space in the...
September 19, 2015 at 4:47 am
stanlyn (9/18/2015)
Why are the user databases that were created in the MSSQLSERVER default instance showing up in the newly created ALPHAONE instance? I'm successfully logging into the alphaone database...
September 19, 2015 at 2:50 am
WayneS (9/18/2015)
Sean Lange (9/17/2015)
September 19, 2015 at 2:24 am
BSavoie (9/18/2015)
September 19, 2015 at 2:05 am
Quick suggestion
😎
USE tempdb;
GO
SET NOCOUNT ON
IF OBJECT_ID(N'tempdb..#temp') IS NOT NULL DROP TABLE #temp;
create table #temp (Cabstamp varchar(10), account varchar(10),document varchar(15), origin varchar(2), debit numeric(10,2), credit numeric(10,2), datalc datetime)
insert into #temp (Cabstamp,account,Document,...
September 18, 2015 at 6:01 am
tomisoft (9/18/2015)
I have a view which I'm trying to optimize.
Here's original one:
ALTER VIEW [dbo].[V_Smeny_D]
AS
SELECT s.ARBPLNR, s.DATUM, master.dbo.spt_values.number AS smena, DATEADD(hh, CASE number WHEN 1 THEN 0 WHEN 2 THEN 6...
September 18, 2015 at 5:44 am
Kristen-173977 (9/18/2015)
The front runners were neck-and-neck in Luis's script?
I've found the method I use for timing more accurate than the time statistics
😎
September 18, 2015 at 3:46 am
Using my normal test harness, Kristen's DATETIMEFROMPARTS solution is a clear winner, more than twice faster than the next one. Note that the slowest solutions and those generating conversion errors...
September 17, 2015 at 11:49 pm
Nomvula (9/17/2015)
CREATE TABLE weekdays
(
datevalue ...
September 17, 2015 at 2:55 am
anthony.green (9/17/2015)
Eirikur Eiriksson (9/16/2015)
Revenant (9/16/2015)
Ed Wagner (9/16/2015)
SQLRNNR (9/16/2015)
venomSnake
Eden
Utopia
Dystopia
Inferno
September 17, 2015 at 2:41 am
Two quick suggestions
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @SAMPLE_DATA TABLE
(
Store CHAR(1) NOT NULL
,Sales ...
September 17, 2015 at 1:47 am
Jeff Moden (9/16/2015)
Sean Lange (9/16/2015)
drew.allen (9/16/2015)
Try the FORMAT function. It was added in SQL 2012.
SELECT FORMAT(vhrgdt, '0000-00-00') + ' ' + FORMAT(vhrgtm, '00:00:00.000'), *
FROM #Something s
Drew
Thanks Drew. I don't use...
September 17, 2015 at 1:01 am
A more common scenario would be something like this, given the facts that:
a) Inserts and update are relatively inexpensive
b) Data comparison is relatively expensive
c) Good enough algorithms...
September 16, 2015 at 10:46 pm
Viewing 15 posts - 4,501 through 4,515 (of 8,753 total)