Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





SSIS-Expression Builder


 am trying to do the following in SSIS. 
I have Execute Process Task, in which I have the values are set for Executable, Arguments and working Directory manually.  I keep changing this if the Connection Manager points to Dev or when it points to QA or to Prod.  Instead I want to do like this.
If my Connection Manager points to Dev, the Executale , Arguments and Working Directory should automatically change.  Else if it points to QA, the Executale , Arguments and Working Directory should automatically change and similarly for Prod.
Is this possible in Expression Builder in Execute Process Task.  If so, how?.
Thank you




View Complete Forum Thread with Replies

Related Forum Messages:
Quick SSIS Expression Builder Question
This works:
len ((DT_WSTR,2)DATEPART("mm", getdate()))==1 ? (DT_WSTR,1)0 + (DT_WSTR,1)DATEPART("mm", getdate()) : (DT_WSTR,4)DATEPART("mm", getdate())

This doesn't:
"dataware/"+ len ((DT_WSTR,2)DATEPART("mm", getdate()))==1 ? (DT_WSTR,1)0 + (DT_WSTR,1)DATEPART("mm", getdate()) : (DT_WSTR,4)DATEPART("mm", getdate())

I tried a couple of different things at this point, where am I missing the cast? Before len? Cast to what?

View Replies !
Enabling Expression Builder For Custom SSIS DataFlow Source Component
Hi,

I have implemented a custom source component that can be used as the data source in the Data Flow task.

I have also created a custom UI for this component by using the IDtsComponentUI .

But my component does not have the capability of setting the custom properties via the DTS Variables using the Expression Builder.

I have looked around for samples on how to do this, but I can only find samples of how to do this for custom Control Tasks, i.e. IDtsTaskUI.  

My question is, How can implement the Expression Builder in my custom Source component + custom Source UI. Or do you know of any samples which I can look at.

Thank you,

Jameel.

View Replies !
Expression Builder
Hi All,
   I want to build following code into expression builder . I don't know how to write that things into expression builder. so can you help me out from this problems.
 
1.Daily stock Inventory by stores " & FormatDateTime( date() , vbshortdate )
2. " Weekly stores Queue Productivity for " &  date()-8
3.Customer Data Entry Monthly Report for stores " & Month( now()-27) & "/" & Year(now()-27)
4."Customer of stores  " & FormatDateTime( now() , vbshortdate ) & " - stock"
5.customers opens account " & FormatDateTime( now() -8, vbshortdate ) & " (STOCK1)

 
 
 
 
Thanks
Aric

