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

صيانة اعطال تلاجات كريازى & 01225025360 & 0235695244 &المنصوره

$
0
0
KIRIAZIKIRIAZIKIRIAZIKIRIAZIKIRIAZIKIRIAZIKIRIAZI

Unable to Open SSIS 2017 package

$
0
0

There are a couple of SSIS package (2017) version developed by another developer that are running flawlessly from the server. As the developer moved to a new role, he saved the packages in a folder in the server . I am unable to open those packages from the server. When i asked another developer , he did not have trouble opening those packages . Can anyone please help me understand why I am unable to open those packages from the server when other developers can ?

I am trying to open the project containing the packages . The other developer follows the exact same steps on the server and he is able to open packages from the project .These packages were developed in VS 2017 .

However, when I try to open it tries to open as VS 2015 and I receive :

"One or more projects in the solution were not loaded correctly. Please see the Output window for details"

C:\Users\User\Source\Workspaces\Workspace\SSIS\Internal\Integrations\Solution1\SSIS Prod\SSIS Prod\SSIS Prod.dtproj : error : Access to the path 'C:\Users\User\Source\Workspaces\Workspace\SSIS\Internal PMO\Integrations\SSIS\SSIS Prod\SSIS Prod\SSIS Prod.dtproj' is denied.

These packages are located on a shared folder in the server which all team members has access to . We are trying to open these packages from the server and it's very strange that few developers are able to open packages and few aren't able to. The issue would make sense if we are trying to open from our local machine as there could be version mismatch. But we are all trying from the same server .

Please help me so that I am able to open these packages .

Thanks,

How to create SQL tables based on XSD file in SQL Server

$
0
0

Hi All,

I want to create tables based on XSD file.
Can you please help me on this.

Regards,


Vaishu

Script Component issues : SSIS 2014 to SSIS 2017 migration

$
0
0

Hi,

I am trying to migrate our SSIS 2014 packages from SQL Server 2014 to 2017:

The Extract packages have all been upgraded with the help of the SSIS Package Upgrade Wizard and manual (!) recompile of all .NET scripts in each package. The extract layer is running without any issues and pulling data from its sources.

The TransformLoad layer packages are proving to be a major problem. It appears thatScript Component is missing as can be seen from the first image below. Examining the source of one of the package, the Script Component version is still SQL Server v10 i.e. SQL Server 20108 R2 which was the original version of SQL Server used for this solution.

Does anyone know why these script components are not being upgraded by the wizard? More importantly, is there a workaround without having to delete, add, edit every problem script component in every package?

How to create ASCII file from SQL server table using SSIS 2014 ?

$
0
0
How to create ASCII file from SQL server table using SSIS 2014 ?



Importing from Mainframe with Host Integration Server

$
0
0

Hi team,

 I am trying to import from mainframe  to SQL Server using SSIS as something similar mentioned in below article

https://www.mssqltips.com/sqlservertip/3497/importing-mainframe-data-with-sql-server-integration-services-and-host-integration-server/

Please let me know if i want to import  directly from mainframe systems instead of local folder, what connection property need to set?

 I am using  HIS 2013 and SSMS 16.5.3 for SSIS.

Thank you

CASE

$
0
0

Hi,

From the query below, if shipdate is null then I use the planneddate, else I use the shipdate to compare between from and to.  Not sure what I have wrong here, but it did not work for me.  Can you please help.-thanks

declare @ID int
declare @bp nvarchar(20)
declare @From date
declare @To date

set @ID =99
set @bp = '30'
set @From ='10/21/2019'
set @To ='10/21/2019'

select  ID,orders,bp, plandedate,shipdate
from  saleorders
where [ID]=@ID
and bp =@bp
and 
case when shipdate is null then  plandedate between CONVERT(date, @From,101) and CONVERT(date,@To,101)
  else   shipdate between CONVERT(date, @From,101) and CONVERT(date,@To,101)

end

Transpose data in Excel and the result save as txt/csv

$
0
0

Dear All,

I have Excel Sheet with 2 columns (Column1 and Column2)

For Example,

Column1            Column2
A                       100
B                       150
C                       200

I would like the data of Column2 transpose to below of Column1.

Result
A
100
B
150
C
200

And the Result will be outputted to txt/csv format.

Anyone can help?



Stack Columns From Left To Right Into One Column In Excel and the result output as to txt/csv

$
0
0

Dear All,

I have Excel Sheet with 2 columns (Column1 and Column2)

For Example,

Column1            Column2
A                       100
B                       150
C                       200

