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

SSIS 2012 Project Deployment Model Sensitive Password Parameter into ODBC Connection Manger

$
0
0

Hi all,

I'm trying to use a sensitive project parameter for an ODBC connection password; but when doing so, I can't establish a connection because our legacy driver doesn't support 'Password' as a connection string attribute.

When I use just the ConnectionString property on the ODBC connection manager and use a 'pwd' attribute; all is well. E.g., "uid=<user>;pwd=<password>;Dsn=<dsn name>;". But as soon as I flip the sensitive attribute, I'm getting the classic error:

The expression will not be evaluated because it contains sensitive parameter variable...


The sensitive parameter is desired, of course. I don't want the password in the clear.


Any ideas?


Thanks,

Brian




SSIS package scheduled to run periodically cause error

$
0
0

Hi

We have SQL Server 2008 R2 running on windows 2008 64 bit standard edition. I installed oracle 11g client 32 bit and 64 bit software on the server. I can connect to oracle from SSMS and SSIS. But I try run the SSIS package using sql agent job cause error shown below

Executed as user: QATARPOSTS\sqlagtadmin. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.1600.1 for 32-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  11:41:51 PM  Error: 2011-06-28 23:41:52.69     Code: 0xC0202009     Source: BOX_ERP Connection manager "PROD.cxqpost"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "OraOLEDB"  Hresult: 0x80004005  Description: "ORA-01005: null password given; logon denied".  End Error  Error: 2011-06-28 23:41:52.69     Code: 0xC020801C     Source: Data Flow Task OLE DB Source [99]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "PROD.cxqpost" 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: 2011-06-28 23:41:52.69     Code: 0xC0047017     Source: Data Flow Task SSIS.Pipeline     Description: component "OLE DB Source" (99) failed validation and returned error code 0xC020801C.  End Error  Error: 2011-06-28 23:41:52.69     Code: 0xC004700C     Source: Data Flow Task SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2011-06-28 23:41:52.69     Code: 0xC0024107     Source: Data Flow Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  11:41:51 PM  Finished: 11:41:52 PM  Elapsed:  1.031 seconds.  The package execution failed.  The step failed.

Also I am running the job with 32 bit and ssis also changed to 32 bit.

Please anyone help me to solve this issue.

Thanks

SVA

SSIS package pulls data into excel

$
0
0

simple question:

my package load into excel file, the date column format is like: 9/11/2012,10/11/2012

how can I set data conversion or create excel template by sql,   to make the date column format is like: 09/11/2012,10/11/2012.

just add a zero if the month only has one single number.

Thanks

variables configuration using sql server table stop or start working with no clear reason...

$
0
0

Hi all

I am sure I am not the only one who have seen this before:

At some point, configuration values stored in sql server (2008 r2) table, stop effecting target variables in ssis package.

Instaed saved values in the package seem to be in effect then(this is apparent by adding breakpoints and watching variables at run time).

Then out of the blue values from configuration table is reflected in the package again

(without changing any thing in the deffenitions of that configuration...)

Any possible reasons?? I have sql server 2008 r1 installed together with 2008 r2 client.

Perhaps this can be a reason for communication instability between sql server and client applications???

TIA

Rea

Problem in log file creation

$
0
0

Hi,

I am creating a Log file with package name associated with date and timestamp with it. Below is the expression i am using

@[User::varLogFilePath]+ @[System::PackageName]+ "-"+SUBSTRING((DT_WSTR,30)GETDATE(),1,10)+"_"+ SUBSTRING((DT_WSTR,30) getdate(),12,2 ) + SUBSTRING((DT_WSTR,30) getdate(),15,2 ) + SUBSTRING((DT_WSTR,30) getdate(),18,2 )+ ".log"

which gives me the string  D:\logs\SSIS_Logs\Test-12-2012-11-13_141958.log.

Problem is as the package executes it create several log files as the time changes (from second to second i.e. Test-12-2012-11-13_141958.log, Test-12-2012-11-13_141960.log and so on)

but i want only one log file.

I dont know why it is not working in SSIS as it worked in SQL Server 2000 DTS.

Please advice on this. Thanks in advance

Amit

Check whether the directory is empty or not on network drive

$
0
0

need to check whether the folder is having any file or is empty.

using this code

