Example:
source - query returns: name, address, zipcode
dest - SQL Server table has columns: id, name, address, zipcode
Powerbuilder's data pipeline painter group them as follows
Source Dest
name id
address name
zipcode address
zipcode
Is there another way to do this if the pipeline doesn't work.
Thanks in advance,
Todd Pietrowski
IT Analyist, 3M Corp
tod...@mmm.com
Opinions expressed herein are my own and may not represent those of my employer.
I had a similar problem in moving an entire database. I solved this by
creating named computed NULL or empty string columns in the source select so
they would match up with the new table columns. Something like this:
SELECT NULL no_id, // null value
name,
address,
zipcode
'' user_id // empty string
FROM USER;
Hopre it helps,
Dean Ross,
CTG
dean...@ctg.com
Todd Pietrowski wrote in message <62g85c$b...@dawn.mmm.com>...
CREATE VIEW dest_view
AS SELECT name,
address,
zipcode
FROM dbo.dest
And use dest_view instead of dest as the target of the pipeline.
Works for me....this very moment I'm working on an app that does
something like 8 pipelines into the same table, only different fields
each pipeline...this requires a different view for each pipeline.
identity columns automatically generate themselves on insert, so you
generally don't _want_ to insert anything into them.
(This is Sybase syntax, but I'm pretty sure it's similar in SQL Server)