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

SSIS Dataflow to Flat File SLOOOOWWWW!!

$
0
0
This is a very simple operation, I created a VIEW in a SQL 2005 DB, which has the columns I need to export to a flat file. I set up a data flow task, only one in the package, that copies the rows to the file. There are roughly a half million rows in the table.. It taks 5+ HOURS!! I'm not even sure where to start looking here! Any help would be appreciated!

SSAS Connection Manager ignores ServerName property configured in SSIS Catalog

$
0
0

I have an Integration Services package that processes an Analysis Services database. The Connection Manager for the database is set up at the project level (Project Deployment Model). The package works fine from my computer.

When I deploy the package along with the rest of the project to the server it will no longer process the database.

I configured the ServerName property of the connection manager to the appropriate server for that environment but the Connection Manager still tries to connect to the server specified in the ConnectionString property. It's like the ServerName property is completely ignored or the value of the ConnectionString property is being applied after the other properties.

If I configure the ConnectionString property to connect to the proper server the package will run as expected; however, configuring each connection string will not work for us. We have several dozen AS databases and when (not if) the server name changes we'll have to change the connection string for each database.

Other things I tried but didn't work:

  • Configured the ConnectionString property to be blank hoping the connection manager would build it from the supplied properties.
  • Left the Data Source parameter in the ConnectionString property blank hoping the connection manager would pull it from the ServerName property.

SSIS PACKAGE Fails when run as a SQL job

$
0
0

SSIS PACKAGE RUNS MANUALLY BUT FAILS

WHEN RUN AS A SQL JOB. Err is below.DBA confirmed that the service id that the agent uses has access to the table. Still not sure WHY job failed?Err is below:

"Microsoft SQL Native Client" Hresult

: 0x80040E09 Description: "The SELECT permission was denied on the object '', database '', schema 'dbo'.". End Error Error: 2012-08-20 15:23:07.78 Code: 0xC004706B Source: DTS.Pipeline Description: "component "OLE DB Source" (1)" failed validation and returned validation status "VS_ISBROKEN". End Error

SQL Agent Job, Set Values, DTS variables and job rescheduling

$
0
0

Techies--

I have an SSIS job that begins with a script task. The script task accepts the starting datetime and the ending datetime. For qa purposes, my plan is to begin the start datetime @ 7/1/2012 00:00:00 AM and set the end datetime @ 7/1/2012 01:00:00 AM, easy enough--for this I set the values for the sql agent job mapped to the dts variables.

Now, here is the real question: How would I automatically reschedule the sql agent job so that when I set it up to run once every hour,  the range changes to add an hour from the end datetime of the last run (e.g. 7/1/2012 01:00:00 AM to 7/1/2012 02:00:00 AM) ?

Outside of QA testing, the job will normally need to do essentially the same thing--with current datetime variables.

I should mention that I am storing the previous start/end range in a control table, so I know I can update the info that way, however, I'm looking for input from the group for alternatives


SSIS package execution Insufficient memory to continue the execution of program Problems with the query, "ResultSet" property not set correctly, parameters not set correctly

$
0
0

Hi,

     I am created a Stored Procedure and it will return XML result set.  I am calling this storedprocedure in SSIS package ( using the execute SQL task) and writing the result of the StoredProcedure in a file ( by using the script task ) .

Now i configure the SP to return only 4 rows, the SSIS package is getting executed and a xml file will be written in a folder.

If the SP is configured to return all the rows, then there is  Insufficient memory to continue the execution of the program error.

Detail error:

"Insufficient memory to continue the execution of the program.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."  while executing the Execute SQL task.

Execute SQL task : 

 Result Set = XML

Can anyone please let me know how to resolve this error and why there is an error when all the rows are returned ( the xml file with all rows is returned from the Stored Procedure ).


-Prasad

transfer file to another server with out using FTP

$
0
0
How can i transfer a flat file from one server to another without using FTP?

Error While executing a SSIS package which contains a script task through SQL Server Agent job

$
0
0

Hi,

