Re: how to create csv file in DTA

From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 06/04/04


Date: Fri, 4 Jun 2004 09:46:18 +0100

That select returns rows right?

You need to name all attributes so

sum(convert(int,Volume,12))

would need to be

sum(convert(int,Volume,12)) as ABC

Go to the transformations tab and make sure the SourceColumns appear as you
expect and the map to a DestinationColumn.

-- 
----------------------------
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Kanan" <anonymous@discussions.microsoft.com> wrote in message
news:EE9716BC-8D45-4AF7-B338-82A4B2F3E5E7@microsoft.com...
> thanks you very much for the info. But I have a query like this. but for
some reason, the last 3 columns in my select
> clause don't appear in the output csv file.
>
> select INTSYSTID, DATEE, cpt_code,
> MOD,COL1,COL2 ,sum(convert(int,Volume,12))
> from dwpublish..KANAN_Q12004
> group by intsystid,DATEE,cpt_code,mod,COL1,COL2
> order by intsystid,DATEE,cpt_code
>
> any clue would be greatly appreciated.
>
> thanks
> Kanan


Relevant Pages

  • Re: declare variable to be of some tables column datatype
    ... "Kanan" wrote in message ... documentation on this in my SQL Server book. ... You could create a user defined type and declare both the table column and ... Modifying a UDT is a multi-step process if it's bound to a table column. ...
    (microsoft.public.sqlserver.programming)
  • Re: Validations in bcp format file
    ... But SQL 2005 has a new rowset provider BULK, ... SELECT CASE field WHEN 'ABC' THEN 'DEF' ... Please check Books Online for exact syntax. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.tools)
  • Re: Binary_Checksum - How secure is it?
    ... in an encrypted format and a different column has the original value in ... For example, if 'abc' is a password, its first encrypted and put in ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Windows Authentication from a workgroup to a domain sql server
    ... But the workgroup name is the same as ... SQL Part of abc domain ... Local user account name: test ... When the user tries to connect the SQL server comes back with: ...
    (microsoft.public.sqlserver.security)
  • Re: declare variable to be of some tables column datatype
    ... "Kanan" wrote in message ... > Does SQL Server have the capability to declare a variable to be of ... particular table's column datatype? ... documentation on this in my SQL Server book. ...
    (microsoft.public.sqlserver.programming)