Public Sub Main()
If File.Exists("User::vFolderToDelete") = True Then
' Dts.Variables("User::vFileExistCheck").Value = "Yes"
MsgBox(" found")
Else
'Dts.Variables("User::vFileExistCheck").Value = "No"
MsgBox(" not found")
End If
'Dts.TaskResult = Dts.Results.Success
End Sub


it is simple but somehow i am not able to get the correct result.

it always prints the message as "Not found" though the network shared folder is

having file.

any solution please..


Regards, Chirag Patel (ETL Engineer)

SQL Server to Excel export works fine, but not in job

$
0
0

Hi,

I have 4 sequence containers, these are almost same, each of them grabs data from SQL server in DFT and insert them in their own excel file. Excel files are replaced by template files befor DFT. Package works fine on my machine but not in job. There is no error, but only one file is filled with data. This file is 755 KB , other three which should have after insertion 1600,2600 and 6300 kb are not filled by job. Only when I run package manully from MSDB folder on server. Its strange. All DFTs have DELAY VALIDATION set to TRUE, because before job failed with error, that sheets in target files don't exist,which wasnt true.

Strange is,that job succeeds and in history log is no furtther information.

Is there some limit for exports from OLEDB to Excel destination ? Files have from 3000 to 11 000 rows.

I use SQL Server2008R2

How do I use integration services to import data from a test file with the following format

$
0
0

I am wondering how to import the following data into a SQL server database using SSIS. This is a text file in which the 1st 7 digits (i.e. 4010810) represents a location identifier, the next 8 digits (i.e. 20020101) represents a date (in this case it would be January 1, 2002). The next 3 digits (078) tell me what type of data I am looking at (in this case it is temperature data). The next digits (all separated by spaces except for the 1st datapoint) are values of the variable I am looking at. In this case they represent hourly temperature data....for the 1st record the temperature at 12:00am is -18.5C, at 1am it is -18.6C, at 2am -18.8C and so on.....(Obviously, for clarity, I didnt show all the data here)

401081020020101078-00185 -00186 -00188 -00190 -00192 -00194 -00193 -00195 -00201 -00201 -00206 -00214
401081020020102078-00232 -00230 -00221 -00215 -00213 -00219 -00226 -00213 -00201 -00205 -00198 -00167

                                                                                                    .

                                                                                                    .

                                                                                                    .

How can I import this data into my database?

Thanks


Load a flat file which has details within a header

$
0
0

Hey,

I have a file, which looks like this:

--Records Start

Id = 1

Name = John

INum = 2341

###

###

1,20120823,141213,0001

1,20120824,141234,1234

###

###

--Records End

I need to load this file into a sql table with Id,Name,INum,Date(Value=20120823),Snum(value=141213)

How can i achieve this?

Flat file Iimport using SSIS not working

$
0
0

Hi,

