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

Simple Column Update Using LOOKUP

$
0
0

I need to perform a very simple update of a column in a table. While it would be just as easy to write an EXECUTE SQL task, I'd like to do everything in SSIS little silos and avoid scripts where I can. I know what I need to do is use a LOOKUP and I think I'm 99% of the way there but now kind of stuck.

There are two tables - Table1 and Table2. Table1 has the lookup values I wish to use. Both tables have similar columns, but the two I'm interested in are CL_CODE and CHECK_ID. Table1 has both CL_CODE and CHECK_ID populated. Table2 only has CHECK_ID populated.

For every row in Table2 that has a matching row in Table1, I want to update Table2's CL_CODE with Table1's CL_CODE.

So I created an OLEDB Source which points to Table1, and I've selected the two columns in question.

I then created a LOOKUP task which points to Table2. I've "linked" the two tables via CHECK_ID and have checked the box next to CL_CODE. I've given CL_CODE an output alias of CL_CODE_OUT. For the Lookup Operation I chose "Replace CL_CODE".

Now is where I get stuck!!!

What's next??

Thanks!!


A. M. Robinson


Watch shared folder from WMI Event Watcher Task

$
0
0

I need to watch a shared a folder from WMI Event Watcher Task. When ever a new file created in a shared folder (Ex : \\Server\Folder), WMI Event Watcher Task should fire the event. I tried a local folder and it's running without any issue. However, when I tried a shared folder, it didn't work.  It doesn't throw any message. But it doesn't fire the event, even a new file created in the shared folder.

I configured WMI connection as \\localhost to the server name with windows authentication and\root\cimv2 to namespace field.

Please guide me how to monitor a shared folder from WMI Event Watcher Task?


- Zahran -

Check count of records

$
0
0

Hi,

I need to check inside a Data Flow Task for count of records passing.

Like i do have a conditional split ... one of the result is linked for mailing that result.

Here i need to restrict the mailing only if there is any result set for that particular condition. i.e. there should be at least one record to enable the mailing.

I used Row Count after the conditional split in order to check if there exists any row count > 0 then later to mail list.

but this seems to be not working.

Can anyone help me ?


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

SSIS Error on DB SQL 2008 R2

$
0
0

Hi,

I have a package which archives data everyday.

Now, when i was checking the package execution, i get the below error,

[Into Archival table [359]] 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 10.0"  Hresult: 0x80004005  Description: "Could not allocate a new

page for database 'DEV_DB' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the

filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".

I checked the DB properties..

The size of .mdf file is set to auto growth. growth by 1MB, unrestricted.

Could you please let me know how can i correct it ?


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

2008 adventureworks dataware house db

$
0
0

Hi All,

Can anybody suggest me from where i can find "SQL server 2008 AdventureworksDW db". i want some sample datawarehouse tables.

Any help would be highly appreciable.


sarat chandra sahoo

Unittesting SSIS

$
0
0

HI Experts,

Am completely new to SSIS.I have a doubt which option would be better for testing SSIS packages either SSISUNIT or BIZUNIT?

Can any one give me links of implementing end to end of testing packages using ssisunit?

Needed urgently please?

Establishing Secure FTP Connection in SSIS

$
0
0

I want to upload files to secure FTP site using SSIS 2008.Please help me if you have any suggestions.I dont want to use any third part software.So is it possible to establish SFTP using script task by writing some VB or C# code?

script component input buffer issues

$
0
0

Hello,

I have a script component that creates a '|' delimited file. the input for this script component is from an oledb source, the problem im facing now is not all rows from the oledb source that is being fed to the script component buffer is being processed by the script component, it randomly picks up two rows from the buffer and process it as the text files(i sometimes have 5-10 rows in the buffer but only two gets picked up). I have tried using the different function Input0_processInput()/input0_processInputRows()/processInput but much to my disappointment im not able to control the data in the buffer.

any ideas or workarounds on how i can better control the data in the buffer.

would appreciate your replies.



SCD Wizard and the Merge SCD Transformation do not work correct when running the first time.

$
0
0

Hi,

I have set up both the SCD transformation and the Merge SCD transformation.

They do not seem to work correct the first time.They are inserting the same row again as New Output even though that same business key exists already in the dimension or destination table.

But if I execute the DFT again they are loading it correct.

Now my business key is a string column-Has this got anything to do with this.

Please suggest if I am missing something.

Thanks,

Samir

XML Source from website

OLE DB Destination issuing "select *..." statement

$
0
0

Our DW is on SS2008R2 and we decided to turn on the SQL Server Audit feature to audit successful/unsuccessful logins (server audit) and select statements (database audit).  I found something strange regarding an SSIS package and am looking for an answer/explantion.

The SSIS package is very simple (it populates a dimension table):  ADO Net source reads the source table, data conversion to non-unicode, OLE DB destination to our SQL Server 2008R2 DW.  Nothing fancy.  Nothing complex.

The package runs fine, but in the audit file I'm seeing the OLE DB destination object is issuing a select statement (select * from DimTableXYZ).  Why would a destination component be issuing a "select *" statement and is there any way to prevent that select because we have some very, very large tables.


Integration and browser services get stopped by its own.

$
0
0

Hi friends,

We have install sql server 2008 R2 silent installation.

In our developement environment server SQL SERVER INTEGRATION and BROWSER Services get stopped by its own , we dono the reason why its happening.

