Groups | Blog | Home
all groups > sql server dts > may 2005 >

sql server dts : How to change DestinationObjectName of DTSDatapump Task


J-T
5/30/2005 12:18:31 PM
I'm using a Dynamic property to change my pump Task connection based on a
global variable.The global variable specifies which database I'd like to use
my DTS in.DestinationObjectName is something like
[DatabaseName].[dbo].[TableName]. I don;t know how to change this portion
only([DatabaseName]).

Thanks

J-T
5/30/2005 1:01:29 PM
I changed everything to whatever you siad.Still get this error:
"Syntax error or access violation"
Everthing is fine.Databases are all pointing to what I want.Catalognames are
right.Table name is also right.Why am I getting this error?

It'd reslly geetting on my nerves?
Isn't it a permission issue?I'm the admin server wide,why I should get this
error?
Thanks

[quoted text, click to view]

J-T
5/30/2005 1:51:54 PM
[quoted text, click to view]
Yes,Allen.Everything is right

[quoted text, click to view]
I'm using a CSV file from my local desktop.It is like DTSSource(...).Am I
clear on this?

Thanks Allen.


[quoted text, click to view]

J-T
5/30/2005 2:18:07 PM
[quoted text, click to view]
Yes,I have a TextFile(Source) which is pointing to my CSV file.

[quoted text, click to view]
I don;t get what you mean by this.This package is working on one database
and not working in another database in the same server on which I have a
Administraotr Role!!!!

Thanks

[quoted text, click to view]

J-T
5/30/2005 3:02:12 PM
I'm doing all the transformation in the ActiveX script of the datapump.
Sorry to confuse you .It's working fine on one database so there is no
booboo in the logic.There is something I'm missing somewhere and that's
making the package incompatible with the other Database here is some portion
of ActiveX:

This refers to Table ---->DTSDestination("RECORD_TYPE") =
DTSSource(Cons_RecordType ) <----This referes to CSV file

Makes sense?
Thanks a lot

[quoted text, click to view]

Allan Mitchell
5/30/2005 7:53:26 PM
Ahhhh

Right

First thing you do is make the DestinationObjectName property of that
DataPump task name only so find it in Disconnected edit | Eit and change
th

dbName.OwnerName.TableName

To

OwnerName.TableName


Now you need to change the Catalog property of the connection on which
your destination sits through the DP task. Easy.

Allan





[quoted text, click to view]
Allan Mitchell
5/30/2005 8:17:54 PM
So everything is pointing to everywhere it should be?

What is the statement you are using in the source for the DataPump?

Allan

[quoted text, click to view]
Allan Mitchell
5/30/2005 9:16:03 PM
You have a CSV file as a Source in the datapump?

If yes then you cannot specify a statement here you must just choose the
object as the source i.e. the text file.

Allan

[quoted text, click to view]
Allan Mitchell
5/30/2005 9:36:38 PM
Then it has to be the Source to the DataPump. Remember there are Source
Files and Destination files. You cannot specify a SQL Statement against
a Text File. Where do you get DTSSource() from?

Confused.

Allan

[quoted text, click to view]
Allan Mitchell
5/31/2005 12:00:00 AM
Quotes ?

DTSSource(Cons_RecordType )

Should it be

DTSSource("Cons_RecordType")


Allan

[quoted text, click to view]
AddThis Social Bookmark Button