Viewing 15 posts - 136 through 150 (of 283 total)
well, I would guess it's something with the way you are calling your function.
This works fine...
declare @var varchar(1000)
set @var = 'abceref'
select cast(@Var as text)
A.J.
DBA with an attitude
November 25, 2005 at 4:47 pm
Reading is fundamental....
select SUBSTRING(column1, PATINDEX('%[^0]%', column1+'A'), LEN(column1))
A.J.
DBA with an attitude
November 22, 2005 at 5:59 pm
Functions like that will be run for each and every row in that table I am querying though vs. once in a set based operation.
A.J.
DBA with an attitude
November 22, 2005 at 5:49 pm
because I want it to actually run fast.
A.J.
DBA with an attitude
November 22, 2005 at 5:39 pm
Problem is... that replaces all spaces. Which is no good for what I am doing.
A.J.
DBA with an attitude
November 22, 2005 at 3:35 pm
yeah... actually I found that out already...
this is better
select SUBSTRING(column1, PATINDEX('%[^0]%', column1+'A'), LEN(column1))
A.J.
DBA with an attitude
November 22, 2005 at 3:14 pm
Forget it... I found it.
My buddy Bill here showed me the light..
select REPLACE(LTRIM(REPLACE(columX, '0', ' ')), '', '0') AS new_col1 .....
A.J.
DBA with an attitude
November 22, 2005 at 2:41 pm
Could you post the DDL?
A.J.
DBA with an attitude
November 22, 2005 at 2:10 pm
That CPU # (if you are referring to the same CPU # in profiler) does not represent time, it represents the # of CPU cycles.
A.J.
DBA with an attitude
November 21, 2005 at 9:40 am
Recompute statistics will update statistics on all tables in the database. This is highly recommended. Poor stats will lead to poor performance.
Rebuilding an index is synonamous with reindexing. As records...
A.J.
DBA with an attitude
November 18, 2005 at 4:41 pm
Backup your database frequently ![]()
I have had to deal with this in the past. I would recommend that you discuss this with the application...
A.J.
DBA with an attitude
November 18, 2005 at 4:36 pm
yeah... definitely stuck in loading. yeah. definitely a monday.
A.J.
DBA with an attitude
November 15, 2005 at 4:55 pm
Chris... sounds like you either had a really bad day, or someone ran over your dog today. In either case, you just need to PRAISE JESUS!!!!!
And all will be...
A.J.
DBA with an attitude
November 14, 2005 at 3:26 pm
Viewing 15 posts - 136 through 150 (of 283 total)