Viewing 15 posts - 6,886 through 6,900 (of 13,460 total)
i don't think the collation is going to affect you at all, you should use the default server collation, you just have to use nvarchar columns everywhere instead of varchar,...
Lowell
August 23, 2011 at 8:52 am
the function below returns all possible colaltions on your server ...much more than i care to digest .
the second query is just the collations currently in use.
hope that helps:
select *...
Lowell
August 23, 2011 at 8:31 am
Frances L (8/23/2011)
I want to update one table field value according to other table value.
table a
ID Certfication
2 ACNS-BC
3 CCRN
if table a have...
Lowell
August 23, 2011 at 8:17 am
Jnrstevej (8/23/2011)
@Lowell its just a portion of the SP I've created. You are completely right with your advise it has solved the problem:-) i...
Lowell
August 23, 2011 at 8:03 am
in some cases, that's absolutely true; after answering the same posting question over and over again, some folks get jaded;
I myself got snarky a while back and when someone posted...
Lowell
August 23, 2011 at 8:01 am
just a day or so ago someone asked for the same thing;
see this topic for the discussion and a working solution:
http://www.sqlservercentral.com/Forums/FindPost1162705.aspx
Lowell
August 23, 2011 at 7:17 am
shouldn't your function return a datetime instead of a char(8)?
anyway, you just wrap it with the function you wrote:
here's two ways, depending on if you change the function to return...
Lowell
August 23, 2011 at 7:05 am
the code you posted is not creating the table SystemDateTable
i assume what you psoted is just a portion of what you are doing, right?
in what you did paste, you are...
Lowell
August 23, 2011 at 6:34 am
you should be able to find what the issue is pretty easily;
if you change the object id below to the one you are looking for, what do you get?
on my...
Lowell
August 23, 2011 at 6:28 am
your variable is too small
DECLARE @sql nvarchar(1000)
but the code you pasted is at least 1065 chars, depending on t table name.
change it to nvarchar(max) to be safe and try again.
Lowell
August 23, 2011 at 6:19 am
some of your dates are not dates...probably blank strings for death date(a reasonable assumption would be not all patients die or get transferred)
something like this:
...
CASE
WHEN ISDATE(SUBSTRING(BulkColumn, 41, 8)) =1
THEN...
Lowell
August 23, 2011 at 6:04 am
since you have everything in a staging table, shouldn't you just convert the columns explicitly?
-- Substring input patient
set @sql = N'SELECT
CONVERT(int,SUBSTRING(BulkColumn, 1, 4)) AS patid
,SUBSTRING(BulkColumn, 5, 1) AS...
Lowell
August 23, 2011 at 5:51 am
I'm guessing the new columns( with defaults or not?) caused a lot of page splits of the data.
I'm thinking rebuilding the indexes on the table would improve the perforamnce...
Lowell
August 22, 2011 at 2:27 pm
Shurkadze (8/22/2011)
Lowell
August 22, 2011 at 2:20 pm
GilaMonster (8/22/2011)[hrNo, not always.
...up
Gail I was looking more for a rule of thumb, I'm sure that just like you identified, there are exceptions where the key lookup is better...testing would...
Lowell
August 22, 2011 at 1:08 pm
Viewing 15 posts - 6,886 through 6,900 (of 13,460 total)