Viewing 15 posts - 5,101 through 5,115 (of 11,678 total)
The lesser amount you need to read from cache, the better the performance. Seems quite logical. (pun intended)
August 21, 2013 at 2:32 pm
An alternative is using the format functions.
A list with predefined formats can be found here:
Predefined Date/Time Formats (Format Function)
The one you need would be Y,y.
August 21, 2013 at 1:41 pm
This comes close:
SELECT
c.name AS ColumnName
, t.name + CASE WHEN (c.precision <> 0 OR c.scale <> 0)
THEN ''
ELSE '('+CAST(c.max_length AS varchar(3))+')'
END AS ColumnDataType
,c.precision
,c.scale
FROM
sys.all_columns c
JOIN
sys.types t
ON
c.user_type_id
= t.user_type_id
WHERE object_id...
August 21, 2013 at 1:36 pm
You say you are importing an Excel file, but it is actually a .csv file.
How are you trying to read the file? I hope not with an Excel source, because...
August 21, 2013 at 7:53 am
The only user interaction with an expression is when you use parameters inside your expression.
Maybe you can define a target report which has a few subreports, and you decide to...
August 21, 2013 at 6:47 am
Please do not crosspost. It wastes peoples time and fragments replies.
Original thread can be found here:
http://www.sqlservercentral.com/Forums/Topic1486656-2799-1.aspx
August 21, 2013 at 6:29 am
You could try with an expression on the ReportName of the drillthrough target, but that means you would have to set the parameter when the report is ran, so it's...
August 21, 2013 at 6:25 am
kapil_kk (8/21/2013)
Can anyone tell me from where I can learn about this SET Based approaches?
Try reading articles by Jeff Moden.
The key here is to avoid cursors and WHILE loops, and...
August 21, 2013 at 4:39 am
Sure. This is one of the examples where you don't need a tally table.
You can replace the logic beneath @bit = 1 with one MERGE statement.
The logic beneath @bit =...
August 21, 2013 at 4:00 am
It depends 😀
It depends on what the cursor is used for.
For example, if you need to run a query for each table of the database (e.g. to update statistics, or...
August 21, 2013 at 1:17 am
Satish-1028188 (8/20/2013)
Thanks Koen,Did Ms release any official MS press book for SQL Server 2012 yet? I am unable to find any.
You should polish your search skills. 😉
Every blue and...
August 21, 2013 at 12:13 am
August 20, 2013 at 11:58 pm
An option might be to extract the file to a folder called Extract. Then you can go with a for each loop to that folder and pick up the file...
August 20, 2013 at 1:32 pm
I'd do it this way:
WITH CTE_Main AS
(
SELECT Code, Sub_Code, Name, Amounts
FROM TableA
WHERE Sub_Code = 20
)
, CTE_Withhold AS
(
SELECT Code, Amounts
FROM TableA
WHERE Sub_Code = 50
)
SELECT m.Code, m.Sub_Code, m.Name, Amounts = m.Amounts -...
August 20, 2013 at 1:25 pm
Viewing 15 posts - 5,101 through 5,115 (of 11,678 total)