View Replies !
Conditions In Expression Builder
Nobody answered my previous question.  So, I am putting it this way.
How to write an IF condition in Expression builder.  I want to do something like this.
IF (variable1='ABC' then

value = '.......' 
else variable1 ='DEF' then
value = '.......'
else  variable1='GHI' then
value = '.......'
 
END
 
 
Thank you. 

View Replies !
Expression Builder Question
Hi all of you,
 
When you're making expressions with your own variables and system variables and so on. How could I see the contents for each variable?
 
When you have an expression like this:
 
"Cargas de Hacienda. " + SUBSTRING( @[System:ackageName], 7,20)  + " "
 
You can perfectly click above "Evaluated value" and see the resutl but I mean, individually over each variable on the variables listview is not possible.
 
Thanks for any input or advice,
 
Enric

View Replies !
Bug In Report Builder When Using Expression
I ran in to a strange problem in Report Builder. I drop a few fields from my Report Model on a simple talbe report. Some of them are straight forwards attributes and some of them are expressions.

 

Now in the table layout of a report I have say a attribute named as "Account Number". This attribute is actually a field from a table. I change the column header to a two line column header with €œAccount€? on one line and €œNumber€? on second line. No problem, piece of cake.

Now tried the same thing on an expression type attribute, say "Principal Balance". When I split the column header on two line I get this following error.

============================================================== 

Semantic query compilation failed: e MeasureNotFound One of the SubtotalMeasures.MeasureName properties of the SemanticQuery refers to the Measure Expression 'Principal
Balance', which does not exist. (SemanticQuery '').
----------------------------
An error has occurred during report processing.

==============================================================
 
If you read the error you will realize that the query is trying to find an expression named "Principal" (newline char) "Balance" and it fails.
 

This expression is nothing but a sum aggregation on a field in the underlying table. If I put the "Principal Balance" back on one line report runs like a charm. Also note that exact same report in Designer no issues at all.

  

FYI: I am in SQL Server 2005 with SP2. (tried it both on Standard and Enterprise versions.)

View Replies !
Expression Builder Elipse Button Does Not Appear
Hello,
I am attempting to create an expression for a package variable in a SQL Server Integration Services project, but the elipse button in the expression property for the variable does not appear (Visual Studio 2005). I've tried two different screen resolutions, no luck.
 
Why would the elipse not be there? Is there a keystroke I can use to open the exrpression builder?
 
Thank you for your help!
 
cdun2
 
 

View Replies !
String Parsing And Expression Builder....
I can't figure this one out.  I don't have enough knowledge of the string functions I guess.

I need to pull a value out of a variable I setup in a for each loop.  The value is the filename/path of each source file being processed.  Let's say the variable that has the source file path is called VAR1.

One sort of off topic thing I've noticed is when watch the variable in bebug mode and I look at the value of VAR1 it has double back slashes.  Here's an example of the value of VAR1:

"\\L3KRZR6.na.xerox.net\C$\Documents and Settings\ca051731\Desktop\Project4\DPT_20070926.ver"

How come the back slashes have been doubled?  And do I need to account for that when I start parsing the string value?

Anyway, I need to grab part of the filename from VAR1 and I need the value populated at the start of the for each loop container - ideally when I capture VAR1 in the for each container.  I'll be using the string in drop table, create table and create index statements before the actual Data Flow task within the overall package

In the above example I need to grab the characters before the underscore and after the last \.  So I'd need the string "DPT" captured in this example.

The actual string could be 1 to 3 characters long, even though this example has it as 3 long.

Underscores could exist anywhere in the actual UNC path once this package is moved to our actual system environments so I can't key off of the underscore.

Because I can't count on the string being a fixed lenght I can't just use a positional string function and grab specific text starting/ending at specific points.

Is there a way to use the various string functions in the expression builder to grab the text between the right most underscore and the right most back slashes or something like that?  Ideally I'd like to setup a new expression based packed scope variable called VAR2 and build it using string functions applied to VAR1.

View Replies !
Is Adding Custom Expressions Possible In The Expression Builder?
I would like to add additional string functions and other types of functions to the expression builder in SQL Server Integration Services.  Right now the list of functions is relatively limited to such things as FINDSTRING, RIGHT, LEN, etc.
 
Is this possible?
 
Matt

View Replies !
Using Expression Builder To Access A Dialy File Minus One Day
Hello,

I am using the following expression to access a daily file.

"D:\importdata\peregrinedata\ACD_DATA_" + (DT_WSTR, 4) YEAR( GETDATE()  )  + (DT_WSTR, 2)MONTH( GETDATE()  ) +  (DT_WSTR, 2) DAY( GETDATE()  ) + ".txt"

output:  D:importdataperegrinedataACD_DATA_2008123.txt

I need to have this file by current day -1.  I've tried dateadd and can't figure out how to get it to work.

Thanks

View Replies !
Both Foreground And Background Color Appear To Be White In Expression Builder...
 

I have a co-worker who applied build 3161 to SQL Server 2005. The original problem was that the print preview was showing up as black.This is a documented issue with Microsoft here:
 
http://support.microsoft.com/kb/935436
 
Now, when she goes into expression builder, the foreground AND background color for what you type in there appears to be white... so everything shows up as invisible. You can highlight the text you type and it shows up but otherwise it is obviously invisible.
 
Anyone know how to fix this?

View Replies !
Cannot Access Expression Builder Via Variable Properties Window (no Ellipsis)
Has anyone encountered this before?
 
My colleague opens up an SSIS package with variables, many of which use expressions built with the Expression Builder. She cannot bring up the Expression Builder by clicking the ellipsis (...) in the "Expression" Property of the Property Window, regardless of whether "EvaluateAsExpression" is set to True or False.
 
I can open up this same package and use the Expression Builder just fine. Any ideas?
 
Apologies if this has been answered already, I did many searches to try to find the solution before posting here.
 
Thanks much!
 
Brian Pulliam

View Replies !
No &&"Left&&" Function In Expression Builder?
Anyone know the reaon the Left function was left out of the list of string functions in the Expression Builder?

Danno

View Replies !
I Want A Function Like IfNull Function To Use In Expression Builder
Hi,

I wonder if there a function that i can use in the expression builder that return a value (e.g o)  if the input value is null ( Like ifnull(colum1,0)  )

 

i hope to have the answer because i need it so much.

 

Maylo

View Replies !
Returning A NULL Value In An SSIS Expression
Greetings SSIS friends,

I have the following expression but it doesn't seem to evaluate

 

findstring(eventstatus, "O", 1) > 0 ? "OFF" : NULL(DT_STR, 30, 1252)

All I want to do is something like :

 

All I want to do is return a NULL value if my condition is false.

 

Your help would be appreciated.

 

View Replies !
How To Assign An Expression With A Ssis Variable?
Hi all of you,

 

That's an easy one. I've got a Send Mail task which might send a message in plain text along with a SSIS variable.

 

Something like that:

 

'La tabla "' +  SUBSTRING( @[System:ackageName], 3,20)   + "'  se ha cargado correctamente'

 

TIA for that,

 

 

View Replies !
Interesting Article Comparing SSIS To Oracle Web Builder
http://www.tdwi.org/News/display.aspx?ID=8100

View Replies !
SSIS Expression Result Limit Of 4000 Bytes
I have a package with an input column that is varchar(8000).

I want to strip the first byte off of this column and put it in one result column and the remainder of the field I want to go to a second column.  If the input column is an empty string, I want to return NULL.

Pulling the first byte off works fine, no issues, however putting the remainder of the input column into an output column is giving me a little trouble.

If I use this expression:

LEN(FLD1) == 0 ? NULL(DT_WSTR,1) : SUBSTRING(FLD1, 2, LEN(FLD1) - 1))

