Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

SSIS FTP Task Sending Files to Wrong Folder

$
0
0

I'm using the FTP Task in SSIS to send files. They task succeeds but the files get uploaded to the wrong folder. Instead of being sent to the cg268301 folder they are being sent to the cg268300 despite selecting /cg268301 from the remote path field in the FTP task editor.

I've tried uploading this file to the /cg268301 file using an execute process task and it works fine. I just don't know why it won't work with the FTP task.


multiple flat flies create 1 zip file

$
0
0
I have a requirement where I will be receiving multiple flat files in a folder, I need to create 1 zip file and drop it into another folder. How can I achieve this using SSIS ?

MBH

How to pass parent parameter to child and change value in child package

$
0
0

background....

Need to load files from folder to a DB then process a SSAS cube. I only want to process the Cube if we have loaded files (data) into the OLTP db.

I have a parent package that will be executing 5 child packages.

Each child package has a "For Each Loop" container to loop thru a file directory

the last task(SSAS tasks)  on Parent package should only execute if any of the child packages load or processed files.

I can't determine how to change the parent parameter value from the child package.

My thinking is when the parent package executes each child package and if the For Each container in each Child package executes cause it has found files to load, I would change the increment the counter. Then at the end have a precedence set to test the counter parameter if is greater then 1 then call the SSAS task to process the Cube.

Loading .xlsb file

$
0
0

           How to load .xlsb file using Excel source component in SSIS. Below is the connection manager i see in the properties window.

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=;Extended Properties="Excel 8.0;HDR=YES";

Do I need to change any values here to process .xlsb file

       


Sarvan

Issue SSIS Script task

$
0
0

Hi, I am executing a SQL job - running a SSIS package having a script task which is just accessing

another database and calling procedures and returning values. If the size of data is small . fewer rows, I am not having any issue but if the data is huge

It fails with following error Query Timeout expired System.InvalidOperation.Exception :- The provider could not determine

the Int32 value .For example the row was just created , the default for the Int32 column

was not available and the consumer had not yet set a new Int32 value Please suggest My script task is pretty simple calling a stored procedure and taking out paramters


Executing SSIS Package on hosting server

$
0
0

Hi guys,

