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

DTS to SSIS migration issue

$
0
0

Hi,

We have recently migrated DTS 2000 packages to SSIS. All the tasks were migrated to SSIS but "The Execute DTS 2000 Task" was not migrated to SSIS. Could you please help me to migrate "The Execute DTS 2000 Task" to SSIS.

Thanks,

Raja.


How to Execute SSIS package through MySQL Procedure

$
0
0

Hi Everyone,

How to Execute SSIS package from MySQL Stored Procedure.

Please share your suggestions on this.

Regards,


Vaishu

Data Flow Items tab

$
0
0
When i click on tools -> choose tools Items dialog box, Control Flow and Data Flow Tab are missing.

I've just worked with SQL Server Data Tools and SQL Server 2012 and these tabs are not missing.

what's the problem?

Thanks.

Getting and error of Dynamic CRM Destination connection?

$
0
0

Hi,

I have used KingswaySoft Dynamic CRM Destination component to connect CRM 2013 in SSIS. bu getting below error when try to execute the package?

[Dynamics CRM Destination [20]] Error: An error occurred with the following error message: "KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: Please select a Client Market for the Parent Account(Error Code: -2147220891, Detail Message: Please select a Client Market for the Parent Account) (SSIS Integration Toolkit for Microsoft Dynamics CRM, v5.0.101.5040)

System.ServiceModel.FaultException<KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.OrganizationServiceFault>: Please select a Client Market for the Parent Account

".

Could you please anyone can help me regarding this error?

Thanks in Advance.


Thanks &amp;amp; Regards, Anil

How to move data from Sql Server 2008 R2 to Visual Foxpro 6.0 dbf file format

$
0
0

I have some data that resides in SQL that needs to be automated via a SSIS package to create the output to a Visual Foxpro 6.0 format for use by another application that cannot access the SQL server.

How can this be done with SSIS

Copy SSIS Packages

$
0
0

Can we copy all SSIS packages with folder structure from one  SQL Server to another SQL Server ?  is it can be done by SSIS packge or Sp 

An error occurred while skipping data rows on development server

$
0
0

Hi,

I have one package which contains once flat file source and few derive columns and oldbe destination (sql server table). It is loading data perfectly when I run on my personnel machine. when I deploy this to server. It gives the following error

An error occurred while skipping data rows. SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on FA_ASSETS returned error code 0xC0202091.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

I have tried this which is mentioned in the following links

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/abf4d13e-a417-4df6-9a68-b797e8281252/error-an-error-occurred-while-skipping-data-rows?forum=sqlintegrationservices

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a790460b-9ef5-482b-b219-f55c05fa30d3/error-occured-while-skipping-data-rows?forum=sqlintegrationservices

but no luck. If it is work on dev machine it means source file is fine. Any idea why it is failing on server???


MH

Fail to start project

$
0
0

Hi, everyone

When I click start to run the project, there is a error message: 

Failed to start project

------------------------------
ADDITIONAL INFORMATION:

Method not found: 'Boolean Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. (Microsoft.DataTransformationServices.VsIntegration)

I installed vs2012 iso and integrated, my version is 11.0.5058.0.

Any help appreciate.


SSIS Package configuration.

$
0
0

The SSIS packages is developed using BIDS 2008 and Database SQL Server 2008 R2.The package was developed in local box/Developement box and since the
connection string is pointing to local box , it works fine and data got loaded into the target tables.

When the SSIS packages is moved from Dev box to Pre Production or Production box , the package need to be modified since the database connection string
of local is different from Prod box.

To achieve the above process xml configuration has been done which contains the connection string details, but xml is pointing from the dev box path which might not exists in the prod box, so the package need to be open in Prod box and modify the xml file path again, which the Client is not suppose to do..

To avoid that an Environment variable need to be created which will contain the xml path.

But xml is not that much secure compare to database configuration. So they advice us to configure by SQL Configuration.

The Configuration table will be created in the Db and with the help of SQL Job , the SSIS package will be scheduled, but if the tomrrow the database server

changes the package need to re open again and modify the connection string for the configuration tables.

 

Could you please suggest the best possible solution for SSIS package configuration when the User move the package from Dev box to Prod Box
with least possible modification.

Issue with Loading Excel File to DB in SQL Server Agent Job

$
0
0

Hi ,