I get an error that says my expression evaluates to a string of greater than 4000 bytes.

If I do this instead:

LEN(FLD1) == 0 ? NULL(DT_WSTR,1) : RTRIM(SUBSTRING(FLD1, 2, 7999))

The expression passes muster but I get the warning that I will be truncating the column at 4000 bytes.

In actuality, I don't care if the result column is truncated after 4000 bytes.  I find the second solution to be a bit clunky and I'm wondering if anyone can give me a reason why the first solution won't evaluate but the second will?

View Replies !
Building Expression Like Properties In Custom SSIS Tasks
 

Ive been using SSIS for a month or two and now find I need to create some custom tasks to perform some performance logging.  in the the overloaded ProviderComponentProperties section I am trying to create a property which has the same look as the Expressions properties you find elsewhere (Little + on the left and a group of sub properties when expanded).
 
Ive have played with creating a IDTSCustomPropertyCollection90 collection then adding my sub properties to it but I cant seem to then add my new collection to the ComponentMetaData.CustomPropertiesCollection.
 
Im assuming the Expressions parameter is a collection added to the properties collection but I cant figure out how.  Any help would be much appreciated.

View Replies !
SSIS - Derived Column Transformation Editor Expression
I am trying to put the following as an expression in the SSIS Derived Column Transformation Editor.
 
DATEADD(DAY, DATEDIFF(DAY, 0, GETDATE()), 0)
 
It is not allowing it.  This works fine in a regular SQL statement.
 
Does anyone know how I can get this to work?

View Replies !
DateAdd Expression Works In Tsql But Doesn't Work In Ssis
Hi There,

I am trying to set a variable with this default value using expression. This works in tsql but doesn't in ssis. Can anybody tell me what is wrong with this?

 

dateadd("dd", -1, datediff("dd", 0, getdate()))

 

Thanks.

