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

Import data from excel to mongodb using ssis

$
0
0

Hi Team,

Is their any option to import data from excel to mongodb using ssis. If it is possible anyone please help on this issue.


Thanks Bala Narasimha


How do I define a BINARY Parameter Type?

$
0
0
I have a SQL Server Stored Procedure that uses a LSN BINARY(10) as an input parameter. How do I define that in SSIS? Using an Execute SQL Task in Control Flow to try and Execute the SQL Server Stored Procedure.

How to copy latest file from multiple directory into common directory ?

$
0
0

I want to  copy newly created file(.orig) from multiple directory into common folder using ssis package .

Diretory contains file name is in form of PSANsiteIDfromtodate_filecreateddate this file is recevied weekly for each site .

file starting PSANsite remains common only date get changed.

I have tried to this using cmd 

for /R "source" %f in (*.orig) do copy %f  "destination"

using this command I able to retrieve file from multiple folder but not able to get the newly created file from the directory

please guide me to solve this problem


sql server job running SSIS package failed. How to troubleshoot?

$
0
0
Job name: Utilites_Table_Update
User: ktmsql
Job started at: 10 May 2019 00:00
Job failed at: 10 May 2019 00:00 Next scheduled to run: 11 May 2019 00:00
Job outcome message: The job failed. The Job was invoked by Schedule 33 (Daily). The last step to run was step 1 (Replace Data in Utilites Table with production data).
Step 1 (Replace Data in Utilites Table with production data): Executed as user: abc\def. Microsoft (R) SQL Server Execute Package Utility Version 10.50.6000.34 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 12:00:00 AM Error: 2019-05-10 00:00:15.92 Code: 0xC0202009 Source: Utilites_Table_Update Connection manager "SourceConnectionOLEDB" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source:"Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Unable to complete login process due to delay in opening server connection". End Error Error: 2019-05-10 00:00:15.92 Code: 0xC020801C Source: Data Flow Task 1 Source - vwUtilities [1] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2019-05-10 00:00:15.92 Code: 0xC0047017 Source: Data Flow Task 1 SSIS.Pipeline Description: component "Source - vwUtilities" (1) failed validation and returned error code 0xC020801C. End Error Error: 2019-05-10 00:00:15.92 Code: 0xC004700C Source: Data Flow Task 1 SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2019-05-10 00:00:15.92 Code: 0xC0024107 Source: Data Flow Task 1 Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 12:00:00 AM Finished: 12:00:15 AM Elapsed: 15.554 seconds. The package execution failed. The step failed.


Process Azure Analysis Cube incrementally

$
0
0

we have Azure Analysis cube(Tabular) which is around ~50 GB. We have Partition the FACT table w.r.t weekending date .

The table has weekending date as the date column . How do we process the cube only the data change for the particular partition rather than process full . Please suggest how we can achieve using SSIS .If we have use script task then additional dll sometimes doesnot get recognize during publish. we are using SSDT 2015

Colon interpreted in SSIS causes an error 0xc020902a showing as a truncation error

$
0
0

Is this a bug?   (C:\Program Files (x86)\Microsoft SQL Server\140\DTS\MappingFiles\JetToMSSql9.xml)

For the column in question, the Excel sheet shows a relationship = example '1:2   or '1:3 or '1:1 (one to two or one to three or one to one).  The data is an authoritative source.  There is no fooling around with the source. I've tried data transforms and it doesn't seem to help.   What happens when the file is read is Excel tells SSIS "I am a date" and the '1:2 gets recreated as '1900-01-01 01:02:00' which is not at all what is in the Excel package.   

The correct interpretation would be that this is a string because it begins with the standard single quote.   When SSIS runs, it fails with a truncation error 0xc020902a.  The string is listed as a WSTR in the SSIS package because the colon and single quote place the object into code page issues.  On the other hand, the single quote and colon are in an older xls file (2007) and not xlsx.   The correct interpretation of the value is literally "1:2" and this is how it should show up on the database.   Instead, SSIS consistently insists that the field (I tried enlarging it from a WSTR at 255 to a WSTR at 4000 to now avail) - insists the field is a date and issues this error.

Why does it do this?  What might fix this issue where an interpreter makes the call rather than the actual code?


R, J


Base64 Decode String using SQL

$
0
0

Hi, I am using base64 encoding to store string in DB, but to retrive if I want to decode string, is there any function which supports that?

Here is my Base64 Encoded String :

ewogICJlbXBsb3llZXMiOiB7CiAgICAiZW1wbG95ZWUiOiBbCiAgICAgIHsKICAgICAgICAiaWQiOiAiMSIsCiAgICAgICAgImZpcnN0TmFtZSI6ICJUb20iLAogICAgICAgICJsYXN0TmFtZSI6ICJDcnVpc2UiLAogICAgICAgICJwaG90byI6ICJodHRwczovL3Bicy50d2ltZy5jb20vcHJvZmlsZV9pbWFnZXMvNzM1NTA5OTc1NjQ5Mzc4MzA1L0I4MUp3TFQ3LmpwZyIKICAgICAgfQogICAgICBdCiAgfQp9

