dbTalk Databases Forums  

Package Configuration - Filter for Sql Server

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Package Configuration - Filter for Sql Server in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mick Anderson
 
Posts: n/a

Default Package Configuration - Filter for Sql Server - 04-27-2006 , 01:09 AM






Hi,

I have created a package to process Analysis Services (AS) databases. I am
currently using variables to store info such as the Connection and the
Initial Catalog (AS database) and these variables are loaded from a
configuration files (stored in the SQL Server).

I now want to call this package using a different filter value, is this
possible?

i.e.

1) Filter Value = FINANCE ,
Variables: Initial-Catalog=FINANCE Cube, Connection=DSS\DVT

2) Filter Value = PAYROLL
Variables: Initial-Catalog=PAYROLL Cubes, Connection=DSS\DVT

3) Filter Value = SALES
Variables: Initial-Catalog=Sales Cubes, Connection=DSS\PRD


Im still not sure if a configuration file is the right technology to use
here, is it possible to load these variables at run time by just passing in
the filter and extracting these from a table using a query?

Any assistance here would be greatly appreciated.

Thanks
Mick



I was wondering if anyone had any good exa

AS databases. and be able to use a package configuration file to hold
connection details and other variables.

I created a configuration file and stored it in the database, I also added
additional records for other

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Package Configuration - Filter for Sql Server - 04-27-2006 , 06:57 AM






In your configuration file you can set the connection properties directly so
there is no need to go through a variable

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Mick Anderson" <Mick Anderson (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I have created a package to process Analysis Services (AS) databases. I am
currently using variables to store info such as the Connection and the
Initial Catalog (AS database) and these variables are loaded from a
configuration files (stored in the SQL Server).

I now want to call this package using a different filter value, is this
possible?

i.e.

1) Filter Value = FINANCE ,
Variables: Initial-Catalog=FINANCE Cube, Connection=DSS\DVT

2) Filter Value = PAYROLL
Variables: Initial-Catalog=PAYROLL Cubes, Connection=DSS\DVT

3) Filter Value = SALES
Variables: Initial-Catalog=Sales Cubes, Connection=DSS\PRD


Im still not sure if a configuration file is the right technology to use
here, is it possible to load these variables at run time by just passing
in
the filter and extracting these from a table using a query?

Any assistance here would be greatly appreciated.

Thanks
Mick



I was wondering if anyone had any good exa

AS databases. and be able to use a package configuration file to hold
connection details and other variables.

I created a configuration file and stored it in the database, I also added
additional records for other



Reply With Quote
  #3  
Old   
Mick Anderson
 
Posts: n/a

Default Re: Package Configuration - Filter for Sql Server - 04-27-2006 , 04:25 PM



thanks Allan, is there any way you can supply a filter. i.e. I want to use
the same package but pass in a different filter to pickup the connection
properties and variables.

Thanks
Mick




"Allan Mitchell" wrote:

Quote:
In your configuration file you can set the connection properties directly so
there is no need to go through a variable

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Mick Anderson" <Mick Anderson (AT) discussions (DOT) microsoft.com> wrote in message
news:6B0E48E0-533C-4792-81CD-ABE6B8ACAC1F (AT) microsoft (DOT) com...
Hi,

I have created a package to process Analysis Services (AS) databases. I am
currently using variables to store info such as the Connection and the
Initial Catalog (AS database) and these variables are loaded from a
configuration files (stored in the SQL Server).

I now want to call this package using a different filter value, is this
possible?

i.e.

1) Filter Value = FINANCE ,
Variables: Initial-Catalog=FINANCE Cube, Connection=DSS\DVT

2) Filter Value = PAYROLL
Variables: Initial-Catalog=PAYROLL Cubes, Connection=DSS\DVT

3) Filter Value = SALES
Variables: Initial-Catalog=Sales Cubes, Connection=DSS\PRD


Im still not sure if a configuration file is the right technology to use
here, is it possible to load these variables at run time by just passing
in
the filter and extracting these from a table using a query?

Any assistance here would be greatly appreciated.

Thanks
Mick



I was wondering if anyone had any good exa

AS databases. and be able to use a package configuration file to hold
connection details and other variables.

I created a configuration file and stored it in the database, I also added
additional records for other




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Package Configuration - Filter for Sql Server - 04-28-2006 , 11:28 AM