I able to execute the Package which access Excel file from Network drive using BIDS. But If I execute the same Package from Job its failing. Also If I use the Local drive, the job got succeeded. Also I am able to run the flat file source using the same user in the Sql server Agent. In Sql server agent Properties I Checked Use 32 bit run time then also its failing

While Loading the Excel File from a Job , I get the below Error:

Code: 0xC0202009     Source: test excel Connection manager "SourceConnectionExcel"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred.
Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft Office Access Database Engine"  Hresult: 0x80004005  Description: "Unexpected error from external
database driver (????????).".  End Error  Error: 2014-09-16 05:32:57.05     Code: 0xC020801C     Source: Data Flow Task 1 Source - Sheet1$ [1]     Description: SSIS Error
Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionExcel" 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: 2014-09-16 05:32:57.05   
Code: 0xC0047017     Source: Data Flow Task 1 SSIS.Pipeline     Description: component "Source - Sheet1$" (1) failed validation and returned error code 0xC020801C. 
End Error  Error: 2014-09-16 05:32:57.05     Code: 0xC004700C     Source: Data Flow Task 1 SSIS.Pipeline     Description: One or more component failed validation.  End Error 
Error: 2014-09-16 05:32:57.05     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:  5:32:56 AM  Finished: 5:32:57 AM  Elapsed:  0.53 seconds.  The package execution failed.  The step failed.,00:00:01,0,0,,,,0

Thanks,

SureshKumar



Account is SysAdmin - but Non-SysAdmins have been denied permission to run DTS Execution job steps without a proxy account.

$
0
0

Hi,

I have a SQL Agent Job that executes an SSIS package.  However when I manually execute the SQL Agent job from SSMS I get the following seemingly common error:

"Non-SysAdmins have been denied permission to run DTS Execution job steps without a proxy account."

However, the job owner is a member of both the SQL SysAdmin role, and also a member of the operating system's Administrators group.

The SQL Agent Service is running under Local Service (not something within my control unfortunately).

I have found many posts suggesting setting up a proxy account etc, but that seems to be for the case where the job owner is not a sys admin.  To be clear, the job owner IS a sysadmin.

This is occurring in the Production environment.  I have two other, seemingly identical environments that are working fine, so i am wondering if I have missed something obvious.


Any idea what I've missed?

details:
Windows Server 2008 R2 Standard
SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)    Enterprise Edition

Note - the jobs were migrated to the broken environment by scripting them from Env 1, with If exists, drop, create etc.

Thanks

Guy


Guy

Error in creating custom SSIS component in sql server 2014

$
0
0

===================================

The component could not be added to the Data Flow task.
Could not initialize the component. There is a potential problem in the ProvideComponentProperties method. (Microsoft Visual Studio)

===================================

Error at Data Flow Task [SSIS.Pipeline]: Component , clsid {33D831DE-5DCF-48F0-B431-4D327B9E785D} failed to initialize due to error 0x80131600 "".

Error at Data Flow Task [ [5]]: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".



===================================

Exception from HRESULT: 0xC0048021 (Microsoft.SqlServer.DTSPipelineWrap)

------------------------------
Program Location:

   at Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass.ProvideComponentProperties()
   at Microsoft.DataTransformationServices.Design.PipelineTaskDesigner.AddNewComponent(String clsid, Boolean throwOnError, Boolean select)

What was the possible causes.Please help me.This is irritating stuff

Insert data as per the folder name in ssis

$
0
0

Hi,

My table having data with id and name  field . and my folder is created with name field.

eg:

id   name

1       A

2       B

1       A

And my folder name is A,B etc...

I need to load the data into table as per my folder name in ssis package.

Thanks

AVS

Importing vs Deploying a package

$
0
0

Im trying to deploy a couple of SSIS packlages to another server. 

Im doing the following:
- build the solution with the deployment utility
- copy all the files (manifest, config and dtsx) over to the server
- remote into the server, run the manifest and select the 'validate package'
- select 'file system' deployment (not msdb)
- make the configuration changes and let the wizard finish

At the end of the steps, the validation runs and everything seems to go smooth, except that the package is not listed in SSMS under file system.

Alternative:
If I right click on file system, and manually import the package, it works except that how do i get it to work with a config file?  I think it will reference the same config file that the path was set on my local workstation when I did the build?

