Hi all,
I am having some issues with BCP in SQL SERVER 2005.
Can some one help me please.
CREATE TABLE ##t1 (id int identity(1,1) , records VARCHAR(8000), get_date datetime default getdate())
CREATE TABLE ##t2(records VARCHAR(8000))
insert into ##t2
select records from ##t1
order by id asc
declare @temp varchar(250)
set @temp = 'bcp ##t2 out '+@tablename +' -c -t"," -T'
exec master..xp_cmdshell @temp
The table contains a comnination of numbers and varchar.
the first character starts as a Character.
The BCP file is not in order.
Please help
I am having some issues with BCP in SQL SERVER 2005.
Can some one help me please.
CREATE TABLE ##t1 (id int identity(1,1) , records VARCHAR(8000), get_date datetime default getdate())
CREATE TABLE ##t2(records VARCHAR(8000))
insert into ##t2
select records from ##t1
order by id asc
declare @temp varchar(250)
set @temp = 'bcp ##t2 out '+@tablename +' -c -t"," -T'
exec master..xp_cmdshell @temp
The table contains a comnination of numbers and varchar.
the first character starts as a Character.
The BCP file is not in order.
Please help