Viewing 15 posts - 796 through 810 (of 3,543 total)
Dim f As New System.IO.FileInfo(FilePathName)
f.Length 'Size in bytes of the file
Can the file be large? Just curious why reading 1k chunks!
April 25, 2014 at 8:20 am
Add GROUP BY on site_number,site_nameentity_equipment_name and 'Date/Time' summing the three values.
As for a better way, it depends, what is the performance currently like using real data?
April 25, 2014 at 7:48 am
SELECT
'Type'[Type]
,SUM(CASE WHEN code='09' THEN Amt/100 ELSE 0 END) AS [Col1]
,SUM(CASE WHEN code='10' THEN Amt/100 ELSE 0 END) AS [Col2]
,SUM(CASE WHEN code='11' THEN Amt/100 ELSE 0 END)...
April 25, 2014 at 7:39 am
GilaMonster (4/24/2014)
April 24, 2014 at 10:11 am
What is the text part of the error that follows the error code?
April 24, 2014 at 10:09 am
Is there more than one procedure being used that creates the table?
April 24, 2014 at 9:57 am
Luis Cazares (4/24/2014)
But this might be easier to understand for most people
True 🙂
Doubt there is much difference in performance anyway 😉
April 24, 2014 at 9:34 am
Assuming Finished is a bit column then use this expression
Switch(IsNothing(Fields!Finished.Value),2,Fields!Finished.Value,1,True,0)
April 24, 2014 at 9:20 am
1. I believe so yes however I have never done so. You will need a separate SQL Server license though.
2. Only R2 has the ability to name worksheet(s) via the...
April 24, 2014 at 7:11 am
SELECTp.item
,(p.qty_ordered-p.qty_received) as POQtyRemaining
,ip.item
,ip.qty_on_hand
,p.po_num
,p.po_line
,p.po_release
,p.stat
,p.qty_ordered
,p.qty_received
,p.due_date
,p.promise_date
,c.item
,(c.qty_ordered-c.qty_shipped) AS QtyRemaining
,ic.qty_on_hand
,c.due_date
,c.co_num
,c.co_line
,c.co_release
,c.qty_ordered
,c.qty_shipped
,c.stat
,c.promise_date
,c.co_cust_num
FROM(VALUES
('1001099548','1001099550'),
('84162359','84198545'),
('84532300','84532293'),
('47547523','47547951'),
('305545A3','87433653'),
('87444977','87444975')
) l (pitem,citem)
JOIN [Ace_App].[dbo].[poitem] p ON p.item = l.pitem AND (p.stat = 'P' or p.stat = 'O')
JOIN [Ace_App].[dbo].[itemwhse] ip ON ip.item = p.item
JOIN [Ace_App].[dbo].[coitem]...
April 24, 2014 at 6:08 am
When referencing a RS report via web services use
/foldername/reportname
Note that the report name does not include the .rdl extension
If you have a hierarchy of several folders then add them to...
April 24, 2014 at 5:50 am
Jako de Wet (4/24/2014)
SUM(1-SIGN(Pos-1)) section returns 0 always
Curious :ermm:
Returned correct results when run against your test data.
The only way you will get zero is if the product's quantity was never...
April 24, 2014 at 3:10 am
;WITH cte (ProductId,Pos) AS (
SELECT ProductId,
RANK() OVER(PARTITION BY SaleYear,SaleWeek ORDER BY Quantity DESC)
FROM SalesData)
SELECT ProductId,SUM(1-SIGN(Pos-1))
FROM cte
GROUP BY ProductId
April 23, 2014 at 11:36 am
Off the top of my head
In your report create two datasets (assumes your data is in a table called data)
First as
;WITH
i (InvoiceNo) AS (SELECT InvoiceNo FROM data GROUP...
April 23, 2014 at 10:15 am
Use a browser to connect to the Report Server (http://servername/Reports/)
Click on folder containing the DataSource
Click on the DataSource
This will show the connection properties
April 23, 2014 at 7:41 am
Viewing 15 posts - 796 through 810 (of 3,543 total)