to view you can use this codebeautify.org/base64-decode tool.

So what would be sql query to print plain text instead of base64 string?

get a package in script task

$
0
0

Hello 

I make a script task  in ssis control flow for manipulating existing dataflow at run time. ( dataflow is created in another package in same project )

but I have error and I can't get text error. 

do you have a idea to get data flow from another package ? the are a exception to use DTS object in script task ?

 thanks
       string mySample = @"Template Load Stage.dtsx";            object ConnexionStringVar;            object QuerySource;            object Sourcecolumn;            // Create an application and load the sample.     //   RuntimeWrapper.Application app = new RuntimeWrapper.Application();     //  Package pkg = app.LoadPackage(mySample, null);            string projPath = @"D:\SSIS\Prototype master package bulk\Template\Carl Load Data To Stage\Carl Load Data To Stage\bin\Development\Carl Load Data To Stage.ispac";            Project proj = Project.OpenProject(projPath);            Package pkg = proj.PackageItems[0].Package;            //    Connections myConns = pkg.Connections;            //    int connCount = myConns.Count;            //Console.WriteLine("The number of connections in the package is: {0}", connCount);            MessageBox.Show("test");


Edit script task doesnt work in VS 2013 and SSDT 12.0 with windows 7 ?

$
0
0

Edit script task doesn't work in VS 2013 and SSDT 12.0  with windows 7 ?

I m trying to open the edit script task but it doesnt open and nothing happens.




Open my SSIS Package at the very top rather than at the middle in Microsoft Visual Studio

$
0
0
This may seem really trivial...but is there any way that I can save my SSIS Package and my Microsoft Visual Studio project so that when it opens in Microsoft Visual Studio the SSIS flow begins from the very top? For some reason when I open the SSIS Package in Microsoft Visual Studio it is opening up where the middle of the SSIS Package is initially displayed and we have to scroll up all the time to get to the beginning.

Send mail task message body font rule question

$
0
0

Say if I have copied Times new roman font  text and have placed the text in a message body variable in the config file then when sending email , will the email smtp exchange server impose its own font in the body of the email ? or it will still be Times new roman font.

If I have to impose my own font what do I need to do ? 

SSIS 2014

VS 2013





What is wrong here?

$
0
0

DELETE P
from [dbo].[Pri] P
inner join [ETL].[Pri_Delete] D
on  P.[Bran]=D.[Bran] 
and  P.[Discount]=D.[Disco] 
and P.[Ite] =D.[Ite] 
and P.[Pric]=D.[Pric]

it is not deleting

Can you pull down data from SQL Server Amazon Web Services with a SSIS package?

$
0
0

We have SQL server running on an instance of EC2 –  and we need real time reporting (done with report builder) and published on our local report server. 

Can you pull down data from SQL Server Amazon Web Services with a SSIS package?

Or configure a report server on Amazon SQL server and have the URL available to individuals without active directory credentials?

Or can report builder on my local machine be configured to pull in information from SQL Server Amazon Web Services? 

OLE DB Source to Multiple destination with Different Column

$
0
0

What will be best way to handle a use case where-

1. I have a old -db source containing 10 columns

2. This source data need to go to three places  with different fields from source

  • -Excel 1 ( 5 fields from Source ) 
  • - Excel 2 with different field than previous excel
  • - SQL server table to with another combination of fields


Script task to chose column seems to be an option.Multicast does not provide ability to pick and chose specific column.

Thank you


SSIS Packages and Machine Readable Files

$
0
0
I have a question around SSIS packages to see if it is possible for them to read Machine Readable files.
The version of SSIS that I am using is Visual Studio 2015.  I have a .DAT file that is in a machine readable format.  In the file connections in SSIS I didn't see anything specific. Being new to SSIS I didn't know if it was possible or not.

Ssis job fails with below error.

$
0
0
Hi Msdn, I have an ssis job which sends mails to customers and job failed with below error. Can you post solution for this. Thanks.

SSIS Export data from sql to excel sheet

$
0
0

HI

Can any body help me how to handle below scenario.I have one 2 millions records in sql sql server i want to move all the data to excel sheet .as per my knowledge  excel supports maximum of 1 millions records , 
will it be possible to auto populate the rest of the data into second sheet(Sheet2$) once the first sheet is filled. Please guide me


صيانه تكييفات كاريير || 0235695244 || توكيل تكييف كاريير || 01225025360 || امبابه

شحن فريون تكييفات وايت وستنجهاوس & 0235695244 &صيانه وايت وستنجهاوس & 01225025360 &مصر الجديده

Create Tables Dynamically from Flat Files and load Data in SSIS

$
0
0

Hi I'm using VB 2017 I need a code that i can create new tables with the headers in my text files as the column names.

they all in Tab Delimited

--

Viewing all 24688 articles
Browse latest View live


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