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

Import csv through SSIS package - format date column

$
0
0

Hello -

I need to import a csv file to SQL server using SSIS.  The date column in excel is, for example, 7/8/2014, but it imports as 41828 in SQL Server.  How can I convert this?

Any help will be greatly appreciated!


Staging table in separate schema or separate database

$
0
0

Hello,

We are using SSIS to import data from 2 external sources into an OLTP database. The data from the sources needs to be inserted into different tables which contain foreign key relationships and therefore the insertion order matters.

We have therefore decided to insert the data into staging tables using fast load and execute a stored procedure to insert the data into our tables, and finally truncate the staging table data.

Is this scenario, is it better to use a separate schema for our staging data or a separate database? For our staging data, we do not require any backups or logs and the data will be truncated as soon as the stored procedures finish execution.

Flat File connection to Linux box

$
0
0
How can I access a flat file on a linux box using the Flat File Connection Manager?

ssis - combine 3 tables from 3 different source into one

$
0
0

I want to combine 3 tables from 3 different source which brings in millions of rows from each table into one for daily use. Is there any way i can bring it into a temp holding place using some task in ssis so that it won't consume more resources and will run faster, when combining it to 1 table.

SSIS Term Lookup special char problem

$
0
0

Hi all,

Im building a term lookup project.

It works fine but when it finds words like educação it cuts the word and it thinks the term is educa Default code page on the source server is 1252 and localeId Portugal.

sorry if it is a newbi question.

Any help would be greatly apreciated.

AM

regarding ssis

$
0
0

Hi ,
I have a scenario like ........I have 6 flat files(Country1,Country2,Country3,.......Country6) in the source and i need to fetch the records of Country1 flat file to Country1 table in destination.Similarly Country2 flat file to Country2 and so on.

working with.ispac file

$
0
0
I have created a new SSIS Project and I want to use project deployment.  Everything that I've read online about this starts with the use of a .ispac file for deployment.  This file does not get created when I create the project in Visual Studio.  I can't find anything anywhere that explains how to create this.  Where can I get this file generated so I can use it for deployments?

Having problem with "Ghost column" in SSIS using CDC

$
0
0

I'm having a problem using CDC in SSIS.  I removed a column from a table that we no longer used.  However, the column was in the table when CDC was initially enabled.  I have disabled and reenabled CDC; dropped an recreated the connection managers in the SSIS package and made sure that the column was no longer part of any table that I was using.  I still get the error listed below.  Any suggestions? 

Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E14.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E14  Description:
"Invalid column name 'ColumnName'.". (Not actual column name.)


Harold Jackson


Using Custom Components Programmatically

$
0
0

Hi,

I created a custom Data Source component and I want to programmatically use it but I am not sure how to instantiate it.  For example if I want to instantiate a OLEdbSource component the code is

IDTSComponentMetaData100 srcComponent = pipeline.ComponentMetaDataCollection.New();
srcComponent.ComponentClassID = "DTSAdapter.OleDbSource";

But what classID do I provide for custom components and how do I specify the class ID for custom components?  I am very confused, pls help.

thanks

VS


Venkat Sriramulu

Foreach File enumerator is empty- Sequence Container

$
0
0

I've a SSIS package running in SQL Server 2012. The package is doing mirroring 2005 SQL DB into 2012 SQL (Backup and Restore).

I am trying to do all the DB restore in a single SSIS Package using Sequence container and Foreach loop container. If I run the Sequence container separately it works fine, but if I use Precedence Constraint to connect the Sequence Container, I got the below error on the second Sequence Container's Foreach loop. Expression used in the foreach loop are retrived from variable

The For Each File enumerator is empty. The For Each File enumerator did not find any files that matched the file pattern, or the specified directory was empty.

Any help in this regard is highly appreciated.

Thanks

DataReader with ODBC as source Using a user variable in the sqlcommand

$
0
0

 

Does anyone know how I can use a user variable in a sqlcommand in a Datareader source with an ODBC connection as the source?
I am storing a date value in a user variable(Date) I fill with a SQL Task and then want to use the value in the sqlcommand I use in the Datareader Source. It won't let me use the @variablename in the sql command.
Can anyone help with some advice on how I can make this work?
Appreciate any help I can get.
Thank you

ERROR WHEN LOADING THE DATA FROM DB2 TO SQL 2012

$
0
0