My Environment:

  • SQL Server 2014 Standard Edition
  • SQL Server Installed on a hosted environment (different domain than our company domain)
  • I have to use DNV\MyUserName when RDP in order to access the hosted environment. 
  • Our Company Domain is IHM\MyUserName
  • Ultimate Objective is to Execute SSIS package from a .NET application (I'm currently using MS LightSwitch)

I have the SSIS package deployed to SSISDB Catalog, I can run it locally without any problem.

Here is the script:

declare @output_execution_id bigint
exec [dbo].[CopyNewDataToLegacy] @output_execution_id output
print @output_execution_id

If I take the same script and run it from my local machine domain(IHM\MyUserName)

I get the following error

Msg 27123, Level 16, State 1, Procedure create_execution, Line 38
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.
Msg 27123, Level 16, State 1, Procedure start_execution, Line 32
The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication.

It's very clear to me that I can't execute the package without Windows Authentication.

  1. Is there a workaround to execute SSIS package with SQL Server Authentication?
  2. We have a secondary domain control in the hosted environment company but I can't see our IHM\Users from DNV Environment (I browsed Entire Directory from (SSMS >>> Logins >>> New Login >>> Click Search Button >>> Locations) I only see users under DNV\Users (which is not our domain)
  3. I'm sure we are not the only company having this kind of issues, so I'm wondering how other companies who use hosting environment are working around this limitation.

I appreciate all the help.

Thank you


Codernater

Loading from excel

$
0
0

Hi I am trying to import an XLS in a SQL database using Import data My xls has a datefield displayed as "27Feb2015" and number format is [$-409]ddmmmyyyy the xls loading is converting it into a valid date 2015-02-27 00:00:00 and

creating a datetime field in the table Please suggest how can I load the field as "27Feb2015" in the table. I tried to modify the source column datatyp to nvarchar but it didnt work ,

gave conversion error plz suggest



Select data from flat file to sql table

$
0
0
Hi,

I have TXT file in below folder
H:\Spectrum_V2_ETL\Loading_Geography_Table_Data\Loading_Geography_Table_Data\emp.txt

Now I want to load data from flat file into sql table using Stored procedure,
Could you help me in that to provide the proper syntax for same.

Regards,
Vipin Jha

Thankx & regards, Vipin jha MCP


Can we use LoadFromSqlServer method to execute the SSIS Package deployed in SQL server 2014?

$
0
0

Hi Team,

When we started the project, we used SQL Server 2008 R2 as DB and VS 2012(C#) for developing the UI. Recently we upgraded the .Net fwk to 4.5.2(VS 2013) and SQL server to 2014. This resulted in one odd behavior.

From our .Net code (a WCF service), we were using LoadFromSqlServer method to load the package deployed in SQL server 2008 R2, which was just working fine. However the same didn't work when we migrated to SQL Server 2014. Please note, we did upgrade all the SSIS packages using the upgrade package wizard from the SQL server 2014.

After going through this sample code, https://msdn.microsoft.com/en-us/library/ms136090.aspx, we understood, Microsoft recommends to use LoadPackage method to load the package from SQL server. We tried this and things worked just as expected.

Few Questions:

1. Is LoadFromSqlServer method decommissioned? Should we not use this to load the package deployed in SQL server >=2012 ?

2. Updating the code to use the LoadPackage method is the only or the best way to resolve this issue if the packages are deployed in SQL server that is >=2012 ?

It is quite important for our team to know this as we have to rebuild few other components based on the response to the above questions.

Appreciate your suggestions.

Thanks.


Ravikiran. S

Excel Connection Issues in SSIS

$
0
0

Hi All,

I am trying to load data from Excel 2007 version into SQL server 2014 DB. I am getting below error

" SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed".

I have tried all options like changing Delay Validation is TRUE and in properties i changed runtime 64 bit to FALSE

but still getting above error. If anyone could help on this?

Thanks

Ven

Loading data into SQL SERVER 2014 from Excel 2007 Version and issue with records loading

$
0
0

Hi all,

I have excel sheet contains data with hyperlinks for couple of the columns. I loaded data into SQL table but hyperlinks are not appearing. Could any one suggest how to get hyperlinks in SQL while loading from Excel?

Thanks

Ven

Error connecting to oracle

$
0
0

Hi Guys - 

When I'm connecting to Oracle I'm getting below error. 

Not sure on how to troubleshoot this error. And I have no idea on how to configure TNS.ORA accordingly to solve this error. I'm hoping at least if I can interpret the problem correctly to support team they will take care of this. Any help is appreciated. 

Thanks.


- please mark correct answers

Loading data from multiple excel sheets to SQL server 2014 table

$
0
0

Hi All,

I have one excel sheet contains 50 sub sheets with different names on it. Is it possible can i load all sheets into SQL using SSIS? If yes please provide screen shots or link?

Thanks

Ven

Error in Execute SQL Task

$
0
0

Hi,

In my SSIS Package, I am using execute sql task to assign value to variable

ResultSet = Full result set
SQLStatement= SELECT COL1,COL2 FROM source1

In the Result set tab i have the following:

Result Name Variable Name
0 resultCol1
1 resultCol2

resultCol1 AND resultCol2 are variables with type Object. 

I dont understand whats wrong .... please help me ... 

Error

[Execute SQL Task] Error: There is an invalid number of result bindings returned for the ResultSetType: "ResultSetType_Rowset".

Regards,

Vipin jha


Thankx & regards, Vipin jha MCP

SSIS Jobs Failed

$
0
0
i ,

I have created simple package loading data from source to destination.
in BIDS working fine, but when i created job through sql server agent job I am getting below error.

Error:-
The Job was invoked by User . The last step to run was step SQL AGENT JOB

attached the screenshot for reference.

Kindly help me to get solution of above issue.
Regards,
Vipin Jha
 

Thankx & regards, Vipin jha MCP


Practical experiences with Project Deployment Model - Is it advisable to use it?

$
0
0

Hi all

We are currently migrating from SQL Server 2008 R2 to SQL Server 2014. Our environment consists of three independent SQL instances (Development, Integration, Production) and we are dealing with 600+ SSIS packages. Our BI team consists of 10+ developers who are working largely in parallel. We are using source control (SVN) for managing our development artefacts across all three stages and we are using a self-developed tool for transporting packages from development to int to prd.

One question that we are currently trying to answer is wether it is a good idea to switch to the Project Deployment Model in SQL Server 2014. We have identified the following pros and cons and I am very interested to read about your experiences regarding the practical use of the Project Deployment Model. Does it perform well in a multi-developer, multi-stage environment? What project size would you recommend to use? Have you refrained from using the new model? Why? Thank you very much for your thoughts on this topics.

+ Catalog supports better organization of packages (folders, projects) than package model/msdb
+
More fine-grained management of catalog permissions
+ Automated logging and standard reporting
+ Different environments and environment variables supported (for DEV/INT/PRD)+ Project Parameters introduced.

- There is no way to deploy a single package to the server (this will be supported in SQL Server 2016).A project is the deployment unit. This might be challenging if a project consists of a large number of packages. And it is challenging in a multi-developer environment. However, this can be mitigated using automated build mechanism based on a source control system (create project from checked-in packages). In this scenario, developers will still deal with packages. A tool in the background will checkout all packages belonging to a project and will build the ispac file for deployment to the server automatically.

- Performance problems (=> according to my research, there may occur timeouts when developing large projects to the SSISDB-catalog; what is your experience?)

- Required efforts for adopting the new approach (e.g. changes of processes and self-developed tool)

I am looking forward to your replies.

Kind regards,Patrick

Need to move data from PDW Server to SQL Server

$
0
0

Dear Folks,

I need to move data from PDW Server to Sql Server through SSIS.

Can anyone have idea about which component should I used under Data flow for PDW part !


-Ashish 

End of year expression in variable

$
0
0

I have tried with this thing for hours and I can't get it to parse.

Trying to get last year so the expression should evaluate today as of "12/31/2014"

I looked all over on Google and couldn't find an expression to copy so I've been playing with it.

Here is what it is in SQL Server:

SELECT DATEADD(dd,-1,DATEADD(yy, DATEDIFF(yy,0,GETDATE()),0))

Absolutely could not get it to parse..even with DT tags, etc...

Any help would be awesome!!

SSIS to create a scheduled Package to run a SSRS report Automagically and extract the result to a .pdf

$
0
0

We have a SSRS Report...actually a letter...that we run on-demand and driven by a date parameter. Our Business Analyst would like to get out of the day-to-day of this and we are wondering if anyone in this incredible forum has created a SSIS Package that we can schedule that can automagically run our letter report, and output the result, the letters, to a .pdf.

I have never gone down this path before and am hoping for a little direction.

Thanks for your review and am hopeful for a reply.

DTS Package Failure

$
0
0

Hello Forum

I have a DTS Package that ran perfectly for a few days but now it is failing with the following message

Message
Executed as user: CSU\Administrator. Microsoft (R) SQL Server Execute Package Utility  Version 9.00.5000.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  10:15:00 PM  Error: 2015-08-03 00:39:48.33     Code: 0xC0029151     Source: Loading File to SFTP Execute Process Task     Description: In Executing "C:\Program Files\winscp\WinSCP.com" "/script="E:\MSSQL\SSIS\AudienceBuilder\LoadingFilestoSFTPScript.txt" /parameter "E:\MSSQL\SSIS\AudienceBuilder\Uploadedfiles\AudienceBuilder2_20150731.csv"" at "", The process exit code was "1" while the expected was "0".  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  10:15:00 PM  Finished: 12:39:48 AM  Elapsed:  8687.72 seconds.  The package execution failed.  The step failed.

SQL Server 2005 Standared Edition SP4.


Please click "Mark As Answer" if my post helped. Tony C.


Viewing all 24688 articles
Browse latest View live




Latest Images