I have a SQL Server 2012 SSIS package with a script task along with other tasks [data flow, execute sql tasks ]. When I manually executed the job through BIDS, its completed successfully. 

Then I have automated the execution of the package through SQL Server Agent Job. But when I executed the package through SQL Agent job, it runs successfully for all the tasks except script task. When it comes to execute the Script Task, it is getting failed with the below error message.

"Error: 2012-08-29 12:45:14.67

   Code: 0x00000001
   Source: Script Task 
   Description: Exception has been thrown by the target of an invocation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  12:45:10 PM
Finished: 12:45:14 PM
Elapsed:  4.353 seconds

"

I have installed the SSIS on the 64-bit environment and SSIS service is running. Also I tried to run the job through 32 bit [job option] but I am getting the above error in all cases.

Any help will be greatly appreaciated !

Thanks,

Navin


- naveen.reddy

Add a SQL configuration to a package running from SQL Server Agent

$
0
0

Hi,

I have a package in SSIS 2008 R2 that can be run with 2 different configurations for different datasets adding to the same tables.

I would like to be able to store the configurations in SQL Server rather than using XML config files. The package is scheduled in the agent, the agent allows you to add configuration files in the job, but does not allow you to change between SQL Server configuration types.

My question is: is there a way of adding configuration types to a package without them having to be in XML Config files? Possibly with Set Values?

Any help would be much appreciated.

Andy May


CRM 4, SQL Server and .Net developer using C#


I am having trouble with an SSIS to import Access tables.

$
0
0

Afternoon everyone,

Last year, I created an SSIS package that would copy 11 tables from an Access file to 11 temporary table, and then the temp tables would be processed for data to be inserted into the permanent tables. The package consists of a Foreach loop to process more than one file. The 11 tasks are divided among 4 group containers within a Sequence Container within the Foreach loop container. The Access files are almost always the same format; all tables are of the same format. I use a expression in the Foreach loop with a variable for the filename and a variable for the folder that contains the Access files. This package is used for about 4 weeks out of the year, and worked last year.

This year, a column in one of Access table has been removed. Thus, I am working on removing the column from the task, and I am getting little red ball with white "X" one some of the Data Flow components, although not on the Data Flow compenent with the column removed.

The Data Flow consists of two components; the source and the destination, both with the red ball and white "X". I edit the source, and I see the OLE DB connection manager is not pointing to Access connection manager but to the SQL connection manager. I changed it to the Access connection manager but I am not able to enter a name of the table; there is not any table names in the drop down.

I attempted to edit the Access connection manager. I changed it to point to the same directory that is in the directory containing the Access files and saved. The saving does not seem to take effect. I edited the Foreach loop to look the folder set by the variable and to chose files matching the pattern WASH*.mdb. The variable for the filename is set the "WASH001.mdb (a default); that is the filename for the current file in the directory. It is like the value of the variables is not understood.

What am I not understanding? How can I get the editing of the source component to recognize the existence of tables in the Access file?

Thank you for any help.

Brandon

How to refresh SSRS reports and SSRS Cache through SSIS?

$
0
0

Hi,

I need to execute/refresh the SSRS reports and SSRS Cache through SSIS packages. is it possible to achieve through SSIS package? If yes please provide me sample code snippet to achieve the same. Thanks for your help in advance.

Thanks,

Vaibhav

test

CSV is coming in sorted order in SQL table through SSIS Package(SQL server)

$
0
0
Hi,

I have created a SSIS package that extracts data from CSV file and dumps into a SQL table.

The data is coming in sorted order in SQL table , which I do not want, I want it to come as it is(as per CSV).

Please suggest a work around for the same.

Note: I am using SQL Server 2008

Thanks in advance!

Regards,
Deepak!

where to start to build BI?

Moving CSV Files Based On ColumnNames to Different Folder Destinations

$
0
0

I have One Folder Named ABC in that i have Five Sub Folders (A1 to A5). in that sub folders 10 csv Files with two different Format

Format 1 (Did,Eid,Dname) are the columns 

Format 2 (Dname,Did,Eid,Others) are the columns 

what my requirement is

step 1: loop the files from sub folders  (i completed this)

