Viewing 15 posts - 76 through 90 (of 599 total)
OK, so you do indeed have stray characters in the rows. IsNumeric=0 means all values have non-numeric data of some sort.
Try this:
DECLARE @OriginalText NVARCHAR(50)
SELECT @OriginalText = MyColumn
FROM ...
May 2, 2011 at 11:38 am
Dedicated SQL Server box replicating to dedicated SQL Server box. Both on VM, both 32-bit.
Publisher/distribution server has 8 GB max configured in VM, 6 GB max server memory in...
May 2, 2011 at 11:28 am
A very kludgey way to check, but try:
Select '*'+TheColumn+'*' from The DB
that will tell you if there are any stray characters.
Also, check out the IsNumeric function. While not perfect,...
May 2, 2011 at 9:06 am
What is the column's collation (can be different from the database)?
What is the server-level collation?
May 2, 2011 at 8:45 am
Above solution is probably the best if it fits your real script. Otherwise, remember your basic algebra. Parentheses are your friend.
So you can do things like...
SELECT *
from My...
May 2, 2011 at 8:20 am
Simplest solution, really is to look at sp_send_dbmail. Set up one command into a job and it will run the query and mail it off to whoever you tell...
April 29, 2011 at 10:24 am
Yup. Look up sp_send_dbmail in online help. Should be just what the Dr. ordered.
April 29, 2011 at 8:50 am
The parsing of the rows is the issue, as the only way that I can find is to check the characters in the string for every column that might have...
April 29, 2011 at 7:15 am
It's not ASCII, it's Unicode. Values go up to 65533 (decimal). Which, by the way, we do get.
Random sampling via PATINDEX is no good.
April 28, 2011 at 3:25 pm
Conrad,
Make sure your VM environment is set up properly for SQL Server. We had some huge performance issues that sound very similar to yours when we virtualized a particular...
April 28, 2011 at 3:01 pm
Thanks, Wayne. I keep wanting simpler but I don't think it's possible. Mostly wanted a sanity check.
Maxim, I thought about going that way as well but I like...
March 23, 2011 at 3:00 pm
Also to note is that partitioning is only available in the Enterprise edition of SQL Server.
March 23, 2011 at 9:52 am
I'm sure there are more elegant/complete ways of doing this, but it gets you close. If you combine this with PIVOT it would work.
;
WITH Totals (...
March 23, 2011 at 9:46 am
I would start by putting all that date math into declared variables.
Same for the AsOfDate value.
March 22, 2011 at 2:29 pm
So how are you defining the characters you want to keep vs the characters you want to remove?
March 22, 2011 at 2:02 pm
Viewing 15 posts - 76 through 90 (of 599 total)