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

sql server agent job local path

$
0
0

hi

i m running my package in sql server 2012, in which i am giving network path for flat file destination.

and its working fine.

but if i give m local path, its giving me  error " cannot open data file"

nothing is wrong with package.

any help?


Data Flow Task:Error: Excel Source failed the pre-execute phase and returned error code 0xC0202009. Works fine in SSDT in debug mode. Fails once deployed in SSISDB catalog.

$
0
0

I am trying to import data from an Excel (.xlsx) file into SQL Server. Excel file size is pretty big (128MB). It works fine if run in debug mode in SSDT but starts failing when I am trying to deploy it and run in SSISDB. I am using provider=Microsoft.ACE.OLEDB.12.0; for excel connector and running in 32 bit compatible mode in both SSDT and in SSISDB catalog.

To single out the problem I created the package with only 1 dataflow task. Source is excel connection and destination in OLEDB destination connecting to local SQL Server 2012 database. I tried changing the buffer size etc and finally I got the following error message.

I am getting following errors:

OnError

View Context

06.04.2015 10:06:24

Data Flow Task:Error: Excel Source failed the pre-execute phase and returned error code 0xC0202009.

OnError

View Context

06.04.2015 10:06:24

Data Flow Task:Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available.  Source: "Microsoft Access Database Engine"  Hresult: 0x80004005  Description: "Unexpected error from external database driver (1).".

Earlier before changing any properties I was getting memory related errors like:

OnError

06.04.2015 11:26:41

Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008);   at Microsoft.SqlServer.Dts.Runtime.DtsContainer.Execute(Connections connections, Variables variables, IDTSEvents events, IDTSLogging log, Object transaction)    at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ISServerExecutionEvents.StartPackage()   at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ProjectOperator.StartPackage()    at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ProjectOperator.PerformOperation()

Transact-SQL stored procedure

OnError

06.04.2015 11:26:40

Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008);   at Microsoft.SqlServer.Dts.Runtime.DtsContainer.Execute(Connections connections, Variables variables, IDTSEvents events, IDTSLogging log, Object transaction)    at Microsoft.SqlServer.IntegrationServices.Server.ISServerExec.ISServerExecutionEvents.StartPackage()

Transact-SQL stored procedure

DiagnosticEx

06.04.2015 11:26:40

<?xml version="1.0"?><DTS:ProcessMemoryUsage xmlns:DTS="www.microsoft.com/SqlServer/Dts"><DTS:PeakWorkingSetSize>1352765440</DTS:PeakWorkingSetSize></DTS:ProcessMemoryUsage>

Although I did observed that there was still sufficient memory on the server. (Server is a VM having 16GB RAM and MAX utilization did not reached beyond 6GB)

I tried using both ways - Excel file on local and Excel file on shared path.

I am using 

Microsoft SQL Server 2012 - 11.0.5058.0 (X64) 
May 14 2014 18:34:29 
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)

Any suggestions will be more than welcome?

Also wanted to add that the same package is running fine for other smaller excel files.

In the original design I had a For Each enumerator to execute 15 files - all other 14 except for this large file were getting executed successfully.



How to connect to SQL Server 2000 database from SSIS 2012 ???

$
0
0

Hi All,

I am using SSIS 2012 package and I need to pull the data from the source system which is in SQL 2000 version.

But when I create a new OLEDB connection in SSIS 2012 and try to connect to this SQL 2000 server (using sql authentication) it is not able to connect.

Any idea?

Thanks


Load data from sharepoint list to database

$
0
0

hi All,

I am trying to load data from sharepoint to Database.

when i try to execute the package, am getting below error.

[SHAREPOINT_SRC_SLTS_FIELDS [286]] Error: Microsoft.Samples.SqlServer.SSIS.SharePointUtility.SharePointUnhandledException: Unspecified SharePoint Error.  A possible reason might be you are trying to retrieve too many items at a time (Batch size) ---> System.ServiceModel.FaultException: Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.

can you please guide me to resolve this issue.

Thanks & Regards,

Raghavendra

How to copy the Chinese Character from Oracle table to Sql table using SSIS ?

$
0
0

