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

Uploading File automatically with SFTP SSIS Task

$
0
0

Hi guys, now I want to upload file automatically to my client server on daily basis through SFTP SSIS task. I have downloaded the files using WinScp but i dont know how to upload file daily using SFTP SSIS Task. Do you think it is still possible ?

Thanks


change date format m/d/yyy hh:mm:ss to yyyy-mm-dd using ssis expression

$
0
0
Hi I have one doubt in ssis

I want change date format m/d/yyy hh:mm:ss to  yyyy-mm-dd using ssis expression
and DatFormat variable dataype is string  and  getting  format like 5/28/2019 12:00:00 AM

data comes like below:
5/28/2019 12:00:00 AM
based on above values i want 
output in other variable
2019-05-28

I tried like expression 
(DT_STR, 4, 1252) DATEPART("yy" , @[User::DateFormat])  + "-" + 
RIGHT("0" + (DT_STR, 2, 1252) DATEPART("mm" , @[User::DateFormat]), 2)  + 
"-" + RIGHT("0" + (DT_STR, 2, 1252) DATEPART("dd" , @[User::DateFormat]), 2)

but getting error like below : 
ADDITIONAL INFORMATION:

The function "YEAR" does not support the data type "DT_WSTR" for parameter number 1. The type of the parameter could not be implicitly cast into a compatible type for the function. To perform this operation, the operand needs to be explicitly cast with a cast operator.

Evaluating function "YEAR" failed with error code 0xC0047089.

The function "YEAR" does not support the data type "DT_WSTR" for parameter number 1. The type of the parameter could not be implicitly cast into a compatible type for the function. To perform this operation, the operand needs to be explicitly cast with a cast operator.


can you please tell me how to write expression to achive this task in ssis

SSMS 16.5.3 cannot open Integration Services 13.0 - SQL Server 2016 SP2 (Standard Edition 64 bit)

$
0
0

Hi all, here is what is going on. On my development computer I was able to connect to our remote production SQL Server 2016 / Integration Services from SSMS 16.5 for the past 3 years.  This past week I installed Visual Studio 2019.  When I now try to open Integration Services from SSMS 16.5, I get the error below.  Please know, I am not sure VS 2019 is related to the issue but on my other development computer that DOES NOT have VS 2019 installed I am still able to open Integration Services from SSMS 16.5.

For the past two days I have tried almost everything posted on the internet boards.  I even did a full uninstall of SSMS 16.5 and installed SSMS 16.5.3 and it still does not work.  I receive the same exact error.  This is making believe there is some corrupt setting in the registry or something like that.  

Has anyone come across this when SSMS 16.5.3 or 16.5 cannot open the correct version of SQL Server 2016 Integration Services?

Error:

Connecting to the Integration Services service on the computer "SOMESERVER" failed with the following error: "The specified service does not exist as an installed service.".

This error can occur when you try to connect to a SQL Server 2005 Integration Services service from the current version of the SQL Server tools. Instead, add folders to the service configuration file to let the local Integration Services service manage packages on the SQL Server 2005 instance.



Trailer Row in SSIS

$
0
0

I am aware of the SSIS Header property when creating a flat file , do ssis have a similar property to add a trailer row to the file ???

I have been trying to create a file with header and trailer rows , is there a way to create and write a trailer row to the file without opening the file for the second time ?


 

How can I import and view SSIS packages exported from version 2008, on version 2017

$
0
0

I had SQL Server 2017 Express installed, but because documentation said data integration or SSIS packages are not supported, I wiped all that out and installed SQL Server 2017 Developer. Then in the documentation it says SSIS packages are done with Visual Studio rather than SQL Server. I have Visual Studio 2019 Professional. On a website I read to create an SSIS package, in SQL server I should click new, project, and choose integration, but that option isn't present for a new project, and again. the documentation says to go through Visual Studio. On the Microsoft Downloads page for SQL Server 2017 Developer, along with Management Studio, it has SSDT (SQL Server Data Tools), and it seems that will contain data integration and SSIS packages. I attempted to install that. It asks what Visual Studio 2017 instance to install to. Because it listed my 2019 installation in the dropdown I chose that. When the installation of SSDT was almost complete, it backed out. I saved the log file. The other option given is 'Install new SQL Server Data Tools for Visual Studio 2017 instance". There is some VS2017 stuff on my machine, the shell maybe, that came with SQL Server 2017. I don't know. I do not want to load another entire version of Visual Studio on my machine, in this case 2017. Because I've spent so much time with this I decided to post in a discussion forum.

