Viewing 11 posts - 1 through 11 (of 11 total)
Thaks for your answer Tim,
There are more than 20 Tables and all foreignkeys are setup for "NO ACTION".... ouch
We are taking the long road to delete all the foreign...
August 9, 2007 at 10:17 am
Ok got it, I just added the text to the select statement,
select tbl.name, 'static text'
I works for my apllication.
Cheers
July 24, 2007 at 2:44 pm
So i pop the select case statement directly into my query?
July 18, 2007 at 3:24 pm
Well thank you very much... it could not been easier...this will same me tons of time, before i would massage the data in excel...ouch! Just one more question. Say we...
July 18, 2007 at 3:11 pm
Hmm, nope I did not specify any lengths in the destination text file, I will have to investigate that and see how I am going to go about doing that.
Thanks...
July 18, 2007 at 2:56 pm
Ok, I ran the query and exported it to a fixed width text file. Now, when i view the text file with notepad++ this is what I see;
Joe.........Smith.........12.somewhere.street...............crlf
query:
SELECT convert(char(9),sa.fname), convert(char(9),sa.lname), convert(char(15),sa.address)
FROM...
July 18, 2007 at 2:38 pm
Ah ok, then the fix length output in DTS will preserve the field lengths. I will give this a try and see how it works out.
Thanks
July 18, 2007 at 1:37 pm
duh!!
It should be like
Select
convert(char(9),as.fname), convert(char(9),as.lname), convert(char(9),as.address)
FROM
Is this the correct syntax?
July 18, 2007 at 1:35 pm
Hi,
Tnx for reply, If I understand this correctly then after my select statement i then insert the convert statement, so if I have multiple fields I will instert multiple convert...
July 18, 2007 at 1:29 pm
Viewing 11 posts - 1 through 11 (of 11 total)