Viewing 15 posts - 586 through 600 (of 3,543 total)
GilaMonster (12/18/2014)
Entertainment for next week = 1600 line long module (front end, not SQL) with no comments, erratic indentation and no naming standard.
Oh! Joy 🙂
Sounds like one of my old...
December 18, 2014 at 5:53 am
Change the table reference in DB1 to DB1.dbo.ITEM
Change the table reference in DB2 to DB2.dbo.ITEM
and add UNION ALL between the two
December 18, 2014 at 5:06 am
I would be interested Jeff 😀
December 17, 2014 at 7:02 am
No problem didn't think it was reports, my interpretation was querying a list of servers for status values and showing good/bad (green/red) traffic light for the status text in question.
You...
December 17, 2014 at 5:52 am
Not sure if there is specific articles that would give you a complete solution but my answer for this would be
A repeater control populated with a datasource containing details for...
December 17, 2014 at 5:13 am
* is used in prefix only ie gold* not *gold or *gold*
One possibility, if possible, is to add additional column(s) with the data reversed and add to FTS and then...
December 16, 2014 at 5:40 am
There are several problems
Your insert statements have errors
fs_tran_date matching wrong date for data supplied
fs_locn_code does not exist
fs_locn = 'CHN' will ignore two values and will not give you the result...
December 16, 2014 at 3:39 am
WITH vv (VCHVendor,VGLVoucher)
AS (SELECT DISTINCT VCHVendor,VGLVoucher
FROM VoucherGLDist vgl
JOIN Voucher v ON v.VCHVoucherNbr = vgl.VGLVoucher
WHERE vgl.VGLJEBatch = 21174)
SELECT vv.VCHVendor, SUM(vgl.VGLAmount) AS [VGLAmount],
STUFF((SELECT ','+ b.VCHInvoiceNbr
FROM VoucherGLDist a
JOIN Voucher b ON b.VCHVoucherNbr =...
December 15, 2014 at 3:11 am
What was expected is
Create tables
CREATE TABLE dbo.VoucherGLDist (
VGLVoucher INT Not Null,
VGLJEBatch INT Not Null,
VGLAmount Money Not Null)
GO
CREATE TABLE dbo.Voucher (
VCHVendor INT Not Null,
VCHVoucherNbr INT Not Null,
VCHInvoiceNbr Varchar (20) Not...
December 12, 2014 at 10:04 am
Solution for additional maths
SELECT (SELECT ISNULL(CAST(t.Total as varchar(10)),f.Item)
FROM master.dbo.DelimitedSplit8K(
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(@formula,'+','|+|'),'-','|-|'),'*','|*|'),'/','|/|'),'(','|(|'),')','|)|')
,'|') f
LEFT JOIN Totals t ON t.RowNo = f.Item
ORDER BY ItemNumber
FOR XML PATH (''))
December 12, 2014 at 6:50 am
If the formula is addition only then using Jeff Moden's splitter
SELECT STUFF((SELECT '+' + CAST(t.Total as varchar(10))
FROM DelimitedSplit8K(@formula,'+') f
JOIN Totals t ON t.RowNo = f.Item
ORDER BY ItemNumber
FOR XML PATH ('')),1,1,'')
December 12, 2014 at 6:42 am
mhildebrand (12/11/2014)
December 12, 2014 at 2:10 am
LEFT(@housenumber,PATINDEX('%[^0-9]%',@housenumber+' ')-1)
December 10, 2014 at 3:36 am
Right click on department group row in the table
Insert row outside group above
Insert another row outside group above
Insert row outside group below
Move headings to 2nd of top rows
Delete old heading...
December 9, 2014 at 8:28 am
WITH cteStart(N1) AS (
SELECT t.N+1 FROM dbo.Tally t
WHERE t.N < LEN(@Parameter)
AND SUBSTRING(@Parameter,t.N,1) = ' '
),
cteLen(N1,L1) AS (
SELECT s.N1,
ISNULL(NULLIF(CHARINDEX(' ',@Parameter,s.N1),0)-s.N1,8000)
FROM cteStart s
),
words (N1,Word,Grp) AS (
SELECT l.N1,SUBSTRING(@Parameter, l.N1, l.L1),CEILING(l.N1 / 50.0)
FROM...
December 8, 2014 at 7:10 am
Viewing 15 posts - 586 through 600 (of 3,543 total)