Viewing 15 posts - 151 through 165 (of 287 total)
Another way to do the comparison is to cast the values to VARBINARY.
Also, a LIKE comparison will be "closer", but it is not 100% either.
February 4, 2010 at 1:19 pm
That is correct, SQL will ignore trailing whitespaces.
February 4, 2010 at 12:29 pm
I think it was touched on with the distribution of data. But, to add to that, if you have a query plan in cache it'll use that until it thinks...
February 3, 2010 at 12:02 pm
Not to try to confuse things anymore, but there is also: SET XACT_ABORT { ON | OFF }
Which may or maynot help you in your particular scenario.. 🙂
January 28, 2010 at 12:46 pm
SELECT
*
FROM
TableA AS A
LEFT OUTER JOIN
TableB AS B
ON A.Col1 = B.Col1
AND A.Col2 = B.Col2
...
AND A.Col9 = B.Col9
WHERE
B.Col1 IS NULLIf the tables are on different servers you will need to fully...
January 27, 2010 at 3:18 pm
I agree with what GSquared said. In Addition to that there are some trade offs.
The File System is nice bcause you can use "xcopy" deployment (just copy the pacakge...
January 27, 2010 at 12:58 pm
Is there an order of operations issue?
I would assume that you would populate your dimension from your staging table not populate your staging table from your dimension. So, I assume...
November 16, 2009 at 2:41 pm
I'm not saying this gives you correct results, but integer math returns integer values. Try changing the 8 to 8.0:declare @thisTime decimal(8,2)
set @thisTime = datediff(hh, getdate(), '11/22/2009')/8.0
select @thisTime
November 16, 2009 at 2:22 pm
Hehe, thanks.. Yeah they changed the wording at some point. My Local BOL says:
TOP ( expression ) [ PERCENT ]
Specifies the number or percentage of rows that are affected...
November 12, 2009 at 3:57 pm
Florian Reischl (11/11/2009)
November 12, 2009 at 3:01 pm
If you change my WHERE cluase to:WHERE
RowNum = 1 OR Code <> '' OR Location <> ''I think that'll work.
lmu92's solution and mine differ slightly because of there the...
November 12, 2009 at 2:28 pm
Supriya.S (11/12/2009)
November 12, 2009 at 1:44 pm
Here is one other way:SELECT
name,
email,
code,
location
FROM
(
select
name,
email,
ISNULL(code,'') AS code,
MAX(isnull(location,'')) as location,
ROW_NUMBER() OVER
(
PARTITION BY
Name,
ORDER BY
CASE WHEN code IS NULL THEN 1 ELSE 0 END,
code
) AS...
November 12, 2009 at 12:01 pm
First, I think SQL will handle it, but you should preface your string literal with N for unicode strings. Maybe that'll help?
set @msg= N'C?????'
Secondly, is the display of "C?????" showing...
November 12, 2009 at 11:42 am
gboyer (11/5/2009)
November 6, 2009 at 12:36 pm
Viewing 15 posts - 151 through 165 (of 287 total)