step 2: check the column names

step 3: move the files into destinations based on formats( csv file have did,eid,dname move the file into Format 1 folder in abcidentity(main folder) else move the file (having dname,did,eid,others) into format 2 folder) this step is also i know how to create by using file system task

what my problem is how to check scan the columns and give the destinations in script task(step 2)

in script task i already wrote if the file is there or not. if file is there content is there or not

i dont know how to scan columns in script task if anybody can send the code. more helpfull for me

Issuing converting to numeric datatypes from .out flat file.

$
0
0

I have a .out file that is delimited by commas with a text qualifier of quotes. For the life of me, I can't convert any of the columns into floats or eight-byte integers. I can't do it through a derived column, a character conversion transformation, or setting it in the beginning through the connection manager.  This is the error I get using a Derived column for a 7/8 digit ID column that I'm trying to cast as an eight-bit unsigned integer.

Error: 0xC0049064 at Data Flow Task, Derived Column [1292]: An error occurred while attempting to perform a type cast.
Error: 0xC0209029 at Data Flow Task, Derived Column [1292]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "component "Derived Column" (1292)" failed because error code 0xC0049064 occurred, and the error row disposition on "input column "PID" (1375)" 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" (1292) failed with error code 0xC0209029 while processing input "Derived Column Input" (1293). 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.

I also will get data loss errors. Could it possibly be an issue with the quotation marks? When I upload it to SQL as all strings, each value still has quotes around it. Could this screw up the casting? I have the correct delimiters and put " in the text qualifier. The data loads fine without quotes in preview but during the upload it has quotes again.

Anyone with ideas?


Error using dtutil to copy ssis packages from one server to another

$
0
0

Hi all,

Trying to simply copy SSIS packages and folders from one sql 2008 server to another sql 2008.

Executing this:

EXEC [master].[sys].[xp_cmdshell] 'dtutil /SourceServer SERVER_A/SQL;"\ROOT FOLDER\SUB FOLDER\MY PACKAGE NAME - HAS SPACES" /DestServer SERVER_B/COPY SQL;"\ROOT FOLDER\SUB FOLDER\MY PACKAGE NAME - HAS SPACES"'

Error I'm getting:

output
Microsoft (R) SQL Server SSIS Package Utilities
Version 10.0.5420.0 for 32-bit
Copyright (C) Microsoft Corp 1984-2004. All rights reserved.
NULL
Option "\ROOT FOLDER\SUB FOLDER\MY PACKAGE NAME - HAS SPACES" is not valid.
NULL

Thanks for any help,

gv


Sword

how we insert data into excel if the size of the dat exceeds?

$
0
0

could you please any one provide solution for this problem....

using ssis, i am loading the data from flat file(text file)  to Excel destination.

source has two columns: empid   empdata(nearly 2,50,000)

i got the error that size exceeds for inserting that data because each cell having the capacity of 32,765 in excel 2007.

Am also used excel 2010 also ,same problem repeted?

please provide a solution foe me...

SSIS execute sql task error is occured.

$
0
0

Hi

My source is sql code.

within that code is sql query & temp tables query is there.

I am using execute sql task.I copy sql code here using.

but dataflow task call the control flow result set varible time showing error.

please send me solution.

Regards

Rama

Error when loading SSIS package

$
0
0
Hi all,

I have problem with SSIS. When I open my packages, I always get an error message which says like this:
There were errors while the package was being loaded.
The package might be corrupted.
See the Error List for details.

And, in error list, I get this error message:
Error loading DIM_BUSINESS_TYPES.dtsx: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E4D.  An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E4D  Description: "Login failed for user 'user'.".

But the package itself seems doesnt have any errors at all. When I try to run the package, it runs fine.
Btw, I use package configuration which is stored in sql server table, including the password for connectionstring.

So, what's actually wrong with my package?

Thanks

Error saving SSIS package

$
0
0

Hi,

While saving the SSIS package, I am getting the error "Operation could not be complete.Access is denied on production server.


Regards, Praveen

Viewing all 24688 articles
Browse latest View live


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