Showing posts with label actual. Show all posts
Showing posts with label actual. Show all posts

Thursday, March 8, 2012

Calling a child package from the Main Package

I need to pass variables from the parent package to the child package. I got this to work in a small test case. But in the actual project, I get an error when I try to do that. The parent package's log has this error :

Error: Error 0xC0012050 whike loading package file "c:\.......". Package failed validation from the ExecutePackage task. The package cannot run..

There's nothing more to go on here in the log.

Any ideas ?

-chiraj

May be you will have to check the following

1) Check if the child package is working fine - if you execute it separately with the required input parameters.
2) Guess your child package is stored in the filesystem - Check if the calling package's identitiy has got access to the folder where the child package resides.

Thanks,
Sankaranarayanan MG

|||

I got it to work. There were some Script tasks that were not getting the variables. Once I fixed that, it started working. Now I need to make sure it works consistently. I've read elsewhere that it suddenly chokes.

Thanks

-chiraj

|||

I forgot to mention this. The more important reason why it started working is when I set the property "ExecuteOutOfProcess" to true. By default it is false. I guess there are some memory /thread issues and it was choking.

-chiraj

|||For me the package isolation level was "unspecified" and the TransactionOption was "not supported". Changing them to "Serializable" and "Supported" did the job.

Sander

Calling a child package from the Main Package

I need to pass variables from the parent package to the child package. I got this to work in a small test case. But in the actual project, I get an error when I try to do that. The parent package's log has this error :

Error: Error 0xC0012050 whike loading package file "c:\.......". Package failed validation from the ExecutePackage task. The package cannot run..

There's nothing more to go on here in the log.

Any ideas ?

-chiraj

May be you will have to check the following

1) Check if the child package is working fine - if you execute it separately with the required input parameters.
2) Guess your child package is stored in the filesystem - Check if the calling package's identitiy has got access to the folder where the child package resides.

Thanks,
Sankaranarayanan MG

|||

I got it to work. There were some Script tasks that were not getting the variables. Once I fixed that, it started working. Now I need to make sure it works consistently. I've read elsewhere that it suddenly chokes.

Thanks

-chiraj

|||

I forgot to mention this. The more important reason why it started working is when I set the property "ExecuteOutOfProcess" to true. By default it is false. I guess there are some memory /thread issues and it was choking.

-chiraj

|||For me the package isolation level was "unspecified" and the TransactionOption was "not supported". Changing them to "Serializable" and "Supported" did the job.

Sander

Wednesday, March 7, 2012

Call for Gurus!. converting msSQl schema into standard format (DDL, XML)

Hi,

I am wondering if any of the DB Gurus out there help me finding a way to export mssql SCHEMA (not the actual data) into any standard language, like DDL, XML. At this point converting to XML would be the ideal but I am open to DDL format also.

I would love to hear any feedback about "If this is even possible
or not ?".

thanks,
tinkiSchema can be in a SQL script form. So, ideally this tool that
I am looking for will convery this SQL script info to DDL or
XML.

Thanks in advance,
Tinki|||Have you tried Enterprise Manager?|||DDL, or Data Definition Language, is RDBMS-specific, meaning that it is not like COBOL, VBScript, or XML. DDL for Oracle will look differently than DDL for Sybase for the same set of tables, while certain objects in Oracle will not even be found in Sybase. XML on the other hand is a standard.

Try DBArtisan from Embarcadero. Even though it only has an option "Extract Data as XML", it also allows you to generate the schema portion of your data.|||mySQL and SQL Server have very similar DDLs|||I'm glad|||Originally posted by Paul Young
Have you tried Enterprise Manager?

yes, I have tried Enterprise manager. It lets me export data to SQL script (which is very database specific). what I am looking at something
which can convert this SQL script to something more wodely accepted as a general standard so that my rest of the code does not get too
much database dependent.

tinki|||Originally posted by rdjabarov
DDL, or Data Definition Language, is RDBMS-specific, meaning that it is not like COBOL, VBScript, or XML. DDL for Oracle will look differently than DDL for Sybase for the same set of tables, while certain objects in Oracle will not even be found in Sybase. XML on the other hand is a standard.

Try DBArtisan from Embarcadero. Even though it only has an option "Extract Data as XML", it also allows you to generate the schema portion of your data.

thanks rdjabarov, I will try DBArtisan.

I have tried XMLSPY but it couldn't get to export schema. It was exporting only the data.

tinki.|||Originally posted by rdjabarov
I'm glad

I'm glad your glad!

Should have read tinki's post a little closer, thought he wanted a MSSQL to MYSQL convertion.|||DBArtisan is somewhat pricy, but a must-have tool. Also does lots of other things.|||Originally posted by tinki
what I am looking at something which can convert this SQL script to something more wodely accepted as a general standard so that my rest of the code does not get too much database dependent.
tinki

Are you actually looking for a db-independent db structure, rather than exporting your current db structure? Then, you should take these recommendations into account:

1) use short (table & field) identifiers (Informix 7, for instance, has a maximum length of 18, and Oracle 40)
2) use just characters, digits and the underscore for your identifiers
3) use just ANSI SQL data types, and not, for example, BOOLEAN (BIT)
...
I'm sure that the real gurus in this forum can easely enhance this list.

However, using a data model with no db-specific properties makes it easy to build a db-independent application, with or without a middleware encapsulating db-specific properties.

Friday, February 10, 2012

Calculated Member in SQL 2005

I'm trying to create a 'YTD Actual' Member in SQL Server 2005 Analysis
Services. Here is the code:
Hi Justin,
You should have a look at the time intelligence wizard.
HTH
Eric
"Justin" wrote:

> I'm trying to create a 'YTD Actual' Member in SQL Server 2005 Analysis
> Services. Here is the code:
>
>

Calculated Member in SQL 2005

I'm trying to create a 'YTD Actual' Member in SQL Server 2005 Analysis
Services. Here is the code:Hi Justin,
You should have a look at the time intelligence wizard.
HTH
Eric
"Justin" wrote:

> I'm trying to create a 'YTD Actual' Member in SQL Server 2005 Analysis
> Services. Here is the code:
>
>