I would like to stack Columns From Left To Right Into One Column

Result
A
100
B
150
C
200

And the Result will be outputted to txt/csv format.

Anyone can help?



In SSIS, Web service extraction is failing due to cookie authentication issue

$
0
0

While I was trying to extract data from webservices, I am getting below error.

[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The Web Service threw an error during method execution. The error is: Error while trying to validate session using cookie authentication: Invalid session. Please login again..
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
   at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".

Picking earliest date in multiple dates in same colum( it is NVARCHAR files in staging table )

$
0
0

HI,

I have Dates column( NVARCHAR )datatype in sql table which contains multiple dates concatenated with space like following

 ID                 Dates 

1                1993-09-30   1994-09-22  1993-09-26  2003-09-20

I want pic Earliest date and migrate to one column through ssis package. is it possible from derived transofmation or any other process. is it possible from inside data folw task ? I have already mapped these other columns to my detination table. but I want to filter this from source table and migrate onely one date to destination column. is it possible ?

please help me on this scenario. 

Thanks,

Sriraj

SSIS and Sp_send Email issues

$
0
0

Hello 

I am  trying to send email  with attachment (the attachment file is generated in the same package couple of tasks before the  sending mail part) .I am trying to send email using Execute Sql task and sp_send_mail procedure. 

total file path and email subject are  being passed from ssis variables 

But i am getting an error saying that  \\shared\ETL\DEV\SendEmailFileName_FIleID_32  is invalid 

But i see the file in the Folder directory 

use [msdb]

Declare @filename nvarchar(1000)=   ?




Declare  @emailSubject varchar(1000)= ?


EXEC dbo.sp_send_dbmail 
  @recipients='correctemailadress',
  @subject=@emailSubject,
  @body='This is a System Generated Email',
  @profile_name = 'EDS SSIS DEV Mailer',
 @file_attachments=@filename
  ;

Can you please help ?

JSON TO SQL Table using SSIS

$
0
0

Hi,

Any approach to read  JSON file and load into table using SSIS . ?

Not a third party tool

many thanks


Mapping Data Types in Parameter Tab of Exec SQL Statement

$
0
0

I am using an Exec SQL Task hooked up to a connection manager using Native OLE DB\SQL Server Native Client 10.0 as its provider.

The data types in the drop down list of the Parameter Mapping tab don't seem to map up directy to SQL Server data types. The dropdown has types like "Currency" instead of "Money" and "SHORT", "LARGE_INTEGER" ...

Does anyone know of a reference where I can see how these data types map to the corresponding SQL Server ones. I can't seem to find this anywhere.

 

Thanks in advance :)

Task running twice in SSIS

$
0
0

Hi,

I am using execute package task to call my package when the files are present in the folder. So as soon as my package runs everything is executing perfectly but recently I just added a execute sql task at the start of my package and want this task to be executed when the package is triggered. But this execute sql task runs twice.

At first it runs when the package starts and this is the 1st step (which it should be) but after the last dataflow is executed the same sql task is run again which is causing problems for me.

When I am doing the similar thing in a different package and not using the execute package task to trigger the package everything runs fine in that, It is actually a problem when I am calling this package through a execute package task.

Thanks,

Minhal


SINGLE CONNECTION WITH MULTIPLE DATABASE IN SSIS PACKAGE

$
0
0

I'm using SQL server 2016

I have a server named abc , in that server i have 3 databases A1 , A2 , A3 

i want dynamically connect to all these databases in SSIS and run a particular query in each database ( table name in the query is same all over the 3 databases)  how can i achieve that


SSIS Odata Source with CRM dynamics online

$
0
0

Hi,

Does anyone know when the SSIS Odata source will be updated to work with SQL server 2017 and 2019 and With CRM version 9.1?

There are a number of issues that make the SSIS odata useless when loading CRM data.

1. Odata does not support multi picklist which were introduced with CRM 9.0?

2. When you use any combination of CRM 9.0 or later and SQL server 2017 or later neither the preview nor the loading works. The error mostly revolves around unexpected data types with Date/Datetime.  If you use Sql server 2016 or later with CRM version 8.1 you can preview and load data, but as soon as you change to 9.1 in the Odata connection string, everything starts failing.

Thanks

Scott

VS 2017 SSIS Script Task takes 20+ seconds to open in edit mode

$
0
0
VS 2017 SSIS Script Task takes 20+ seconds to open in edit mode. What I have found on this issue. When a script task opens in edit mode there is one temp solution creates in background at C:\Users\**\AppData\Local\Temp\Vsta\ location. Once it creates for first time it will still be there until we close the Script Task widows itself. And the other thing after this solution creates and we click again and again on edit button of script task it opens within one seconds. So it means creation of temp solution is having something which every time takes long time. Please let me the solution anyone knows it.