The SSIS packages I need to see, are part of a convoluted system on old servers that we must assume responsibility for. I plan to write a replacement using something else. I will not be running the SSIS packages. I just need to see them. Any help will be appreciated.

search for a string in a column - DAX

$
0
0

I am writing a dax function, column name is my_type and it has following values

ab_hourly

ab_daily

cf_daily

cf_minute

now i am writing an if statement where i can search for any rows from the above column that has the text "ab"

in oracle we use the like function example: my_type like '%ab%'

how can we do this in dax ? 

Read XML Code inside a text file

$
0
0

Hello All

I am currently working on a project where i have to read the  text file (file contains all XML Code) and parse that and load it to the database tables. If its a XML file  i would use a XML source to  load that file. But here it is a Flat file with XMl code in it . how to load that to a Sql database. Also i have to loop through such files and load all of them 

Can you please  help 

Problem with delimiter when exporting data into CSV file in SSIS

$
0
0

Hello Everyone,

I having problem to load data into CSV file using ssis package from sql table. For example i have the following data(Only one row and one column) and while exporting this data into CSV it is splitting into 4 columns . I need data same as below (only one row and one column )after exporting to CSV also. But this is not happening in my case.

aaa;bbb;ccc;ddd;

Please can any one suggest me for this scenario?

Regards,

Ail


Anil


VS2019 SSIS Toolbox invisible and transparent.

$
0
0

An SSIS project was just setup and nothing else was done, while the SSIS Toolbox behaved strange, blank and transparent.

I tried recreating the project, or just restart my computer, it happened again.



As I run the command 

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe" /resetsettings

, it worked for a while , but happened soon after.

Any help would be appreciated.

Using SSIS for incremental loading on Views.

$
0
0

Hi friends,

i have to create 15 dimensions in my SQL DW and need to populate it from various views and not tables.

each view have maximum of 10 columns .

I want to do incremental loading without writing program but by using SSIS.

Could you please suggest what should i use to achieve incremental loading from Views of Source OLTP.

Many thanks in advance guys..

Regards

Sachin

SSIS

$
0
0

Hey, 

I am trying to move data from multiple CSV files to SQL server and also trying to capture CSV filename,CSV file destination and total rows in CSV file. Iwas able to create Foreach Loop and I was able to move data to SQL sever but I don't know how to get filename, file_destination and total number of rows in SQL server. I need this information in different SQL table so can you plz help me with this? 

Thank you,

Dynamic source table name to be used in DFT

$
0
0

Here is the business scenario-

1. From source I am getting data at weekly level.

2. One sp is written which based on dates return 3 columns , year, start date and end date (object type output)

3. This is pased to for each loop in ssis package ..ado.net enumerator.

4. Inside for each loop , DFT task is defined.

5. In DFT query, I need to use above sp output like table name should be "Table"+_+@year

And where clause will have condition as (date >@startdate and date <enddate)

6. Start date and enddate can be used as parameter but dynamic table name is not working.

7. I have tried to put entire dft query in variable  also but that also throwing error.

Please suggest on dynamic table name 


The Script Task uses version 15.0 script that is not supported in this release of Integration Services

$
0
0

Hi All,

We are migrating an SSIS project from SQL 2012 to SQL 2016. The project upgraded successfully without any issues and able to run few packages without any errors. But there are few packages which has got the script task and they are failing. The error message is as below: -

Error: There was an exception while loading Script Task from XML: System.Exception: The Script Task "ST_bb19096e98ab45d2a2d6132b995cd509" uses version 15.0 script that is not supported in this release
of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts
are converted automatically to use a supported version, when you open a SQL Server Integration Services package
in %SQL_PRODUCT_SHORT_NAME% Integration Services. at
Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.Load
FromXML(XmlElement elemProj, IDTSInfoEvents events)

