Viewing 15 posts - 6,466 through 6,480 (of 8,753 total)
DonlSimpson (12/8/2014)
It seems like you might want to consider doing this with a reporting tool rather straight out of sql server.
+1
😎
December 8, 2014 at 1:06 pm
Window function version of Alvin's code
😎
SELECT
State
,ZipCode
,Count(Account) OVER
(
PARTITION...
December 8, 2014 at 8:37 am
Quick solution, counts the spaces after "cleaning" to determin whether there is a format present
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH BASE_CLEANING AS
(
SELECT
...
December 8, 2014 at 3:41 am
Quick thought, on a 32 bit version of SQL Server there are severe restrictions not applicable to the 64bit version, even more true with 2012/2014 where the AWE support has...
December 7, 2014 at 2:21 pm
Siva Ramasamy (12/6/2014)
Thanks for your interest in my question.
I have recently inherited the administration responsibilities of a production database (SQL 2012) (around 350GB).
It only had one...
December 7, 2014 at 2:18 pm
The first thought on this problem is not the addition of a column but the design itself, which prompts questions on the role of the table, the practice of adding...
December 7, 2014 at 2:13 pm
BTW the 2014 cardinality estimator goes on a hike on this one, with only handful of rows in the set it estimates 16.4317 rows for both queries, in fact the...
December 7, 2014 at 2:00 pm
Eirikur Eiriksson (12/7/2014)
Quick suggestion😎
SELECTPT.idx
,PT.paymentDte
,PT.officialReceiptNo
,PT.sysReceiptNo
FROM dbo.paymentTrnx PT
WHERE (YEAR(PT.paymentDte) * 100) + MONTH(PT.paymentDte) BETWEEN 201201 AND 201203;
Bullseye...
December 7, 2014 at 1:50 pm
Tac11 (12/7/2014)
....6. Not sure can, you plz explain in details?
Good stuff, now we are getting somewhere;-)
The data/index ratio is the ratio between the raw data and the duplication of data...
December 7, 2014 at 1:07 pm
Quick suggestion
😎
SELECT
PT.idx
,PT.paymentDte
,PT.officialReceiptNo
,PT.sysReceiptNo
FROM dbo.paymentTrnx PT
WHERE (YEAR(PT.paymentDte) * 100) + MONTH(PT.paymentDte) BETWEEN 201201 AND 201203;
December 7, 2014 at 11:14 am
Tac11 (12/7/2014)
1. .mdf is 300 gb.
2. .ndf is 250 gb
3. .ndf is 75 gb
all have less than 10% space available. I read...
December 7, 2014 at 10:58 am
Here is a very simple way of constructing a html table in T-SQL with the background definition you asked for
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @HTMLSTR VARCHAR(MAX) = '';
DECLARE @SAMPLE TABLE
(
...
December 7, 2014 at 10:39 am
Here is a code snip that should help you get passed this hurdle
😎
USE tempdb;
GO
SET NOCOUNT ON;
/* Never trust the defaults 😉 */
SET DATEFORMAT 'mdy';
DECLARE @TDATE TABLE (TDSTR VARCHAR(25) NOT NULL);
INSERT...
December 7, 2014 at 7:58 am
Quick thought, sum the addition of all columns
😎
SELECT
SUM(TS.COL_001 + TS.COL_002 + TS.COL_003 + TS.COL_004 + TS.COL_005 + TS.COL_006 + TS.COL_007 + TS.COL_008 + TS.COL_009 +...
December 6, 2014 at 2:48 pm
Quick thought, use trace flags 1117 and 1118
😎
December 6, 2014 at 8:40 am
Viewing 15 posts - 6,466 through 6,480 (of 8,753 total)