That's the beauty of configuration files. The package picks up the
configuration applies the settings and off it goes. In the configuration
setup you export what you will be wanting to change through the
configuration. You then change the value in the configuration to be
whatever you want it to be without having to touch the package again.

Make sense?

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Mick Anderson" <MickAnderson (AT) discussions (DOT) microsoft.com> wrote

Quote:
thanks Allan, is there any way you can supply a filter. i.e. I want to use
the same package but pass in a different filter to pickup the connection
properties and variables.

Thanks
Mick




"Allan Mitchell" wrote:

In your configuration file you can set the connection properties directly
so
there is no need to go through a variable

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Mick Anderson" <Mick Anderson (AT) discussions (DOT) microsoft.com> wrote in
message
news:6B0E48E0-533C-4792-81CD-ABE6B8ACAC1F (AT) microsoft (DOT) com...
Hi,

I have created a package to process Analysis Services (AS) databases. I
am
currently using variables to store info such as the Connection and the
Initial Catalog (AS database) and these variables are loaded from a
configuration files (stored in the SQL Server).

I now want to call this package using a different filter value, is this
possible?

i.e.

1) Filter Value = FINANCE ,
Variables: Initial-Catalog=FINANCE Cube, Connection=DSS\DVT

2) Filter Value = PAYROLL
Variables: Initial-Catalog=PAYROLL Cubes, Connection=DSS\DVT

3) Filter Value = SALES
Variables: Initial-Catalog=Sales Cubes, Connection=DSS\PRD


Im still not sure if a configuration file is the right technology to
use
here, is it possible to load these variables at run time by just
passing
in
the filter and extracting these from a table using a query?

Any assistance here would be greatly appreciated.

Thanks
Mick



I was wondering if anyone had any good exa

AS databases. and be able to use a package configuration file to hold
connection details and other variables.

I created a configuration file and stored it in the database, I also
added
additional records for other






Reply With Quote
  #5  
Old   
Mick Anderson
 
Posts: n/a

Default Re: Package Configuration - Filter for Sql Server - 05-02-2006 , 12:48 AM



Hi Allan,

so can I call a package with a package filter, or do I need to update the
values configuration each time I run the package?

i.e.

dtsexec myPackage.dtsx "Filter=SALES"

or

dtsexec myPackage.dtsx "Filter=PAYROLL"

Thanks
Mick

"Allan Mitchell" wrote:

Quote:
That's the beauty of configuration files. The package picks up the
configuration applies the settings and off it goes. In the configuration
setup you export what you will be wanting to change through the
configuration. You then change the value in the configuration to be
whatever you want it to be without having to touch the package again.

Make sense?

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Mick Anderson" <MickAnderson (AT) discussions (DOT) microsoft.com> wrote in message
news:54696D42-2C43-4DBF-A575-C463D6BD5A77 (AT) microsoft (DOT) com...
thanks Allan, is there any way you can supply a filter. i.e. I want to use
the same package but pass in a different filter to pickup the connection
properties and variables.

Thanks
Mick




"Allan Mitchell" wrote:

In your configuration file you can set the connection properties directly
so
there is no need to go through a variable

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Mick Anderson" <Mick Anderson (AT) discussions (DOT) microsoft.com> wrote in
message
news:6B0E48E0-533C-4792-81CD-ABE6B8ACAC1F (AT) microsoft (DOT) com...
Hi,

I have created a package to process Analysis Services (AS) databases. I
am
currently using variables to store info such as the Connection and the
Initial Catalog (AS database) and these variables are loaded from a
configuration files (stored in the SQL Server).

I now want to call this package using a different filter value, is this
possible?

i.e.

1) Filter Value = FINANCE ,
Variables: Initial-Catalog=FINANCE Cube, Connection=DSS\DVT

2) Filter Value = PAYROLL
Variables: Initial-Catalog=PAYROLL Cubes, Connection=DSS\DVT

3) Filter Value = SALES
Variables: Initial-Catalog=Sales Cubes, Connection=DSS\PRD


Im still not sure if a configuration file is the right technology to
use
here, is it possible to load these variables at run time by just
passing
in
the filter and extracting these from a table using a query?

Any assistance here would be greatly appreciated.

Thanks
Mick



I was wondering if anyone had any good exa

AS databases. and be able to use a package configuration file to hold
connection details and other variables.

I created a configuration file and stored it in the database, I also
added
additional records for other







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.