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

Getting Error while overiting the excel sheet

$
0
0

Hello,

My requirement is to overwrite the excel sheet instead of appending the next records. What I do to achieve this is drop sheet first then create sheet again. While doing this in execute sql task I am getting errors.

[Execute SQL Task] Error: Executing the query "CREATE TABLE `testtt` ( `case` VARCHAR(10), `case1` VARCHAR(50) ) " failed with the following error: "Cannot modify the design of table 'testtt'. It is in a read-only database.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. 

Same error for drop too. This is working fine when I do locally but when deploy it on server I get this type of errors. I assume this might be issue with accesses.

Please suggest me.


Ramu Gade


SSIS Server Crashes

$
0
0

Hi All,

We have 2 physical servers (Server-1 and Server-2). In Both the physical servers SSIS is installed.

If server 1 where SSIS is installed crashes , Can i pick up from server 2 where ssis is also installed ?

Is there any common place/repository where we can deploy the packages so that if SSIS crashes ,
So that it can pick from secondary SSIS.

Thanks in Advance

Can you minimize logging in a SSIS data flow when the database is in a SQL Server 2012 Always On Group?

$
0
0

We have a file that we are loading 1st into a staging database then into a production database that contains over 5 million rows. Both databases belong to a SQL Server 2012 AG. We would like to minimize the logging in the staging database but t the same time keep the staging database in the AG. I know about fast load and setting the buffer settings in SSIS but I've read that this doesn't work on replicated tables and I am assuming that speaks to the AG.

Are there any articles or someone's personal experiences with this type of scenario that could point us in the right direction and offset some of the initial data load into staging by minimizing logging?

Thanks,

Sue


Sue

Field is missing an escape character for a quote

$
0
0

Hello ,

any solution for below error in SSIS.

Field is missing an escape character for a quote.Unable to update PK WHERE clause.Error processing data batch.

i tried with convert tool. I ignored that column but still i am facing same error.

Regards,

Akshay Adivarekar


Akshay Adivarekar

SQL Server Agent - Email on job failure

$
0
0
Hi,

I have a SSIS package that is scheduled to run every midnight. Is there a way to send an email to a particular user when the package fails to run? I know there is a Notification on the package, I tried once but it didn't send anything. Is there an article that explains the step by step process? 

Thanks!

Akshay Adivarekar


SSIS Scheduled Package

$
0
0

Please help....I have an SSIS package that was scheduled an have been running for awhile.  This package stopped executing.  The error message I get is:

Message
Executed as user: DWPRODDB2\SYSTEM. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4000.0 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  11:19:55 AM  Error: 2014-12-12 11:19:56.44    Code: 0xC0202009     Source: Populate Recruiter ODS Connection manager "RECRUITER_PRODUCTION"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E4D.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E4D  Description: "Login failed for user 'AD\DWPRODDB2$'.".  End Error  Error: 2014-12-12 11:19:56.44     Code: 0xC020801C     Source: Data Flow Task - Populate SPT_REC_ACAD_HISTORY OLE DB Source - SPT_REC_ACAD_HISTORY [1]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "RECRUITER_PRODUCTION" 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-12-12 11:19:56.44     Code: 0xC0047017     Source: Data Flow Task - Populate SPT_REC_ACAD_HISTORY SSIS.Pipeline     Description: component "OLE DB Source - SPT_REC_ACAD_HISTORY" (1) failed validation and returned error code 0xC020801C.  End Error  Error: 2014-12-12 11:19:56.44     Code: 0xC004700C     Source: Data Flow Task - Populate SPT_REC_ACAD_HISTORY SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2014-12-12 11:19:56.45     Code: 0xC0024107     Source: Data Flow Task - Populate SPT_REC_ACAD_HISTORY      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  11:19:55 AM  Finished: 11:19:56 AM  Elapsed:  0.733 seconds.  The package execution failed.  The step failed.

Any help is appreciated. 

Regards

Installation failed Attunity V1.2

$
0
0

I'm trying to install Attunity 1.2 but I got this error message:

"The installer was interrupted before Microsoft Connector for Teradata by Attunity 1.2 could be installed. You need to restart the installer to try agaîn"

In the Event Viewer:

"Microsoft Connector for Teradata by Attunity 1.2 -- Installation failed."

I'm running:

- SQL 2008 Enterprise SP1

- VS 2008 3.5 SP1

- Windows Server 2008 R2 Enterprise 64 bit

Thanks in advance,

Filipe

SSISDB Verbose Logging Level and Unexpected Terminiation

$
0
0

If we set the SSISDB Logging Level to Verbose, will we get more details on Unexpected Termination events?

With basic logging level, the reports for Unexpected Termination do not provide any useful information to what happened.

--- Ryan


Ryan P. Casey • <a href="http://www.R-P-C-Group.com">www.R-P-C-Group.com</a>


Urldecode

$
0
0

G'day all, I'm receiving a column from a database that is an encoded URL request string. We've been using a SQL Server function to decode this URL but recently the string coming in has 4000+ parameters which is taking a while to parse through the function so I'm looking to see how a SSIS script component can handle the equivalent. However, when I try to include the System.Web namespace (using C#), it doesn't give me the option to choose subpackages (either Server or HttpUtility, not sure which will be the appropriate package), any idea how I get this package available? Do I have to have a HTTP connection manager to make these available or have I missed something?

TIA

The type initializer for 'Microsoft.DataTransformationServices.Wizards.SharedIcons' threw an exception. (Microsoft.DataTransformationServices.Wizards)

$
0
0

This happens every time I try to use the SSIS Config Wizard to add new Config files or edit existing config files.

Has anybody seen this problem before:

Method not found: 'System.Drawing.Bitmap Microsoft.SqlServer.IntegrationServices.Designer.View.ImageLoaderHelper.LoadBitmap(System.Reflection.Assembly, System.String)'. (Microsoft.DataTransformationServices.Wizards)

I currently have:

SQL Server Dev 2012 SP2

Visual Studio 2010 Prof - Version 10.0.40219.1 SP1 Rel

Microsoft.NET Framework - Version 4.5.50709 SP1 Rel

Can the SQL statement in a Lookup Transformation be set by a variable?

$
0
0

I'm working with SQL Server 2008 R2.

I'm doing maintenance on a package built by a dev that is not available. In this package there is a Lookup Transformation that pulls it's lookup values from a SQL Query. The query APPEARS to have a hard coded value in the query window...except it appears to be driven by a variable which is weird because I can't seem to find where the variable is set; the editor doesn't seem to have the option of "set query from variable" that I would expect.

In the editor, I can change the query:

SELECT lookupid, matchColumn
FROM lookupTable
WHERE foreignKeyValue = 6

When I run the package and look in the editor again I see

SELECT lookupid, matchColumn
FROM lookupTable
WHERE foreignKeyValue = 1



How is this possible?

PDW connection manager and Windows authentication

$
0
0

I'm new to SSIS 2012, but I've got the SSDT BI 2012 (x86) installed. I'm also connecting to a SQL Server 2012 Parallel Data Warehouse. I've been able to connect to it via SQL Server Object Explorer with Windows Authentication. No worries.

However, in setting up the PDW Connection Manager in my project, the dialogue won't allow for Windows Authentication.

How do I connect with Windows Authentication?

How to export sql table data to Excel/PDf using Storedprocedure?

$
0
0
Hi ,

        I have one table in sqlserver2008R2 that named "Customer" so that table hold the 1 Lac rows. Now I want send this table data to Excel/pdf with Columns using Storedprocedure.

   I have tried this using xp_cmdshell so This is not working for me.

finally i want to get data in Excel and pdf also.

Please guide me

partitions are created dynamic ssis packages.

$
0
0

HI.

 iam creating  dynamic partitions in ssis packages  . but  i got  have  below type of error . i have 3 data sources  .iam creating packages  daywise 

As per 1st data source on 15 th jan the starting data is 126058, but the data should be 12098.Due to which the rest of the data in other following partitions is getting affected.

As per 2nd data source on 15<sup>th</sup> jan the starting data is 296815, but the data should be 296785 which is exceeding by 30 records. Due to this reason the rest of the data in other following partitions is also getting affected.

As per 3rd  data source on 15th jan  the starting data is 957751, but the data should be 956690 which is

Exceeding by 1061 records. Due to this reason the rest of the data in other following partitions is getting affected.

 how can solve this problems   . please help me..

 

 

Rename Excel Tab

$
0
0

Hi Guys,

Need urgent help. 

I am working on project in SSIS. Simple SSIS Package, read file from Excel and do some transformation and insert the data into SQL table (Very simple). Problem is Every time excel file has different tab. So What I am doing, I am using Script task (VB 2008) to rename Excel tab to "Sheet1", working fine on my local without any problem. Here is my VB Code. In my Local machine Microsoft Office are installed. Now I have to move this package to Dev Inv. Unfortunately my Dev and Prod server doesn't have MS Office installed. I am having a problem to run or rename excel sheet. 
Two questions
1) Is there other way to rename or read dynamic excel tab from Excel source?
2) Is there a way we can Open Excel file/rename and save Excel file in VB without MS Office installed?

