Viewing 15 posts - 6,751 through 6,765 (of 8,760 total)
The slowness of this website has gotten a lot worse for the past few days, hardly workable as it is. I'm not going to speculate on the causes but the...
October 18, 2014 at 1:28 pm
Quick note, SQL Server does correctly encode all characters that need encoding, consider this example
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @SAMPLE_SIZE INT = 15;
;WITH T(N) AS (SELECT N FROM (VALUES (NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL)) AS...
October 18, 2014 at 10:50 am
Here is a quick and simple window function solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH BASE_DATA(Heat_Index,HeatNo,Frame,Window) AS
(SELECT * FROM
(VALUES
...
October 18, 2014 at 10:37 am
Quick window function solution, should be self explanatory
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID('dbo.qamt') IS NOT NULL DROP TABLE dbo.qamt;
CREATE TABLE qamt(id INT, amt INT);
IF OBJECT_ID('dbo.qtot') IS NOT NULL DROP TABLE dbo.qtot;
CREATE...
October 18, 2014 at 9:52 am
Linked server should be fine, even an SSIS packet on a schedule would probably do fine, all depends on the frequency required, transactional replication is probably an overkill in...
October 18, 2014 at 5:58 am
October 18, 2014 at 4:47 am
What do you see in the Windows Event Log?
😎
October 18, 2014 at 4:23 am
Quick runnable demonstration on the flexibility of FOR XML PATH
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH BASE_DATA(BD_ID,BD_VAL) AS
(SELECT * FROM (VALUES
(1,'ABC')
...
October 18, 2014 at 4:19 am
Quick thought, in command prompt run "net start", the sql server instance will show up in the output if running, if not, start the instance.
😎
October 18, 2014 at 3:42 am
clayman (10/17/2014)
The reason why I split the string is that I want to order the Ids, eg.
DECLARE @INPUT_STR VARCHAR(50) = '101,102,103,108';
will be the same as
DECLARE @INPUT_STR VARCHAR(50) = '103,102,101,108';
I...
October 18, 2014 at 3:11 am
Quick suggestion, create a view with compliant names, i.e. replace spaces with underscores, then specify the proper field name in the report. There is a three year old Connect entry...
October 18, 2014 at 1:38 am
jonen (10/3/2014)
October 18, 2014 at 1:27 am
Quick suggestion, try two separate queries, one for each email table and combine the results using union all.
😎
October 17, 2014 at 2:17 pm
clayman (10/17/2014)
Excellent, thank you.
You are very welcome. Out of curiosity, what do you use for splitting the incoming parameters?
😎
October 17, 2014 at 1:42 pm
Quick suggestions since Id's can be shared by Categories
😎
USE tempdb;
GO
DECLARE @t TABLE (Id INT)
INSERT INTO @t
SELECT 108 UNION ALL
SELECT 102 UNION ALL
SELECT 103 UNION ALL
SELECT 101;
DECLARE @t2 TABLE (CategoryId INT,...
October 17, 2014 at 11:56 am
Viewing 15 posts - 6,751 through 6,765 (of 8,760 total)