View Replies !
URGENT - My Error Or Bug? The Result Of The Expression Cannot Be Written To The Property. The Expression Was Evaluated, But
Error    3    Error loading MLS_AZ_PHX.dtsx: The result of the expression ""C:\sql_working_directory\MLS\AZ\Phoenix\Docs\Armls_Schema Updated 020107.xls"" on property "ConnectionString" cannot be written to the property. The expression was evaluated, but cannot be set on the property.      c:documents and settingsviewmastermy documentsvisual studio 2005projectsm l sMLS_AZ_PHX.dtsx    1    1   


"C:\sql_working_directory\MLS\AZ\Phoenix\Docs\Armls_Schema Updated 020107.xls"

Directly using C:sql_working_directoryMLSAZPhoenixDocsArmls_Schema Updated 020107.xls
as connectionString works

However - I'm trying to deploy the package - and trying to use expression:
@[User::DIR_WORKING] + "\Docs\Armls_Schema Updated 020107.xls"
which causes the same error to occur

(Same error with other Excel source also:
Error    5    Error loading MLS_AZ_PHX.dtsx: The result of the expression "@[User::DIR_WORKING] + "\Docs\Armls_SchoolCodesJuly06.xls"" on property "ConnectionString" cannot be written to the property. The expression was evaluated, but cannot be set on the property.      c:documents and settingsviewmastermy documentsvisual studio 2005projectsm l sMLS_AZ_PHX.dtsx    1    1   
)

View Replies !
Creating A New Expression And Using A Previously Created Expression In The Definition
Can I reference a previously created expression in a new expression?  I took a very quick look and not having much luck?

 

Thanks

View Replies !
SSIS &&"XML Source Adapter&&" Can't Make XSD Location An Expression
I am using the "XML Source Adapter" in an SSIS package.
I notice that although you can specify the XML filename as an expression, the XSD appears to have to be a fixed file path.
This is a problem for me since the path for the XSD is different in my development than it will be in production (in production it's on drive E:, which I don't have).
 
I'd like to have the file location specified in the config file, but since I can't make it an expression how can I do that?
 
Also, since they don't have Connection Managers I can't switch DelayValidation on.
 
Thanks.
 
 

View Replies !
Using A Variable In An Expression To Populate The &&"executable&&" Property Of An Execute Process Task In SSIS
Hello,
 
I am having a hard time setting the executable path for an Execute Process Task in SSIS.  I have a variable that is initialized at package statup which holds the path to an executable in Windows.  When I set the property "Executable" Path in an expression, I get a warning that the path for the executable is not set.  One workaround was to try and initialize the variable with a bogus path with the hopes that the "correct" value will be written on run-time. NO LUCK. I still get the error and I cannot run the package until I put a static path.
 
Does anyone have a clue as to what is going on??
 
Mike

View Replies !
Report Builder: How To Provide Parameter In The Report Generated Report Builder
Hi All,

I have used Report Builder in one of the project for client. Is it possible to provide parameter in the report that is generated by Report Builder? It's quite the same with the parameter in usual Report/RDL (by Visual Studio).

 

And is it possible to pass the UserID that is running the report to the Data Source View or directly to the query? Currently, I need to get the UserID of the user that runs the report to do some filtering of the data (in SQL Query). I can do this easily in the RDL file developed by Visual Studio, which I can use global parameter User!UserID and pass to query. I find difficulty to use SQL Execution Context (select USER_NAME(),SUSER_NAME()), because report needs to be run as certain account, so that the report can be subscribed by user (e.g. email subscription). How to pass this UserID to the query/data without end-user intervention in Report Builder?

 

Thanks.

View Replies !
Report Builder: How Can I Append Two Table Fields To Report In Report Builder
 
Hi,



When i select datasource in Report Builder, i am able to see all the available DataSources.

Eg: I have selected one datasource from the list and which has 3 tables(table1, table2, table3) associated to that datasource.



when i drag and drop table1 fields to report, i am not able to see the other 2 tables(table2 & table3)

Is there any property or relationship do i need to maintain?



Thanks,
SR.

View Replies !
SQL Cmd Builder
Also i'm kinda new to using SQL Express / MS SQL since i've been a long time MS Access Fan heheHow do you deal with autonumbers?Say i have a Customer table with the following fieldscust_id - primary key - [ data type ? autonumber ? ]cust_name - textcust_phone - text something like that.  correct?then next step would be to say build an INSERT INTO SQL statement to add my new recordI recalled in web matrix you could build and test your own SQL Queries
before pasting them into your code. How do you achieve this in VWD 2005?Thanks!