I am using SQL Server 2008 R2.

Please advise.

Thank You.


Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports Microsoft.Office.Interop.Excel
Imports System.IO
Imports System.Text


<System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
<System.CLSCompliantAttribute(False)> _
Partial Public Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase

Enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End Enum



Public Sub Main()
Dts.VariableDispenser.LockForRead("User::FileName") ' File Name Variable

Dim variablesList As Variables

Dts.VariableDispenser.GetVariables(variablesList)

' Dim SFileName As String

'SFileName = variablesList("User::Filename").Value.ToString


' Dim vars As Variables 'New Added For Variable
Dim oMissing As Object = System.Reflection.Missing.Value
Dim xl As New Microsoft.Office.Interop.Excel.ApplicationClass()
Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet

'Dts.VariableDispenser.LockForRead("Filename") 'New Added For Variable



'Start For Variable
'Dim File As String 'New Added For Variable

'File = CType(vars("Filename").Value, String) 'New Added For Variable

Dim lapath As String = variablesList("User::FileName").Value.ToString 'New Added For Variable


xlBook = DirectCast(xl.Workbooks.Open(laPath, oMissing, oMissing, oMissing, oMissing, oMissing, _
oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, _
oMissing, oMissing, oMissing), Workbook)

xlSheet = DirectCast(xlBook.Worksheets.Item(1), Worksheet)
xlSheet.Name = "data"
xlBook.Save()
xl.Application.Workbooks.Close()

Dts.TaskResult = ScriptResults.Success
End Sub

End Class


Looping Multiple Text files in SSIS

$
0
0

Hi,

I have a requirement in which i have 100 text files having one row each in it. Now i need to load Each row of data into a SQL table using SSIS and i dont want to stop the package even though it fails for any reason ( like inapporiate Data something like that ). How can i configure the SSIS package with error handling.. Please guide me on this..!

Thanking you in advance..!


Balaji - BI Developer

SSIS interview questions.

$
0
0
Could some of the expert(s) list interview questions that might come up when applying for ETL/SSIS developer I or II positions.

Thanks

SSIS Interview Questions

$
0
0

Dear All,

Can somebody across all forums , give me a link/documents which contain with SSIS Interview Questions.

Thank you. 

Schedule a BIML file

$
0
0

Hi,

I am in search of a way where I can schedule a BIML file to generate SSIS package.

Would it be possible ?

Regards,

Vipin jha


Thankx & regards, Vipin jha MCP

How to read text file in hexadecimal format?

$
0
0

hi to all

I must transfer data from source file into destination table.

My problem is that the information into source file are stored in hexadecimal format.

For example, one generic row into file has the following form:

00000000h: 31 39 33 30 32 30 34 32 30 31 34 31 31 32 37; 1993020420141127.

Please, can anyone tell me how to read into file in this format in ssis?

thanks in advance.


Viewing all 24688 articles
Browse latest View live




Latest Images