This runs fine when run from BIDS (VS2015). It also runs fine if the project is deployed from BIDS and run through agent job. But when the deployment happens through .ispac (deployment) file, this error occurs. Can somebody suggest how to get past this error?

Is it any known issues with migration or with SSIS 2016?

Thanks.


Creating a new SSIS Project

$
0
0

I'm trying to get everything set up so I can start an integration project.

I have

  • Windows 10 pc (64 bit)
  • SSMS - I connect to 4 diff servers, depending on client
  • Visual Studio Community 2019 last patch as of today
  • Installed SQL Server Integration Services Projects in Extensions
  • Installed Data Storage and processing in the VS 2019 Installer

Create Project ScreenSelect Project type

Choose dir and name

Infinite loop barTask Manager while waiting

I've tried names, paths, variations oof the project type.  How do I create a new SSIS Integration project?

Define an unchanged column in ssrs

$
0
0

Hi,

I wan to have this mesure in SSRS : Rate= (Amount unpaid per institution)/ (outstanding amount for all the institution)

So  my question is : how do i generate the denominator to be always constant and not per institution ?

Thanks a lot . 


UPDATE Statement not updating any records in SQL server 2016

$
0
0

Hi,

I have a table with 260K records and an Informatica ETL job will runs daily with update(35K+ records will be updating daily). It was running smoothly till last month. Not sure what happened to server/database/table NO records getting updated from the ETL job. Tired with STATISTICS update before running the job, its working with FULLSCAN option only. I was able to update the records from SSMS but not from ETL job.

Any suggestions/guidance will be great help form.  

SQL server 2016

Windows Server 2016 ENT Edition

192GB RAM

Regards,

SJB


Delimiter File Read Task Installer failed to show in SSIS Data Flow Items

$
0
0

I downloaded the Delimiter File Read and followed the instruction and installed it. The file is on the correct directory (>:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents) The file DelimitedFileReader.dll is there.

However, when I go to BI Development Studio and try to add the new task I can't see it in the SSIS Data Flow Items...it is not visible. Does anyone know why I can add/see it?

Thanks


Kajoo

Instruct DataFlow task to Redirect bad input rows to Log file?

$
0
0
Hi all,

I am new to SSIS 2005 packages but have written many in DTS 2000.

I am importing a CSV flat file into a SQL server table with SSIS 2005. How do I tell the Dataflow task to redirect rows that don't have the proper number of columns into a Text log file so I can inspect the bad rows later?

I have pointed the Red Error arrow to a text file and defined all the Columns to redirect the error to the text file. I have set the Max error count to 200. However, the entire package fails at the first bad row in the PrimeOutput() method, indicating that Column 13(the last one in the Row) is missing in a particular row. I have tried setting Ignore the error, but that doesn't work either.

I have created a DTS 2000 package that works on the same CSV input and the same SQL table destination. It seems to have no problem with my instructions.

I must be missing something. Can someone tell me what it might be? I really would like to use SQL 2005 or even SQL 2008 because of the new features available, but I am stuck on what I thought would be a very easy first step (because it is very easy in DTS 2000).

Any help would be appreciated. Thanks...

Export to a excel with merged columns from SQL server

$
0
0

Hi all, 

I have my data in sql server like this: 

I need to export this data to a format like this. 

Please let me know how to achieve it using SSIS only. (I dont have SSRS to achieve this)

Thanks,

Vikram 

How we can get Error Column name due to Foreign Key Constraint mismatch error

$
0
0

Hi Friends,

We are using SSIS packages to import CSV data into a table name sales_details. This table has someForeign Key referenced columns. So i wants to get the particular column name during import due to which SSIS import is failing or stopping.

But till now i am not getting any way to get the column names, mainlydue to foreign key constraint mismatch or error occurred due to Check Constraint.

I am using OLEDB connection for inserting the data. any help on reference will be great.

Thanks in advance.



Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>