Hi All, Please help I need to copy the Chinese character from Oracle table to sql by SSIS. Give me possible ways to do. While I try i got the following Error. Guide me.

TITLE: Microsoft Visual Studio
------------------------------

The component reported the following warnings:

Warning at {18B8E57A-0438-4D20-8A89-1062ED6379EE} [OLE DB Source [1]]: Cannot retrieve the column code page info from the OLE DB provider.  If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect.  If the component does not support the property, the code page from the component's locale ID will be used.


Choose OK if you want to continue with the operation.
Choose Cancel if you want to stop the operation.

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

OK
Cancel
------------------------------

Thanks,

Manikandan.


WSFC - Active/Active Backup issue

$
0
0

Hello,

I'm trying to setup a backup and looking for a right way to do that for Clustered Server.

I have two nodes with failover Cluster on High Availability setup. before that we used only one node so what I did is doing the full backup on the weekend and differential during the week ( twice per day ). How should I approach the setup for two nodes ? Do I need to do fully backup on witch node on nightly basis , and overwrite or there is a better way ? (I want to keep at least 2 entry points during the day of the DB's ) .

Thanks  

Need to validate file Name,split the file name and store the splited values into Variables

$
0
0

Dear All,

Below is the my requirement.

I have a folder, in that folder I have bunch of text files. The file name is below format

ACA_122_pay_20140430_001

Initially the file name start with ACA code,groupid,group name and date time stamp. This is the standard structure of file name.

I want to check each and every file in the folder with this structure. The structure should be standard for all the files. If the structure same for all files I need to get codes form file name. For example

If you see the below file name, I need to get ACA and put into variable,I need to get 122 and put into variable. For group name and date time needs to put in variable.

If the file format is not valid state then I need to log exception.

Let me know if I am not clear.

Kindly provide the C# code for achieving the above requirement.

As I am new to .net programming. kindly help me.

Thanks in Advance,

Regards,

Madhava Ganji


Madhava Ganji

For each loop container

$
0
0

I have a folder and under that there are several subfolders. I m trying to loop through all folders and subfolders so i can grab all the files under sub folders. When i do that my for each loop container doesnt stop even after traversing is done? How do we stop this once all traversing is done or is there any mistake i m doing?

Any help much appreciated.


Flat file destination error

$
0
0

hi

i am adding new field to my existing package which is char(10).

getting this error:

[Flat File Destination [139]] Error: Data conversion failed. The data conversion for column "MEMBER_ID" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

i right click flat file destination->i only see external and input column over there,

there is no output column.

in flat file connection mamanger ->outputcolumn->its char(10)

what needs to be change here?

SSIS to handle two lined Excel header

$
0
0

Hi,

I am querying excel header values in SSIS to checked if the column headers are matching with that of the table field names. Here now, i am facing an issue, like, one of the column header is having two lines as shown below

So when querying the value comes with two lines only. Because of this the validation is failing. Is there a way to handle two lined column header of Excel while in SSIS? please share your experience which can help me how to fix this issue - Thank you!


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

Error : Offline Mode is SET to "True"

$
0
0
I have clustered enviroment . I ran the Package by executing Dtsx File and it got the error  "product level is insufficient..." then i found that i need to install remaing SSIS Component. After Instaling those Component . while i was running the package again it is giving the Error "Package Failed becasue Offline Mode is set to True. When i Check in Design it was False. So Why Suddenly it is Throwing that Error.

Plsease Help me on That

SSIS SQL 2008 R2 mail priority expression is not working

$
0
0

Hi I'm trying to resolve priority dynamically 

as

Imports System.Net.Mail

Dts.Variables("NotificationPriority").Value = MailPriority.High

I can see that the NotificationPriority variable is assigned with 2.

I use this variable in the send mail task in the Priority expression as Priority = @[User::NotificationPriority]

When I execute the package I receive the emails but the priority is normal.

Could you please advise how I can make it high in the above mentioned setup?

Thanks


SSIS question

Can not add WEB reference

$
0
0

Hi,

I suddenly got this error:

Never before seen this error? Used to worked with no troubles...WEB service I try to add for the Script Component within an SSIS project.

Please, what to do?

thanks

And, a propos this, I can not longer connect to: http://localhost/reports?


SSIS EXPRESSION

$
0
0

Hi,

   I have a column called name and these are the values 

1.John_Jack_HP
2.Jack_pli
3.Johnson_hh_ui
4.PP_ini_ur
5.LL_in

i need to load these names in the oledb destination ,the names should  have more than one underscore that should load load in the destination

from the above list names the result should be 

1.John_Jack_HP

3.Johnson_hh_ui
4.PP_ini_ur

Tell me how can we achieve this through expression is it possible ??r need to write the script or store procedure ??

email subject 13 characters long sends, 20 doesnt

$
0
0

Hi we run std 2008 r2. 

As I'm putting a pkg together, I'm noticing subject lines of 20 characters show green when their email task executes but they never arrive in my inbox. 

Subject lengths of 13 (and maybe more) succeed and do arrive.   Not even sure how to describe this to my infrastructure team.


2012 package inventory

$
0
0

Env - 2012. All packages are stored in SSISDB. I have created folder - 'abc'. Under that, i have added packages. I need to capture SSIS package inventory like.

-Counts

-description

-connections to database

-tables / views involved.

-Task type (example - data flow task, common tasks, other transformations, other sources & other destinations tasks) - I want to know the sequence the way the package build.

How can i achieve this.....thanks in advance...

SSIS EXPRESSION - check for more than one underscore

$
0
0

Hi,

   I have a column called name and these are the values 

1.John_Jack_HP
2.Jack_pli
3.Johnson_hh_ui
4.PP_ini_ur
5.LL_in

i need to load these names in the oledb destination ,the names should  have more than one underscore that should load load in the destination

from the above list names the result should be 

1.John_Jack_HP

3.Johnson_hh_ui
4.PP_ini_ur

Tell me how can we achieve this through expression is it possible ??r need to write the script or store procedure ??


Parameters in a OleDb Command Transformation

$
0
0

Hi there,

In order to prevent lookup errors in a lookup transformation, I've decided to go for an OleDb Command Transformation.

This transformation should check the lookup and, if it turns out to be null, ir returns a dummy value. Otherwise, it would return the lookup value.

This should be done by doing something like this:

select coalesce( (select ID_Table2 from ID_Table2 where FK_Table1 = ?), 0)

suposing Table2 has an atribute called "FK_Table1" that should match a column in the data flow.

Now, such command result in this message:

"An OLE DB record is available. Source "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Syntax eror, permission violation, or other nonspecific error".

But, it I remove the coalesce and type the following command:

select ID_Table2 from ID_Table2 where FK_Table1 = ?

It presents me no errors and allows me to continue.

Did i did anything wrong or is this something that is not possible to be done?

I know i have the option to use a script task to do this operation, but that would turn the maintenance process a little more difficult.

Otherwise, i know i could also re-direct the error from the lookup transformation and handle it. Though, my package has about 10 lookups and that would turn my package a lot more complex than

 

Thanks in advance

Best Regards

André Santana

rename oledb command parameters

$
0
0

Hi

i am updating nearly 200 columns in oledb command.but it is showing param_0,1,2,3, etc i want makes sure those are not mis matched ,can i rename param0 as customer id

Please urgent

thanks in advance


ADKR

BIDS 2008: Error HRESULT E_FAIL has been returned from a call to a COM component.

$
0
0

Hi,

I am using SQL Server 2008. Whenever I opened SQL Server 2000 DTS packages designer from BIDS2008 I am getting the below error.

Error HRESULT E_FAIL has been returned from a call to a COM component.

Could anyone please help me to solve the issue.

Environment details:

SQL Server 2008,

VS2008(BIDS2008),

Installed backward compatability(SQLServer2005_BC_x64.msi),

Installed SQLServer2005_DTS.msi

Copied dll and rll files as Microsoft recommended(https://msdn.microsoft.com/en-us/library/ms143755.aspx).

Moved environmental variables(C:\Program Files(x86)\Microsoft SQL Server\80\Tools\Binn\;) to starting point. 



Thanks, Raja

Viewing all 24688 articles
Browse latest View live


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