Viewing 15 posts - 7,306 through 7,320 (of 8,753 total)
Lynn Pettis (8/27/2014)
August 27, 2014 at 11:16 am
Robert Heynen-454800 (8/27/2014)
I researched a bit and found something called a surrogate pair, where if the char number is higher than a certain range, it introduces...
August 27, 2014 at 10:38 am
Quick question, what version and edition of sql server (select @@version) are you on?
😎
August 27, 2014 at 10:36 am
keshabsingh (8/27/2014)
This is not homework session. Your approach is very limited with hard coding the values. What if data is like this?
Then, that in itself is a change to the...
August 27, 2014 at 10:26 am
patrickmcginnis59 10839 (8/27/2014)
fregatepllada (8/27/2014)
Deprecated SET FMTONLY statement did the trickalso check sp_describe_first_result_set, thanks to Eirikur Eiriksson for heads up on that one!
Further on this, the code in my initial post...
August 27, 2014 at 10:18 am
keshabsingh (8/27/2014)
create table #table1(steps int)
insert into #table1(steps)values(1)
insert into #table1(steps)values(3)
insert into #table1(steps)values(4)
insert into #table1(steps)values(5)
select steps from #table1
drop table #table1
You will get this
steps
1
3
4
5
I want this way.
stepFrom stepTo
1...
August 27, 2014 at 10:01 am
Jeff Moden (8/27/2014)
rodjkidd (8/27/2014)
jcrawf02 (8/27/2014)
rodjkidd (8/27/2014)
August 27, 2014 at 9:36 am
Mr.Sahand (8/27/2014)
Come on Eirikur, it is not that similar!:Whistling:
Ooops, wrong number:-D
😎
August 27, 2014 at 8:04 am
I don't think your approach is clumsy, in fact if you add a POC (Partition Order Cover) index on the table, this method is very hard to beat!
😎
-- create table
if...
August 27, 2014 at 6:29 am
Talib123 (8/27/2014)
XML and...
August 27, 2014 at 5:15 am
GilaMonster (8/27/2014)
Not digging at you..
Of course not, you would never:-D
... just trying to show the complexities of doing this kind of search. The 'best' way (IMHO) would be to normalise...
August 27, 2014 at 2:28 am
Something like this?
😎
DECLARE @SAMPLE TABLE
(
id_Contract INT NOT NULL
,nm_ContractType VARCHAR(25) NOT NULL
...
August 27, 2014 at 2:16 am
mishrakanchan86 (8/26/2014)
Delete from Table1 with(noloack) where UniqueKey in (Select UniqueKey from TAble2)
Apart from being a futile effort using the nolock hint with update / delete, it is...
August 27, 2014 at 2:06 am
GilaMonster (8/27/2014)
Eirikur Eiriksson (8/26/2014)
Here is an alternative solution using CHARINDEXHow well does that work if you add 'grape' to the search list?
Good point, that will ferment into a false positive;-)...
August 27, 2014 at 1:59 am
Robert Heynen-454800 (8/27/2014)
i.e.
select char(164) + ColumnText + char(164)
The...
August 27, 2014 at 1:53 am
Viewing 15 posts - 7,306 through 7,320 (of 8,753 total)