View Replies !
Need Builder
i need a database built. primewoobiz@yahoo.com or call 661-349-6079

 

View Replies !
SQL Query Builder
Hi people!I'm looking for an SQL query builder application that helps me constructSELECT queries with full respect of underlaying relational model. It wouldbe nice if the app is database independant because my work covers MSSQL,mySQL and Oracle DB.OpenSource and/or comercial suggestions are welcome!*** thanx ***

View Replies !
Superior SQL Builder
HiI am new to SQL Server and was wondering if anyone has experience withSuperior SQL Builder from Red Earth Technologies.http://www.superiorsql.com/WhoShouldUse.aspIs this product everythingthat it is cracked up to be.ThaqnksJames

View Replies !
Syntax Builder
I'm looking for a "free" tool that will build sql statements for me.....anyone know of a good one?

View Replies !
MDX Query Builder
Good day,

I would like to know if there are any good MDX query builder tools out there. The one that is shipped with AS does not suffice in that it does not support more than 2 axes. Also if there are any are there any that make life a little easier in that they are drag and drop and all but create the statement for you?

I need to create a matrix in SSRS using cubes and in doing so need to write MDX queries, not my strong point. Are there any tools that can help me "auto create" the statement with drag and drop functionality?

Thanks in advance

View Replies !
Query Builder Bug?
HI, in a lookup component, when I want to use the query builder, it will show tables from a different connection manager than the one I picked for being the lookup source. E.g. connection manager A points to a schema that contains table1 and table2 and connection manager B points to a schema  that contains table 5 and table 6.

When I configure the lookup component to use connection manager B, I still see connection manager A tablles; isntead of seeing table 5 and 6 I see table 1 and 2.

Am I missing something?

Thank you for your help,
Cctoe

View Replies !
DB2 And Report Builder
I have successfully deployed a standard Report (i.e. non Report Builder) to our Report Server using a Shared Data Source to an iSeries Access for Windows Driver. The Data Source has the following properties:
 
Type :                    OLEDB
Connection String : Provider=IBMDA400.DataSource.1;Data Source=AA;Initial Catalog=AA;Default Collection=MITDTA;Catalog Library List=MITDTA,MVXBDTA
 
The Report works perfectly using this connection.
 
However when I try to run a Report Builder Report based on a Report Builder Model that uses this same shared connection I get the following error:
 
An attempt has been made to use a data extension 'OLEDB' that is not registered for this report server.
----------------------------
Cannot create command for data source 'dataSource1'.
----------------------------
An error has occurred during report processing.

 
Any ideas?

View Replies !
How To Get The SQL From A Report Builder ?
Hi,

    I am trying to extract the SQL out of a Report Builder Report. As recommended in a msdn article, I have enabled the trace flag as below

"add name="Components" value="all,RunningJobs:3,SemanticQueryEngine:4,SemanticModelGenerator:2" .

 

However i still do not see the SQL in the log files.

 

Can you please help me on this ?

View Replies !
Report Builder
Does anyone know how to get the column markers to show up in the report designer? MSDN documentation indicates that they can be used to freeze columns in the report. I can't seem to get them to appear.

Thanks in advance for the help.

Mark

 

 

View Replies !
Report Builder
 

I need multilanguge report where is header text with company address. Address is coming from database, by report language.

 

Then product lines are grouped by product family.

 

All headers must be rendered by language. Headers can't be static.

 

Is this possible with latest version of Report Builder?

 

Jarmo

 

 

 

 

View Replies !
Report Builder Bug ??
Hi,
I have a table A with column say col1, col2,col3. I have a query which has self join on this table.
But I can not add same table twice to model from the list of tables ! When I click the table in left pane to right....its no more in left pane ...to select it again !!

somebody please help !

View Replies !
Report Builder
I currently work with Report Manager to deploy reports that I develop using SQL Server 2005.  I'm very interested in getting started with Report Builder.  Can anyone suggest a good place to start?

