Viewing 15 posts - 8,161 through 8,175 (of 8,753 total)
A semi-dynamic query is straight forward
😎
USE tempdb;
GO
--CREATE TEST DATA
IF OBJECT_ID('tempdb..#PivotTestTable') IS NOT NULL DROP TABLE #PivotTestTable
CREATE TABLE #PivotTestTable
(
[SURVEY_REF] [nvarchar](100) NOT NULL
,[QUESTION] [nvarchar](MAX) NULL
,[ANSWER] [nvarchar](100) NULL
,[DATE_REC] [nvarchar](10) NULL
,[TIME_REC] [nvarchar](10) NULL
)
INSERT...
May 27, 2014 at 11:04 pm
prepaess (5/27/2014)
hi all please who can help me to solve this errorthis is the snapshot
It is a connection manager error, by the looks of it, it cannot locate...
May 27, 2014 at 10:18 pm
autoexcrement (5/27/2014)
Is there any way to...
May 27, 2014 at 10:13 pm
mickyT (5/27/2014)
I've had a look at a few options and for the data the I'm testing on, this appears to be the best solution (for SQL 2012 +). It...
May 27, 2014 at 1:38 pm
Johnny H (5/27/2014)
DECLARE @sign...
May 27, 2014 at 10:00 am
Roust_m (5/27/2014)
The server timezone is (UTC-06:00) Central Time (US...
May 27, 2014 at 2:06 am
May 27, 2014 at 1:35 am
Roust_m (5/27/2014)
Eirikur Eiriksson (5/26/2014)
Roust_m (5/26/2014)
To deal with clock moves.Bear with me here, but why not do this in TSQL as a set based operation?
Can you please elaborate on this?...
May 27, 2014 at 12:39 am
Roust_m (5/26/2014)
To deal with clock moves.
Bear with me here, but why not do this in TSQL as a set based operation?
CLR is precompiled code.
This is true (the CLR are...
May 26, 2014 at 11:40 pm
Roust_m (5/26/2014)
I have a query, which eats massive amounts of CPU because of a CLR function, which deals with local time (our server system time (US) is different from local...
May 26, 2014 at 11:00 pm
This should get you started
😎
/* convert geometry to geography */
DECLARE @GEO1 GEOMETRY = geometry::STGeomFromText('POINT (-122.358 47.652)',0);
DECLARE @GEOG GEOGRAPHY = geography::Point(@GEO1.STY, @GEO1.STX, 4326)
/* Geography shape/poligon */
DECLARE @g geography = geography::STMPolyFromText('MULTIPOLYGON(((-122.358...
May 26, 2014 at 10:06 pm
Jeff Moden (5/25/2014)
Eirikur Eiriksson (5/24/2014)
May 25, 2014 at 3:38 am
Must say that I'm slightly puzzled. I have read my post over and over but I cannot find neither any implicit nor explicit suggestions of ignoring good coding or working...
May 24, 2014 at 1:31 pm
There is a wealth of technology options to help you out on this, the pitfall is to choose one before the requirements are carved in stone! A handful of million...
May 23, 2014 at 12:27 pm
Viewing 15 posts - 8,161 through 8,175 (of 8,753 total)