Viewing 15 posts - 8,116 through 8,130 (of 15,381 total)
Here is what your query would look like using the DelimitedSplit8K.
create table #MyTable
(
ID int,
Price int,
List varchar(20)
)
insert #MyTable
select 3, 89, '67,68,69' union all
select 4, 120, '45,46'
select t.ID, t.Price, x.Item
from #MyTable t
cross...
June 4, 2013 at 7:46 am
I agree with Luis that you need the splitter. I would however recommend going one step further and normalizing this data. You should not be storing delimited values like that...
June 4, 2013 at 7:43 am
prtk.raval (6/3/2013)
I will now create a one topic and stick...
June 4, 2013 at 7:37 am
Glad that works for now. I have to agree with the sentiment of the others that parsing this into appropriate columns would be best. It is however incredibly difficult to...
June 4, 2013 at 7:31 am
Ok so here is the deal. You have now created a number of totally disconnected threads all on the same subject. Myself and others have attempted to assist you but...
June 3, 2013 at 3:44 pm
Lowell (6/3/2013)
Sean Lange (6/3/2013)
You lost me a bit in here. There is no MERGE statement in what I posted. There is no delete. It is simply an insert statement with...
June 3, 2013 at 3:41 pm
prtk.raval (6/3/2013)
So my issue is..
I am copying the whole table with OPENQUERY from linked server(oracle) to sql server2008R2 in any temp. table A.
than I am copying just P.K. to another...
June 3, 2013 at 3:10 pm
prtk.raval (6/3/2013)
Hi thanks a lot, for your quick replay ..can you please provide me any related example if you have.?
thanks in advance.
It is rather difficult to know exactly what you...
June 3, 2013 at 2:33 pm
prtk.raval (6/3/2013)
Ho I can run 2-3 sql statments in one go, which are based on above's query value.
for an example.
first statment copy the data from linked server into new table...
June 3, 2013 at 2:18 pm
monilps (6/3/2013)
I was just using example.I want date datatype to converted into datetimeoffset datatype while passing parameter.
Thanks for your help.
You shouldn't need to do any explicit conversion for that. It...
June 3, 2013 at 1:54 pm
monilps (6/3/2013)
I am getting error while using CAST to pass the parameters.
Example:
EXEC dbo.abc CAST(0 as bit), null
NOTE: I need...
June 3, 2013 at 1:25 pm
albertosantiagop (6/3/2013)
I have two Instance. Instace A and Instance B. I need to restore a backup that are store in instace A
to instance B....
June 3, 2013 at 12:21 pm
GilaMonster (6/3/2013)
Ed Wagner (6/3/2013)
June 3, 2013 at 9:06 am
In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results...
June 3, 2013 at 8:44 am
If you are just trying to set a value for all inserted rows why not make it the default? Then you don't have to worry about a trigger at all?...
June 3, 2013 at 8:41 am
Viewing 15 posts - 8,116 through 8,130 (of 15,381 total)