I am trying to import a flat file into a SQL server database and it is not working. The connections to the flat file and the table in my database appear ok (i.e. when I click preview in flat file source and in the OLE DB Destination I see the tables fine). I added a Data Viewer between the flat file source and the OLE DB Destination and I see that in one of the fields, the data is showing as <long text>......not sure what is up with that field. Also, Flat File Source does not "solve" (ie it turns red after I hit the "Start Debugging" button. Any ideas what could be going wrong here?

Thanks,

Set package configurations for all variables in soultion

$
0
0

I have Insure_Pacakge with below pacakges

company master with Excel_Source_Conn , OLEDB_Destin

Region master with Excel_Source_Conn , OLEDB_Destin

Fact_Sales with Excel_Source_Conn , OLEDB_Destin

company master, Region Master and Fact_Sales are child packages of Insure_Package

How to setup single Variable conn for "OLEDB_Destin" and "Excel_Source_Conn" for the whole soultion?


ShanmugaRaj



Need a Urgent help for one expression based on below scenario

$
0
0

I have two files called
HSMMECO_GHS_SKV_RIP_20121030.txt
HSMMECO_GHS_SKVRAP_RIP_20121030.txt .I need to loop these files and load in to table using foreach loop .I am trying to get a expression in a Filespec property,which will turn these files to a common format as shown below .

HSMMECO_GHS_SKV*.txt

Please help me to get that expression.Thanks in advance!

DBA roles and responsibilities in Integration services

$
0
0

Hi,

As a  DBA what are  roles and responsibilities to do  in Integration services and reporting services?


Please click the Mark as Answer or Vote As Helpful button if a post solves your problem or is helpful!

How to get disabled jobs using for each loop container

$
0
0
Can any please tell me about how to get disabled jobs in SQL server using through for each loop container

Please click the Mark as Answer or Vote As Helpful button if a post solves your problem or is helpful!

SSIS - import Excel to SQL Server

$
0
0

Hi,

i have four excel work books. all the excel books are like attendance register.

first excel workbook contains name and 1 to 31 days ,each and every days considered as one column.

second excel workbook contains name and 1 to 30 days , each and every days considered as one column.

third excel workbook contains name and 1 to 29 days , each and every days considered as one column.

fourth excel workbook contains name and 1 to 28 days , each and every days considered as one column.

i have created four data flow task, each data flow task contains the each excel sheets.

i have run the package at a time only one data flow task is executed remaining is not running at a time. dont disable other data flow task. dnt any change manually for every time.

Regards,

Abdul Khadir.


removing leading zeros

$
0
0

Hi,

I have values in SQL table as

000087

000006

000A67

0WRH1

Here when i select using SQL query, i need to delete those leading zeros and to have like following results,

87

6

A67

WRH1

How to write the query ?

Thanks !



--------------------------- Radhai Krish | Golden Age is no more far | --------------------------

derived column

$
0
0

i need to convert from string to numeric(2,0)

getting error : (DT_NUMERIC,2,0)PAT20 if use this.

Error: 0xC0049064 at Data Flow Task, Derived Column [26]: An error occurred while attempting to perform a type cast.

Error: 0xC0209029 at Data Flow Task, Derived Column [26]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Derived Column" failed because error code 0xC0049064 occurred, and the error row disposition on "Derived Column.Outputs[Derived Column Output].Columns[Derived Column 2]" 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.

Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Derived Column" (26) failed with error code 0xC0209029 while processing input "Derived Column Input" (27). 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.

Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.

excel when the new file comes in

$
0
0

i am getting this error when new excel file comes

TITLE: Package Validation Error
------------------------------

Package Validation Error

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

Error at Data Flow Task [Excel Source [362]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Error at Data Flow Task [SSIS.Pipeline]: Excel Source failed validation and returned error code 0xC020801C.

Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.

Error at Data Flow Task: There were errors during task validation.

Error at NDC [Connection manager "Excel Connection Manager"]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "External table is not in the expected format.".

 (Microsoft.DataTransformationServices.VsIntegration)

------------------------------
BUTTONS:

OK
------------------------------

SSIS with Oracle Oledb connection not working when a config file is included

$
0
0

Hi,

      I am running a SSIS package which has Oracle OLEDB Connection(32 bit). When I run from the Debug mode without the configuration file, the task completes successfully. But when I include the Orcle OLEDB Connection in the config file and try to run the package, it fails with the following error.

An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040E21  Description: "Multiple-step OLE DB operation generated error
s. Check each OLE DB status value, if available. No work was done.".

Is this an encrytion issue? My Package encryption has the property 'EncryptSensitivewithUSerKEy' and no password.

This package does not run the first time after I delete the configuration file from the package.I need to reenter the password for it to work properly.

How should I run my package using the Config file for all the connections(SQL Server connections work file, problem only with the oracle oledb connections).

Please suggest.

Thanks

Job failed

$
0
0

Hi,

 I have created one ssis package, it dumps the data into csv file for every hour. when i execute the package through job(job runs daily basis) its giving following error:

Message
Executed as user: M-PESADEV\tz-stg-svc-sql. Microsoft (R) SQL Server Execute Package Utility  Version 9.00.5259.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  19:00:00  Error: 2012-11-13 19:00:04.91     Code: 0xC004706B     Source: Data Flow Task DTS.Pipeline     Description: "component "OLE DB Source" (1)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".  End Error  Error: 2012-11-13 19:00:04.91     Code: 0xC004700C     Source: Data Flow Task DTS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2012-11-13 19:00:04.91     Code: 0xC0024107     Source: Data Flow Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  19:00:00  Finished: 19:00:04  Elapsed:  4.25 seconds.  The package execution failed.  The step failed.

It failed  only at 2012-11-13 19:00:00 but it succeeded at

2012-11-13 21:00:00

2012-11-13 20:00:00

2012-11-13 18:00:00

2012-11-13 17:00:00

any suggestion?

Thanks in advance,

Visu

Viewing all 24688 articles
Browse latest View live


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