Viewing 8 posts - 1 through 8 (of 8 total)
Hmm it was that simple :hehe:
Thank you very much !
July 8, 2014 at 4:20 am
--===== Create the test table with
create table #test
(
id_respondent integer,
projid integer,
gfkroid integer
)
--===== Insert the test data into the test table
insert into #test (id_respondent,gfkroid) values (1234,4567),(2345,4546),(3255,2345)
How the data looks like:
id_respondet |...
July 8, 2014 at 2:47 am
I have just read that and tried some queries but I can`t obtain the right result.
I`ll apreciate a little help 😀
July 8, 2014 at 2:31 am
Is there anyway to keep the NULL data when UNPIVOT ?
July 8, 2014 at 12:04 am
I solved it. Yes, the unpivot was the answer. I used the following query :
select Field from myTable UNPIVOT (Field for ColumnName IN ([unic],[nrc],[nr_tel],[id_stud])) unpvt
Thanks!
July 7, 2014 at 3:49 am
Oh sorry..my mistake. In ROWTERMINATOR it is not =/n it is =\ n.
July 3, 2014 at 2:15 am
try using bulk insert:
BULK INSERT table_name
FROM 'the adress where your csv is'
WITH
(
FIELDTERMINATOR=';',
ROWTERMINATOR='/n'
)
July 2, 2014 at 3:42 am
Viewing 8 posts - 1 through 8 (of 8 total)