Viewing 15 posts - 8,071 through 8,085 (of 8,753 total)
Another version, similar to Ed's, this one uses CTEs to construct the ranges.
😎
USE tempdb;
GO
DECLARE @num AS TABLE (
Id INT IDENTITY(1, 1)
,Price MONEY
)
DECLARE @range AS TABLE (
Id INT IDENTITY(1, 1)
,Rng MONEY
)
INSERT...
June 6, 2014 at 11:30 pm
g.britton (6/6/2014)
Eirikur Eiriksson (6/6/2014)
Koen Verbeeck (6/6/2014)
gbritton1 (6/6/2014)
Koen Verbeeck (6/6/2014)
TomThomson (6/6/2014)
Just a couple of examples: A British colleague who held an A-level in math and a bachelor's in business swore...
June 6, 2014 at 12:19 pm
SQLTougherGuy (6/6/2014)
I am about to embark on a massive migration from SQL 2005 - 2008 R2. We have 200+ SSIS packages that were deployed as a file system on the...
June 6, 2014 at 12:11 pm
TomThomson (6/6/2014)
Koen Verbeeck (6/6/2014)
TomThomson (6/6/2014)
Just a couple of examples: A British colleague who held an A-level in math and a bachelor's in business swore you could, in fact, divide...
June 6, 2014 at 12:05 pm
Thank you for this filler Jeff, good read as always, and amazing thread! Only ran your initial code, any thoughts on how to eliminate the second scan?
😎
June 6, 2014 at 11:51 am
Koen Verbeeck (6/6/2014)
gbritton1 (6/6/2014)
Koen Verbeeck (6/6/2014)
TomThomson (6/6/2014)
Just a couple of examples: A British colleague who held an A-level in math and a bachelor's in business swore you could, in...
June 6, 2014 at 11:46 am
The Dixie Flatline (6/6/2014)
Eirikur Eiriksson (6/6/2014)
The Dixie Flatline (6/6/2014)
That will work but it's pricey in performance compared to just adding the column.
Agree on the costly part but exactly the same...
June 6, 2014 at 11:39 am
The Dixie Flatline (6/6/2014)
That will work but it's pricey in performance compared to just adding the column.
Agree on the costly part but exactly the same work then would be needed...
June 6, 2014 at 9:31 am
This is straight forward, the main pitfall is that the node value must either be typed (XSD) or referenced with text().
😎
USE tempdb;
GO
/* Create a table (variable) */
DECLARE @XMLUPDATE TABLE
(
...
June 5, 2014 at 11:16 pm
dirk.dromgoole (5/20/2014)
June 5, 2014 at 10:34 pm
An even simpler solution is to grab the output into a table variable which then can be used to get the old-new values for the identity map table.
😎
DECLARE @INSVAL TABLE
...
June 5, 2014 at 8:16 pm
This should get you started, notice I changed the data type of the monetary value, float is not the appropriate type!
😎
USE tempdb;
GO
create table #prova
( Valuta varchar(2),
Misura DECIMAL(18,5)
)
insert into #prova values...
June 5, 2014 at 7:26 pm
Luis Cazares (6/5/2014)
thomashohner (6/5/2014)
But how would you alias those continents?:hehe::hehe:***Just Kidding
I could alias them and join them. 😀
SELECT *
FROM NorthAmerica na
JOIN SouthAmerica sa ON na.PanamaSouthBorder = sa.ColombiaNorthBorder
JOIN Europe ...
June 5, 2014 at 6:42 pm
scotteb (6/4/2014)
June 5, 2014 at 1:43 am
ramana3327 (6/5/2014)
I am still new to the SQL Server. So I want to know all your experiences.
If you want send a report that the SP is taking this time and...
June 5, 2014 at 1:11 am
Viewing 15 posts - 8,071 through 8,085 (of 8,753 total)