![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm exporting data to a csv file which needs to include some fields that I dont have in my source table. Some of these will have no value but must still be included in the csv file one will have a static value for all records and one will contain a static URL ending in a querystring value from a data field (eg: http://mydomain.com/filename?id=<my id field> ) How do I do this? I would appreciate any suggestions. Thanks Leslie |
#3
| |||
| |||
|
|
I'm exporting data to a csv file which needs to include some fields that I dont have in my source table. Some of these will have no value but must still be included in the csv file one will have a static value for all records and one will contain a static URL ending in a querystring value from a data field (eg: http://mydomain.com/filename?id=<my id field> ) How do I do this? I would appreciate any suggestions. Thanks Leslie |
#4
| |||
| |||
|
|
forgot to mention I'm using sql 2000 Leslie On Wed, 14 Jan 2004 23:28:29 +0000, les wrote: I'm exporting data to a csv file which needs to include some fields that I dont have in my source table. Some of these will have no value but must still be included in the csv file one will have a static value for all records and one will contain a static URL ending in a querystring value from a data field (eg: http://mydomain.com/filename?id=<my id field> ) How do I do this? I would appreciate any suggestions. Thanks Leslie |
#5
| |||
| |||
|
|
In message <dljb00hdhrg5q4vf95otqrjkcuvunvtsna (AT) 4ax (DOT) com>, les@?.?.invalid writes I'm exporting data to a csv file which needs to include some fields that I dont have in my source table. Some of these will have no value but must still be included in the csv file one will have a static value for all records and one will contain a static URL ending in a querystring value from a data field (eg: http://mydomain.com/filename?id=<my id field> ) How do I do this? I would appreciate any suggestions. Thanks Leslie The simplest way to do this would be to use a source query like this- SELECT Col1, Col2, Col3, '' AS Col4, '' AS Col5, 'http://mydomain.com/filename?id= + CAST(Col6 AS varchar(255)) AS Col6 FROM MyTable |
![]() |
| Thread Tools | |
| Display Modes | |
| |