[OLE DB Destination [296]] Error: 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 11.0"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".
[OLE DB Destination [296]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[Copy of GL_BDGT_DSB_TYPE_TXT] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value could not be converted because of a potential loss of data.".
[OLE DB Destination [296]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC0209077 occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination" (296) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (309). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

TRIED ALL WAYS BUT COULDNT FIGURE OUT ANYTHING

SSIS - SQL 2012 - CozyRoc Dynamic CRM Destination "The value is too large to fit in the column data area " Error

$
0
0

Hi, 

Iam using Cozyroc Dynamic CRM destination plug in to "Update" against a Microsoft CRM entity.

I get the following error while running the SSIS package - 

"

Error: 0xC002F304 at Sync CRM Dynamics Client Updates, CRM Contact Destination [50]: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Pipeline.DoesNotFitBufferException: The value is too large to fit in the column data area of the buffer.
   at Microsoft.SqlServer.Dts.Pipeline.PipelineBuffer.SetString(Int32 columnIndex, String value)
   at Microsoft.SqlServer.Dts.Pipeline.PipelineBuffer.set_Item(Int32 columnIndex, Object value)
   at CozyRoc.SqlServer.SSIS.CrmDestination._HandleResult(PipelineBuffer buffer, IStatus[] resList)
   at CozyRoc.SqlServer.SSIS.CrmDestination._SetupData(PipelineBuffer buffer, ArrayList records)
   at CozyRoc.SqlServer.SSIS.CrmDestination.ProcessInput(Int32 inputID, PipelineBuffer buffer)".
Error: 0xC02090F9 at Sync CRM Dynamics Client Updates, CRM Contact Destination [50]: The CRM Contact Destination was unable to process the data.
Error: 0xC0047022 at Sync CRM Dynamics Client Updates, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "CRM Contact Destination" (50) failed with error code 0xC02090F9 while processing input "Dynamics CRM Destination Input" (62). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure." 

There is no way to find out what the specific error is , as it doesn't mention the "failure column" details.

Can someone provide any information in this regard?

Thanks!



Why SSIS designer dont have any color than white&black?

$
0
0
I am using Visual Studio 2012 , Sql Server 2012 and creating SSIS packages , Designer is black&white . How can I add some color same as VS2005 & 2008?

Error message creating SSIS Package

$
0
0

Hello -

I am getting the following error message in the SQL Destination editor:

             The selected data source is on a remote computer.  The bulk insert operation can be executed only on the local computer

It then will not let me click on "Mappings."

Any help is appreciated!

Juniormint


How to use a key file in the FTP Task using and SSL connection

$
0
0

In the past I have used this code to set the FTP pass word in an FTP component task in SSIS.

Does anyone know how to use a Key file in an SSL connection to download a file from an FTP site?  If not can you tell me where I can get the C# code examples to learn how to create a script task or if there is another way in SSIS to download large files from an SSL FTP site?  Thank you for any help offered.

public void Main()
{
ConnectionManager FTPConn;
FTPConn = Dts.Connections["FTPServer"];
FTPConn.Properties["ServerPassword"].SetValue(FTPConn, Dts.Variables["FTPPassword"].Value);

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


Antonio

MySQL connection

$
0
0

Hi,

I have a requirement to pull data from Mysql, for this I've goggled and installed MySQL Connector/ODBC 5.2 from oracle corp

I am using ADO.Net with Connection Manager defined using [Provider: .Net Providers\Odbc Data Provider] 

Driver=[MySQL ODBC 5.2 Unicode Driver]..... also tried Driver=[MySQL ANSI 5.2 Driver]

UserName ####

Password ****

It connects well also pulls data, however I am not able to load it to target ( using ODBC Destination or SQL Server Dest .. or any) The error I am getting is as below even after using data conversion I am either getting below error

OR to every field it is adding up additional width say client_id is of actually 10 varchar size in source and target both, but error will say the client_id of width 15 cannot be inserted to target of width 10, same for other columns also .. then I added substring/trim function in the MYSQL Query to pull data still it says same 15 size cannot be pushed to 10 size column...

Error at Data Flow Task 1 [SQL Server Destination [390]]: The column "client_id" can't be inserted because the conversion between types DT_NUMERIC and DT_I8 is not supported. 

Error at Data Flow Task 1 [SQL Server Destination [390]]: The column "effective_date" can't be inserted because the conversion between types DT_DBTIMESTAMP and DT_DBDATE is not supported. 

Error at Data Flow Task 1 [SQL Server Destination [390]]: The column "end_date" can't be inserted because the conversion between types DT_DBTIMESTAMP and DT_DBDATE is not supported.


Neil

.xlsm as Data Source in SSIS

$
0
0

Hi,

I have 6 files with extension .xlsm (macro). How to import the data from these files using SSIS to a sql table ?

I have these 6 files in 6 different folders in the same path, How do i call them in the ssis ? 

Thanks in Advance

Export to Excel formatting Issue

$
0
0

Good Afternoon,

I am trying to export a dataset to excel 2010, however all of the columns are exporting as DT_WSTR although the table that the data is coming from is set correctly either to money or int.

I have tried to change the data type in the advance editor for excel destination, however when I execute the package the data type changes back.

Any idea's?.

Thanks

Steve

Getting error code 1 when calling SSIS package from a stored procedure (SQL Server 2008 R2)

$
0
0

Hello,

I am trying to execute a SSIS package from SQL Server 2008 R2 stored procedure but getting error code 1 (as per my knowledge, error code description is as below:

0 The package executed successfully.
1 The package failed.
3 The package was canceled by the user.
4 The utility was unable to locate the requested package. The package could not be found.
5 The utility was unable to load the requested package. The package could not be loaded.
6 The utility encountered an internal error of syntactic or semantic errors in the command line.

Details:

I have a stored procedure named "Execute_SSIS_Package" (see below sp) which executes 'Import_EMS_Response' SSIS package (when I execute this package directly from SQL Server BID it works fine it means package itself is correct) and calling it from SQL as:- EXEC Execute_SSIS_Package 'Import_EMS_Response'.

Here I receives error code 1.

Can anyone help me to resolve this issue please?

Thanks in advance!

CREATE PROCEDURE [dbo].[Execute_SSIS_Package]
 @strPackage nvarchar(100)
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;

 DECLARE @cmd VARCHAR(8000)
 DECLARE @Result int
 DECLARE @Environment VARCHAR(100)
   
    SELECT @Environment = Waarde
 FROM  Sys_Settings
 WHERE Optie = 'Omgeving'

 --print @Environment
 
 SET @strPackage = '"\W2250_NGSQLSERVER\BVT\' + @Environment + '\' + @strPackage + '"'

 SET @cmd = 'dtexec /SQL ' + @strPackage +  ' /SERVER "w2250\NGSQLSERVER"  /Decrypt "BVT_SSIS" /CHECKPOINTING OFF /REPORTING E'
 --print @cmd
 EXECUTE @Result = master..xp_cmdshell @cmd, NO_OUTPUT
 --print @Result

END

Viewing all 24688 articles
Browse latest View live


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