business-intelligence

Data flow task executing successfully but not writing any rows to Excel file

ぐ巨炮叔叔 提交于 2019-12-06 01:09:16
I am working on SSIS package that is fetching data from SQL server and inserting into Excel file... in Data Flow Task i've used OLE Db source and Excel destination . After configuring OLE Db source i can preview the resulting row and even data flow task executing successfully without giving any error.. but not inserting any row.. Have you tried writing to a flat (text) file first to be certain that data's coming out of your data flow task and going into the results? Be absolutely sure that you've mapped the columns from the source to the target as well. Well fortunately i found the answer,I

How to copy the contents of an FTP directory to a shared network path?

混江龙づ霸主 提交于 2019-12-05 20:31:46
I have the need to copy the entire contents of a directory on a FTP location onto a shared networked location. FTP Task has you specify the exact file name (not a directory) and File System Task does not allow accessing a FTP location. EDIT : I ended up writing a script task. I've had some similar issues with the FTP task before. In my case, the file names changed based on the date and some other criteria. I ended up using a Script Task to perform the FTP operation. It looks like this is what you ended up doing as well. I'd be curious if anyone else can come up with a better way to use the FTP

How to fit a week into a calendar time hierarchy?

限于喜欢 提交于 2019-12-05 19:30:42
As is usual with cubes, the users want things that don't fit into a hierarchy to be displayed hierarchically. They'd like to see Day > Week > Month > Quarter > Year as the hierarchy, but the problem with weeks is they can be part of 1-2 months, not just 1 month (and by extension part of 2 quarters, semesters, years). So my question is: how to set up the attribute relationships, and how to set up the hierarchy? Here is what I have, but I know it's not optimal. Hierarchies (cycle == weeks): Attribute Relationships: There is no Cycle -> Year, because it is a many-to-many relationship There are

Drill Through not working in SpagoBI server in birt report

好久不见. 提交于 2019-12-05 18:14:57
This is the setting of the hyperlink in birt report The script used to compute the param is as follows: if (params["idContratto"].match(row["contract_number"].toString()) == null){ if (params["idContratto"].value == "abc"){ row["contract_number"].toString(); } else{ params["idContratto"].value + "," + row["contract_number"].toString(); } } else{ if (params["idContratto"].length == row["contract_number"].length){ ""; } else{ temp = params["idContratto"]; temp = temp.replace(row["contract_number"].toString(), ""); if (params["idContratto"].indexOf(row["contract_number"].toString()) == 0){ temp =

Pivot transformation using t-sql [closed]

让人想犯罪 __ 提交于 2019-12-05 03:37:30
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . In SSIS there is a task called Pivot transformation that changes columns into rows, but how to do the same task in sql server using t-sql ? this is my sample table location product qty ----------------------- delhi PEPSI 100 GURGAON CAKE 200 NOIDA APPLE 150 delhi cake 250 so after the pivot transformation ON location as setkey and product as pivot key using ssis tool the o/p becomes location pepsi cake apple

DAX / PowerPivot query functions to spread aggregated values over time period

倾然丶 夕夏残阳落幕 提交于 2019-12-05 00:54:14
问题 I’m trying to work out the DAX expression [for MS PowerPivot in Excel 2010] to evenly distribute the sum of a value across the range it’s applied to, and re-sum that up for a given time span/period. It’s trivial to cross-apply in SQL server, though with every attempt, end up with the same wrong result. I’ve got the output from MS Project saved as Excel and imported/transformed using PowerQuery, so the start and finish/end dates are proper dates, the {X}h and {Y}d are integers, and the

How do you get a dynamic 12 business day view in Postgresql?

寵の児 提交于 2019-12-04 12:46:24
Here is the code I currently have that gives me the last 12 days SELECT * FROM table WHERE analysis_date >= current_date - interval '12' day; analysis_date is the date column in the table. I understand why this isn't working because it's not accounting for business days. How can I rewrite this so that I get an interval of the last 12 business days? I tried search online and found extract(dow from (date)) But I couldn't find an example where I need a weekday interval. Any help would be appreciated. This can be solved with a CTE: WITH business_days_back AS ( WITH RECURSIVE bd(back_day, go_back)

Is there any releavance for “ROW PER BATCH” AND “MAX INSERT COMMIT SIZE” IN SSIS PACKAGES?

六眼飞鱼酱① 提交于 2019-12-04 09:44:42
问题 I've have SSIS Package that is exporting 2.5 GB OF DATA containing 10 million records into Sql Server Database which has 10 partitions including PRIMARY FILE GROUP. Before Changing default Max Insert Commit size i.e."2147483647" and Row per batch .It was taking 7 mins for completed transformation with fast load option. But After chaning it some decent value with some formula, the execution was done in only 2 minutes. FYI- DefaultMaxBufferRows & DefaultMaxBufferSize were default value in both

Are there conflicts between SQL Server 2005 and SQL Server 2008?

隐身守侯 提交于 2019-12-04 09:13:52
I am told that SQL Server 2005 installation with BI tools and SQL Server 2008 with BI tools can't work together on the same computer. Apparently "some" things stop working. This was told to me by one of my team members. Since I'm new to SQL BI, I cant discount what he has said altogether and I dont want to install them both on my dev box and find out later that there is problem. Has anyone here installed them both, used both sufficiently well and found it to be working fine? Thanks. I'm not sure if this is your development system or the server... If its the server you can have side by side

Can we compare saiku with Pentaho Analyzer?

匆匆过客 提交于 2019-12-04 08:10:19
问题 I'm currently in an internship and i have to create a whole BI application. I think i'll use pentaho, and I have to use just open source component. I know that Pentaho Analyzer is not free My question is: Is saiku an equivalent of analyzer? If yes, can I use it with pentaho instead of analyzer? thks 回答1: Yes of course. Both the tools use the same underlying OLAP engine - Mondrian. Saiku is essentially the same as analyzer providing many of the same features - however it has a different