English 中文(简体)
SSIS 配置文件动态位置
原标题:Dynamic Location of SSIS Configuration Files
  • 时间:2012-05-23 09:23:38
  •  标签:
  • sql
  • ssis

是否有更动态的 SSIS 配置文件存储解决方案?

从我所读到,共同的解决方案是使用每组配置文件的“标准”地址/文件夹

I. E. C: Config

是否正在让这个变体更具动态性? 通过将它从变量驱动到前面, 或者甚至将服务器名称附加到前面, 从而可以使用共享位置“ serverconfig ” 吗?

提前感谢

最佳回答

两种选择:

  1. It s possible to store a configuration in a Windows environment variable. You could manage and configure these on each environment (e.g., DEV, TEST, PROD). This environment variable could contain a connection string that points to your other configurations (SQL) or can be chosen directly for each XML configuration file as well.

关于选择合适的配置战略的更多信息:http://msdn.microsoft.com/en-us/library/cc671625.aspx

  1. You can work with relative paths, e.g., define the path to your configuration file as .ConfigsMyConfig.dtsConfig. SSIS will try to access the Config directory from the path where your SSIS package is executed. This can be annoying to deploy, as in debug mode, SSIS executes from the bin directory of your project.
问题回答

不是真的, 当您使用 XML 配置时, 您需要告诉软件包从何处读取文件。 它实际上不是什么问题, 因为如果您安装了它, 它会询问配置文件的位置, 所以您不必太担心 。

并阅读我在

BIDS 2008 doesn t work on relative path,may be some kind of bug If you try to enter the relative path , on clicking next it calculates the whole path. The best workaround is to open the SSIS xml search for the path you just entered and make it as relative. For eg.

In BIDS package configuration window you have entered path as: c:BIDSabc.config Go to Package xml search for above line and replace with : ..BIDSabc.config

and save it. the work is done, now if you reopen the SSIS in the BIDS window and check the package configuration window it will show the relative path.

要查看 xml, 请到 BIDS 的解决方案探索窗口, 右键单击软件包, 点击视图代码 。

希望这样能帮上忙





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

难以执行 REGEXP_SUBSTR

I m 查询Oracle 10g。 我有两张表格(样本数据见下文)。 i m 试图提取一些领域

SQL Query Shortcuts

What are some cool SQL shorthands that you know of? For example, something I learned today is you can specify to group by an index: SELECT col1, col2 FROM table GROUP BY 2 This will group by col2

PHP array callback functions for cleaning output

I have an array of output from a database. I am wondering what the cleanest way to filter the values is example array Array ( [0] => Array ( [title] => title 1 ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

Running numbers in SQL

I have a SQL-statement like this: SELECT name FROM users WHERE deleted = 0; How can i create a result set with a running number in the first row? So the result would look like this: 1 Name_1 2 ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签