error while sending mail using script task in ssis 2008

$
0
0

Hi,

    i am trying to send mail using ssis 2008 script task.for my requirement i am not able to use send mail task.

code i have used is

declared read only variables system::packagename

 Dim PACKAGE As String
        PACKAGE = Dts.Variables("System::PackageName").Value.ToString()

        Dim myHtmlMessage As MailMessage
        Dim mySmtpClient As SmtpClient
        myHtmlMessage = New MailMessage("vijayabhaskar.perala@gmail.com", "vijayabhaskar.perala@gmail.com", "PACKAGE STATUS", PACKAGE + "WAS FAILED")
     mySmtpClient = New SmtpClient("smtp.gmail.com")
        mySmtpClient.Credentials = New NetworkCredential("vijayabhaskar.perala@gmail.com", "mypassword")
        mySmtpClient.EnableSsl = True
        mySmtpClient.Port = 587
        mySmtpClient.Send(myHtmlMessage)

------------------------------------

error i am getting is

Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
   at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at ST_c121e07caaa94c21bb1355d4f753112f.vbproj.ScriptMain.Main()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

-------------------------------------------------------------------------------------------------

can any one tell me where i am going wrong




Zipping Multiple Files Issue Using SSIS

$
0
0

Hello  All,

I al trying to ZIp Files from a specific folder.

here is what I am following

For Each Loop: 

Execute Process task:

Under Arguments:

"a -t7z " +  @[User::ArchivePath] + @[User::FileName] +"_"+

 (DT_STR, 4, 1252) MONTH( DATEADD( "mm", 0, Getdate() ))  +

 (DT_STR, 4, 1252) DAY ( DATEADD( "dd",0, Getdate() ))  +
(DT_STR, 4, 1252) YEAR( DATEADD( "YYYY", 0, Getdate() )) +"_" +
 Right("0" + (DT_STR,4,1252) DatePart("hh",getdate()),2)  +
Right("0" + (DT_STR,4,1252) DatePart("mi",getdate()),2)  +
Right("0" + (DT_STR,4,1252) DatePart("ss",getdate()),2)  +".zip "+

@[User::FilePath]+ @[User::FileName] 

Under File Path I have 3 files file1.txt, file2.txt, file3.txt

When I run this package, I am getting this error

Could some one guide on this?

Thanks


Thanks, Please Help People When they need..!!! Mark as answered if your problem is solved.

External Table is not in the expected format

$
0
0

So we have this .xlsx file from a vendor and we are trying to pump the data into a SQL Server Table. We create an Excel Connection Manager and attempted to read it and we got that error..."External table is not in the expected format"

What we had to actually do is to save the .xlsx file as a .xls file via a C# Edit Script and then read and save that .xls file as a .csv File to actually pump the data in.

I have been told that SSIS doesn't play well with Excel. I don't know if that's true or false. But what I don't understand is why we would get this message "External table is not in the expected format" when it is clearly defined as a .xlsx file. Does that actually mean that under the covers it truly is NOT a .xlsx file?

I appreciate anyone that could contribute to this.

Thanks in advance.

ITBobbyP85

OLE DB Source - Data is not displaying in Sorted Order

$
0
0

Hi All,

I have one OLE DB Source with Data access mode - SQL command from variable( this variable contains sql Query which has expression on it) and sorting the data on Id coulmn with below options

OLE DB SOurce -->show advanced editor -->Input and output properties -->OLE DB Source output( I have made Issorted as  true) and for ID column i have given sortkeypostion as "1"

But still, when the data is flowing to mergn join..Data is not comming in Sort order

Could you please help me on to get the data in sort order.

Thanks in advance.

how to use a variable multiple times in the data flow

$
0
0
DECLARE 
       @StartTime   datetime,
       @EndTime     datetime

SET @StartTime = (SELECT MAX(AvailDateTime) FROM dbo.Fact)
SET @EndTime = (SELECT MAX(AvailDateTime) FROM dbo.Product);
--DATEADD(day, 1, @StartTime);
--PRINT @StartTime
--PRINT @EndTime;
WITH 
       dates AS (
     SELECT DATEADD(Minute,5,@StartTime) AS [date]
	 WHERE DATEADD(Minute,5,@StartTime) <= @EndTime
     UNION ALL
             SELECT DATEADD(minute, 5 ,t.date) AS [date] 
             FROM dates t
             WHERE DATEADD(minute, 5, t.date) <= @EndTime
       )

