Viewing 15 posts - 136 through 150 (of 164 total)
got mixed results:
--the same as yours here:
if '' = ' '
select 'equal'
else
select 'not equal'
-- returns 'equal'
--that 's different from what u got:
select replace('a"a', '"', '')
-- returns 'aa'
I'm using MS SQL...
July 14, 2005 at 8:03 am
to Jesper:
U wrote: That replaces " by a single space, unfortunately. Is there an easy way to have all quotes in a string replaced by what is known as "the empty string"...
July 14, 2005 at 7:47 am
can it be?:
--for stripping double qoutes:
update table_name set column_name = replace (column_name, '"', '')
July 14, 2005 at 7:26 am
SELECT *, IDENTITY(INT,1,1) AS RowNum
INTO #Results
FROM table
where ....
ORDER BY .....
SELECT *
FROM #Results
ORDER BY RowNum
the above works just fine. Thanx a bunch, Sushila!
July 13, 2005 at 2:45 pm
Farrel:
I've tried to add an identity (1,1) column to the source tbl, but the numbers do not get assigned according to the sort I'd need. They are assigned in random...
July 13, 2005 at 2:32 pm
correction: step 3 sh've read:
3. inserted unique_id into the temp table in the desired order:
insert _Tbl_temp (unique_id) select unique_id
from _Tbl
order by propertyid, chemid, coef_set_id
July 12, 2005 at 5:13 pm
Farrel: sorry yr way did not work - I have too many recs (22k) to be able to insert them manually.
to accomplish the task, I had to do the following:
1....
July 12, 2005 at 5:06 pm
in the prevous post I meant ' create clustered index in Enterprise Manager interface'
July 8, 2005 at 1:50 pm
just realized that I should not have introduced that new field 'ckey' (and 'pkey' for that matter). I could simply create a clustered (compound?) index for ('chem_id' and 'property_id) and...
July 8, 2005 at 1:46 pm
correction: 'chemid' in the previous post sh've been representing 'attr_id'
I slightly misrepresented the data structure , but the bottom line is clustered index helped a lot!
July 8, 2005 at 12:14 pm
I was able to introduce a clustered key 'ckey' in the source table
chemid prop_id value ckey pkey
203 VC 1.71 1 95359
1655 TPT 160.75 2 24700
1290 TC 552 3 36531
1290 TC ...
July 8, 2005 at 12:12 pm
i haven't had a chance yet; at work now, busy w/ smth else
July 8, 2005 at 9:48 am
thanks for yr response. I'm glad I was on a right track after all.
July 8, 2005 at 9:14 am
at least I learnt smth new as a result of this exercise
Thanks to everyone for yr time!
June 30, 2005 at 10:27 am
I tried to do this without setting up a linked server (i.e. my own machine) on beta - it does not work. I have an administrative right on Beta, so...
June 30, 2005 at 10:20 am
Viewing 15 posts - 136 through 150 (of 164 total)