Every day we manual start those services its not good one right. Kindly suggest some good solution for this issue why its stopped by its own and how to rectify it.

Thank You friends, waiting for your replies.

What is the difference beween BIDS 2005 and BIDS 2008, Developer Prospective?

$
0
0

Hi,

What is the Major difference in SSIS, SSRS, SSAS 2005 and SSIS, SSRS, SSAS 2005?


Regards, Vishnuvardhan

Has anyone successfully imported an Excel file located in Sharepoint using SSIS?

$
0
0

I have an SSIS package that imports data from an Excel spreadsheet that's stored in Sharepoint.  When I run the package manually through Visual Studio (pointing to the Excel file in Sharepoint using it's UNC path), it runs successfully.

I created a job that kicks off the SSIS package using a Proxy account to "Run as" my windows account.  When I run that job, it fails (pointing to the Excel file in Sharepoint using it's UNC path) with the error message listed below.  When I run that job (pointing to a copy of the Excel file on my local computer) it succeeds.

My windows account has full permissions on the Sharepoint site as does the SQL Service account.

Any ideas?

Thanks!

Matt

 

Message
Executed as user: DEV\EPUASMMW. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  4:51:09 PM  Error: 2011-02-11 16:51:10.32     Code: 0xC0202009     Source: ImportAugmentationTemplate Connection manager "ExcelImportFile"     Description: 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: "Failure creating file.".  End Error  Error: 2011-02-11 16:51:10.32     Code: 0xC020801C     Source: Import AugmentationTemplate spreadsheet into DB Excel Source [143]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "ExcelImportFile" 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-02-11 16:51:10.32     Code: 0xC0047017     Source: Import AugmentationTemplate spreadsheet into DB SSIS.Pipeline     Description: component "Excel Source" (143) failed validation and returned error code 0xC020801C.  End Error  Error: 2011-02-11 16:51:10.32     Code: 0xC004700C     Source: Import AugmentationTemplate spreadsheet into DB SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2011-02-11 16:51:10.32     Code: 0xC0024107     Source: Import AugmentationTemplate spreadsheet into DB      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  4:51:09 PM  Finished: 4:51:10 PM  Elapsed:  0.969 seconds.  The package execution failed.  The step failed.

DTS 2000 package failed

$
0
0
I have a DTS package that failed in SQL server 2000. I Microsoft event viewer gives me the name of package. With the package name does not seem to match anyting in my DTS designer. Is there a system table that I can look in to find that out more about the failed step?

Certified Geek


how to copy excel files to sharepoint

$
0
0

hi,

how to copy excel files from my C: drive( from remote desk)  to  sharepoint unc path (\\sharepoint.corp.********.com\sitename.......) PRO GRAMMATICALLY  using ssis package.

and i have to schedule the same in sql server agent.

thanks,

Send email to email IDs in the column

$
0
0

I don't have access to sp_send_dbmail.I am looking for SSIS to achieve this.I have a tbl in SQL Server with three columns userid,pwd,email. I want to send the email to each user with their userid and pwd.How can I acheive this?

I thought of a control flow with     execute Sql task-->sendmailtask-->executesqltask

where the first execute sql task reads the max rownumber and gets the values of that row and send the mail and in the second execute sql task deletes the max row.But I dont know how to loop this,so that it keeps on running till all the mails are sent and the table is empty.

I can use any better or faster approach.It is a one time process.

Thanks for your time and help.

SSIS Package Transfer Issue

$
0
0

I am trying to copy one ssis package from prod to QA but when I try find that package I could not find it. I see a sql job where I see that package source is SQL server and when I try to connect to integration service   testserver\test I get an error message that multi part server can not be used to connect integration service but when I try to connect just testserver I could connect but cant see the package and get an error message TITLE: Microsoft SQL Server Management Studio

------------------------------

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

------------------------------

ADDITIONAL INFORMATION:

The SQL Server instance specified in SSIS service configuration is not present or is not available. This might occur when there is no default instance of SQL Server on the computer. For more information, see the topic "Configuring the Integration Services Service" in SQL Server 2008 R2 Books Online.

Login timeout expired

A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. (MsDtsSrvr)

------------------------------

Login timeout expired

A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. (Microsoft SQL Server Native Client 10.0)

How to avoid the default ROOT node in XML?

$
0
0

Hi,

We got a SSIS package in which, XML data is generated using SQL query. the query ends like this,

For XML Path('StockList')

But when the exported XML is opened in IE, by default we get the node -<ROOT> ...................  </ROOT>

enclosing our Data. How to avoid getting this root node??

This node not appearing when running the same query in SSMS. its appearing only when its run from SSIS.

Also,

We need to display this in the starting of generated XML,

<?xml version="1.0" encoding="UTF-8" ?>

How can we get the above in starting line of XML ?

Kindly let me know !


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


How to use Foreach Loop Editor to find files(.txt) with user-defined format?

$
0
0

I have a question about SSIS. Could i use expressions and variable in Foreach loop editor to find files(.txt)

with use - defined format?

Format Like below:

extract_sae_vat_p0040996agq5_20121221030456
extract_sae_vat_p0040996agq5_20121222030538
extract_sae_vat_p0040996agq5_20121223030424

Thanks,guys

Viewing all 24688 articles
Browse latest View live


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