I have the above sql, in this I'm using the 2 variables and calling @Starttime Variable couple of time. How should I build the SSIS package based on this query? how can I call the same variable in different place? how will SSIS take it?

Thanks

SSIS 2012 Script Task to Get File Properties

$
0
0

Hello,

I researched on how to grab a file properties such as file size, file modified date, etc and I came across the following link:

I followed exact steps and when I went to execute the package, I got the following error:

Below is the code:

// C# code
// Fill SSIS variables with file properties
using System;
using System.Data;
using System.IO;                        // Added to get file properties
using System.Security.Principal;        // Added to get file owner
using System.Security.AccessControl;    // Added to get file owner
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;

namespace ST_cb8dd466d98149fcb2e3852ead6b6a09.csproj
{
    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    {

        #region VSTA generated code
        enum ScriptResults
        {
            Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
            Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
        };
        #endregion

        public void Main()
        {
            // Lock SSIS variables
            Dts.VariableDispenser.LockForRead("User::FilePath");

            Dts.VariableDispenser.LockForWrite("User::FileAttributes");
            Dts.VariableDispenser.LockForWrite("User::FileCreationDate");
            Dts.VariableDispenser.LockForWrite("User::FileExists");
            Dts.VariableDispenser.LockForWrite("User::FileInUse");
            Dts.VariableDispenser.LockForWrite("User::FileIsReadOnly");
            Dts.VariableDispenser.LockForWrite("User::FileLastAccessedDate");
            Dts.VariableDispenser.LockForWrite("User::FileLastModifiedDate");
            Dts.VariableDispenser.LockForWrite("User::FileOwner");
            Dts.VariableDispenser.LockForWrite("User::FileSize");

            // Create a variables 'container' to store variables
            Variables vars = null;

            // Add variables from the VariableDispenser to the variables 'container'
            Dts.VariableDispenser.GetVariables(ref vars);

            // Variable for file information
            FileInfo fileInfo;

            // Fill fileInfo variable with file information
            fileInfo = new FileInfo(vars["User::FilePath"].Value.ToString());

            // Check if file exists
            vars["User::FileExists"].Value = fileInfo.Exists;

            // Get the rest of the file properties if the file exists
            if (fileInfo.Exists)
            {
                // Get file creation date
                vars["User::FileCreationDate"].Value = fileInfo.CreationTime;

                // Get last modified date
                vars["User::FileLastModifiedDate"].Value = fileInfo.LastWriteTime;

                // Get last accessed date
                vars["User::FileLastAccessedDate"].Value = fileInfo.LastAccessTime;

                // Get size of the file in bytes
                vars["User::FileSize"].Value = fileInfo.Length;

                // Get file attributes
                vars["User::FileAttributes"].Value = fileInfo.Attributes.ToString();
                vars["User::FileIsReadOnly"].Value = fileInfo.IsReadOnly;

                //////////////////////////////////////////////////////
                // Check if the file isn't locked by an other process
                try
                {
                    // Try to open the file. If it succeeds, set variable to false and close stream
                    FileStream fs = new FileStream(vars["User::FilePath"].Value.ToString(), FileMode.Open);
                    vars["User::FileInUse"].Value = false;
                    fs.Close();
                }
                catch (Exception ex)
                {
                    // If opening fails, it's probably locked by an other process
                    vars["User::FileInUse"].Value = true;

                    // Log actual error to SSIS to be sure
                    Dts.Events.FireWarning(0, "Get File Properties", ex.Message, string.Empty, 0);
                }

                //////////////////////////////////////////////////////
                // Get the Windows domain user name of the file owner
                FileSecurity fileSecurity = fileInfo.GetAccessControl();
                IdentityReference identityReference = fileSecurity.GetOwner(typeof(NTAccount));
                vars["User::FileOwner"].Value = identityReference.Value;
            }

            // Release the locks
            vars.Unlock();

            Dts.TaskResult = (int)ScriptResults.Success;
        }
    }
}

Eventually I am looking to just grab the Modified Date from the Windows Explorer folder and insert into table. Any suggestions? Thank you in advance!

Sanjeev


Sanjeev Jha

Viewing all 24688 articles
Browse latest View live


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