View Replies !
Report Builder
I am attempting to create a report using the report builder.  I can see the button for the report builder on my report server but nothing happens when you click it.  I also attempted to go directly to the url but once again nothing.

Finally, I attempted to run the application directly from the file structure and in doing so there I got the following errors.  Could not find file 'reportbuilder.chm.deploy'.  I created a junk text file with the same file name and attemted to run the app again and this time I got a error that said: Could not find file 'reportbuilder.exe.deploy'.  After that I created another junk text file and named it the same as that.

This is part of the errors that I recieved.  This doesn't suprise me based on the hack I did to get to this point.  Below is a summary of the errors, details of these errors are listed later in the log.
 * Activation of Reporting ServicesReportServerReportBuilderReportBuilder.application resulted in exception. Following failure messages were detected:
  + Exception occurred loading manifest from file ReportBuilder.exe: the manifest may not be valid or the file could not be opened.
  + File ReportBuilder.exe is not a valid Portable Executable (PE) file.
  + PE file does not have enough data.

I'm not sure what the overall issue is and why these files would be missing.  Any guidance in relation to this situation would be great.  Thanks.

View Replies !
Report Builder
OK so I've developed quite a few reports using report server projects. Now I'd like to see what is available to the end-user after I, as a developer, am sick to tears of making and customizing reports. So I went to Report Builder.

 

 

I open Report Builder and see the list of my five entities. Then when I drag and drop a field from one of the entities to the report designer, ALL of the four other entities DISAPPEAR!

 

Can you not design a report in Report Builder using fields from multiple entities? The design of our databases have much to be desired, so that would make using Report Builder impossible...

 

Am I missing something here?

View Replies !
Report Builder Not Available?
 Hi,

I have just installed Sql Server 2005 Express Adv. Services and
found out that the Report Builder is not accessible.

Is it not possible at all to get Report Builder together with
Sql Server 2005 Express?

If not, are there any other way to create reports instead of the
Report Designer in Business Intelligence Development Studio?

Kind Regards,
Blixt

View Replies !
Report Builder
Is Report Builder capable of building any complex reports that Visual Studio Report Designer can build?
What are the limitations of using Report Builder with SQL Server Databases?

View Replies !
Report Builder And CRM 3.0
Hello:

Does anybody know of an easy way to give lots of end-users of MS CRM 3.0 permission to create reports using the Report Builder? Heck, what's an efficient way to give lots of non-admin type users (regardless of CRM)  the capability to use the Report Builder? Right now it seems that every Windows user has to be granted rights on an individual basis.

Based on various documentation, it appears that assigning the Report Builder role is meaningless unless users are defined under Site-Wide Settings as being either a System Administrator or System User. I know CRM creates a user called ReportingGroup, but assigning it a site-wide setting of System User with a Report Builder role doesn't flow to the individual members of ReportingGroup.

According to some other documentation I came across, ReportBuilder is a clickonce app that essentially needs to verify that the actual individual Windows user is permitted to access ReportBuilder. Given this fact, then it would seem to me that granting a group appropriate permissions to Report Builder is pointless.

In general, I'm failing to find solid information on SSRS2005 security and CRM 3.0, specifically as it relates to Report Builder permissions.

Does anyone have recommendations? Thanks.

View Replies !
SQL Report Builder
 
For the models I have created, there are tables (X and Y) which have multiple rows per emplid (which is the key that links these tables to the other tables).  I want to be able to join on those tables in report builder and have the results only return only the most recent records in the table.  Do you know how to do this and can you show me?

View Replies !
Report Builder
When I build a report in Report Builder and then I export it out into a excel sheet why does in merge columns together? How do I keep it from merging cells together?

View Replies !
Report Builder
How do you get the hyperlink off a report when you export it into excel?

View Replies !
Report Builder
Is there a way to build a total box at the bottom of a report and format it to grab certain data to total?  Not a text box.

View Replies !
Report Builder
Trying to put a date into my report but the date I'm placing in there has a timestamp as well.  How do i get rid of the time and only have the date?  Using the function DATEONLY but it still gives the time.

View Replies !
Report Builder
Can you filter off of two different dates in Report Builder? 

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved