Viewing 15 posts - 226 through 240 (of 311 total)
Jeff Moden (12/3/2009)
December 3, 2009 at 11:59 am
Now I see too. Replacing the spaces back to zeroes after trimming isn't necessary as the Trimmed value is only used to determine the number of digits behind the decimal...
December 3, 2009 at 8:57 am
SSRS expects the DataSet to return a single result set. In your case, it looks likes it takes the first result set and ignores the remainder.
Quote from BOL:
Query string...
December 3, 2009 at 7:57 am
Nice solution, but not entirely correct, I think. What about non-trailing zeroes behind the decimal point i.e. 1234.5078. The result is Modifier=1000, Result=1234507. I little fix will do:
SELECT ColumnA,
...
December 3, 2009 at 7:11 am
OK, here's an attempt:
DECLARE @Temp TABLE (ID VARCHAR(50),Type VARCHAR(50))
INSERT INTO @Temp VALUES ('BD001','BD')
INSERT INTO @Temp VALUES ('BD002','BD')
INSERT INTO @Temp VALUES ('BD003','BD')
INSERT INTO @Temp VALUES ('BD004','BD')
INSERT INTO @Temp VALUES ('BD005','BD')
INSERT INTO...
November 19, 2009 at 5:34 am
lmu92 (11/13/2009)
Peter Brinkhaus (11/13/2009)
November 13, 2009 at 2:13 pm
I did that test also. It requires less coding but, based on the 3 rows input, there are less rows generated within the cross apply to join with if you...
November 13, 2009 at 12:58 pm
Although the solution provided by Jus is simple and straight forward, it might lead to a performance problem. With eight triples of columns it leads to eight table scan. The...
November 13, 2009 at 10:52 am
November 13, 2009 at 4:59 am
Paul White (11/1/2009)
November 3, 2009 at 12:43 pm
There is an XML file SqlCommonObjects.xml with a description of all the built-in functions. Its default location is C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlToolsData\1033. Maybe you can try to read this file...
November 3, 2009 at 3:05 am
Thanks Wayne, I've got the attachment. I don't think Paul has to redeem himself. He submitted a very original solution which seems, based on the execution plan, competitive to the...
October 31, 2009 at 4:31 pm
Wayne, thanks for the extensive test results. However I don't see the attachments in your post. I'm quite curious about the execution plans on a millions input rows, because the...
October 31, 2009 at 2:48 pm
select U.rowid, CA.column_nm, CA.old, CA.new
from @Update U
cross apply
( values
...
October 29, 2009 at 4:39 pm
Bob, if you're going to write an article about this, this one may interest you as well. In an attempt to reverse engineer the query plan of your solution I...
October 29, 2009 at 10:07 am
Viewing 15 posts - 226 through 240 (of 311 total)