Viewing 15 posts - 841 through 855 (of 3,543 total)
LinksUp (1/15/2014)
guessing that 40511 is some Julian type date
40511 is the serial date in excel for 29/11/2010
Excel holds dates as days from 01/01/1900 (where 01/01/1900 = 1)
So your method of...
January 15, 2014 at 7:05 am
please post the format file as your columns do not match the data
January 15, 2014 at 6:49 am
SSRS IN operator works on Arrays, convert your string list to array using Split
January 15, 2014 at 6:29 am
First you need to change your query to produce the following
MonthCategoryCategoryValueDistrictnameStorenameEmployeename
JanCAT15district1store1employee1
JanCAT15district1store1employee1
JanCAT15district1store1employee1
JanCAT24district1store1employee1
JanCAT24district1store1employee1
JanCAT24district1store1employee1
FebCAT110district1store1employee1
FebCAT110district1store1employee1
FebCAT21district1store1employee1
FebCAT21district1store1employee1
MarchCAT13district1store1employee1
MarchCAT13district1store1employee1
MarchCAT13district1store1employee1
MarchCAT22district1store1employee1
MarchCAT22district1store1employee1
MarchCAT22district1store1employee1
Then using the wizard create the matrix like this
January 15, 2014 at 4:12 am
madan.kapil-1069442 (1/15/2014)
January 15, 2014 at 3:07 am
What do you mean by 'sum(CAT1) for Jan month'
CAT1 is a category
What value do you want below each month for each category, your query seems to have a few summed...
January 15, 2014 at 3:02 am
Note sure exactly what your'e after, but if it is to show months under each category and the count of rows under each month then
Add a matrix to the body...
January 15, 2014 at 2:15 am
patrickmcginnis59 10839 (1/14/2014)
sqlcmd = "Create table #Eft_Transfer( " & vbCrLf _
& " EFT_No varchar(20), null , " & vbCrLf _
& " Effective_Date datetime , " & vbCrLf _
&...
January 15, 2014 at 1:39 am
You cannot cast 'EFT0000000220' to bigint.
You can cast the numerical part, ie CAST(SUBSTRING('EFT0000000220',4,10) as bigint)
January 14, 2014 at 7:05 am
What is the expression that is failing?
January 13, 2014 at 7:20 am
;WITH result (category,ids) AS (
SELECT category,
STUFF((SELECT ',' + CAST(b.id as varchar(10))
...
January 13, 2014 at 7:18 am
Grant Fritchey (1/10/2014)
ChrisM@Work (1/10/2014)
Grant Fritchey (1/10/2014)
Jeff Moden (1/8/2014)
rodjkidd (1/8/2014)
January 10, 2014 at 5:07 am
;WITH a (bill_no,cust_det,product,Price,bill_date,rowid)
AS (SELECT bill_no,cust_det,product,Price,bill_date,ROW_NUMBER() OVER (PARTITION BY bill_no ORDER BY price DESC) FROM Bill_max)
SELECT bill_no,cust_det,product,Price,bill_date
FROM a
WHERE rowid = 1
ORDER BY bill_no ASC
January 9, 2014 at 6:56 am
I would concur with MM it could be the trigger.
Can you post the full code for the trigger?
Depending on what the trigger does, running the code in query window may...
January 9, 2014 at 2:11 am
khenlevy (1/8/2014)
can anybody show me the reverse way?
DECLARE @sid varbinary(39)
SET @sid = 0x0105000000000005150000008BB113BE47890628D2E79F97E8030000
SELECT 'S-1-5-21-'
+CAST(CAST(CAST(REVERSE(CONVERT(binary(4),'0x'+sys.fn_varbintohexsubstring(0,@SID,13,4),1)) as varbinary(4)) as bigint) as varchar(10))
+'-'+CAST(CAST(CAST(REVERSE(CONVERT(binary(4),'0x'+sys.fn_varbintohexsubstring(0,@SID,17,4),1)) as varbinary(4)) as bigint) as varchar(10))...
January 8, 2014 at 7:48 am
Viewing 15 posts - 841 through 855 (of 3,543 total)