VS2017 Loop Import Excel (.xlsx) files OLE DB Errors

$
0
0

Hi all,

I'm struggling with importing data from Excel files into an SQL Database.
Hopefully anyone can help me, since I probably tried all possible solution on the internet.

I'm running the following versions:

Microsoft SQL Server Data Tools for Visual Studio 2017  (vs_NIJSEN)
Version 15.9.17
VisualStudio.15.Release/15.9.17+28307.905
Microsoft .NET Framework
Version 4.7.03062

Installed Version: IDE Standard

C# Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a

Common Azure Tools   1.10
NuGet Package Manager   4.6.0
Project   1.0
ProjectServicesPackage Extension   1.0
ResourcePackage Extension   1.0
ResourcePackage Extension   1.0
SQL Server Analysis Services   15.0.1528.0
SQL Server Data Tools   15.1.61906.03120
SQL Server Integration Services   15.0.1300.371
SQL Server Reporting Services   15.0.1528.0
SsmsVsIntegration   1.0
Visual Basic Tools   2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Studio Code Debug Adapter Host Package   1.


What I want to achieve:

  1. I've got a folder with multiple .xlsx files.
  2. I want to loop through these files and import the values into a database.
  3. On success the file is renamed and saved in another folder called Success.

This flow isn't new to me and I've done this with .csv files without any problems.
But with Excel files, I cant get it to work for multiple files.

First problem:
First I struggled with the Excel Connection manager to get this to work.
The files are created with Excel 2016.
On my SSIS server, the is no Office installation.

I downloaded and installed the ACE 16.0 (64-bit) AccessDatabaseEngine (Microsoft Access Database Engine2016 Redistributable).
I've also installed the 32-bit Microsoft Access Database Engine 2010 Redistributable.

When I create a new Excel Connection Manager, I select the Microsoft Excel 2007-2010 version (also tried all the newer Excel versions).


I've selected this version, since my installation seems to only run the 32-bit DtsDebugHost.exe and the 2010Redistributable version is installed as 32 bit version.
Selecting Excel 2016 gives the information the OLE DB 16.0 version isn't installed in the above case.


When I add an Excel Source in my Data Flow and select the created Excel Connection Manager, I'm unable to select the Name of the Excel sheet.

Creating an SQL command select * from [Sheet1$]  successfully shows a preview.

When I go to Advanced Editor > Component Properties and select AccesMode = OpenRowset and I fill in the Sheet1$ in OpenRowset, then the Table or View works (but selecting the dropdown again, the "No tables or views could be loaded" error pops-up again and I'm not able to select Sheet1$.



It seems there is still something wrong, perhaps this is the cause of my Loop problem?

I installed all possible combinations for the Access driver (
2010 32bit & 2016 64 bit,
only 2010 32bit or 64 bit,
2010 64bit, 2016 32 bit
only 2016 32bit or 64bit etc.
) but I'm still not able to succesfully select the dropdown.

.. next in reply



Visual Studio 2017 - SSIS Excel Source Data Flow APPCRASH on devenv.exe module mso40uiwin32client.dll

$
0
0

I'm getting APPCRASH each time I edit the Excel Source Data Flow object.
I have an existing SSIS Package that I change the source of the file through a Variable so I pick the Excel sheet through"Name of the Excel sheet" then click on the "Columns" to verify the columns associated to this sheet.  I get the error either by clicking 'Ok' to exit the Excel Source Editor or by clicking the "Preview" button.

I have tried selecting different driver version of the Excel connection manager but with same error.

VS give the following error:

Problem signature:
  Problem Event Name:APPCRASH
  Application Name:devenv.exe
  Application Version:15.9.28307.586
  Application Timestamp:5c9e3ce1
  Fault Module Name:mso40uiwin32client.dll
  Fault Module Version:16.0.4519.1000
  Fault Module Timestamp:58bed810
  Exception Code:c0000005
  Exception Offset:00166226
  OS Version:6.3.9600.2.0.0.272.7
  Locale ID:1033
  Additional Information 1:5861
  Additional Information 2:5861822e1919d7c014bbb064c64908b2
  Additional Information 3:6fbe
  Additional Information 4:6fbe6bde2701766d81cbca0597a5fa35



... when you're a phan, be phanatix!

Viewing all 24688 articles
Browse latest View live