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

No Column information was returned by the SQL command.

$
0
0

I can preview the SQL command in the OLE DB Source Editor and bring back all columns and results just fine but when I click on the Columns I get

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

The component reported the following warnings:

Error at Data Flow Task [OLE DB Source [1]]: No column information was returned by the SQL command.

The columns are there in the preview - why can't SSIS get the column information?

TIA

Harry



How to deal with commas in data when exporting to a CSV file

$
0
0

Hi all!

Hope everyone is well. I need your help most urgently.

I have a table that I am exporting via a SQL server table to a csv file, via the flat file connection manager within SSIS. My issue is that one of the fields in my table contains "," (commas), so when the file is created it creates new columns in the csv file because the field is "," comma delimited on the column. Is there anyway to get round this without having to get rid of commas in my table (which I've tried and works)?

Any help much appreciated.

Thanks.

Counting number of files in a remote folder using cozyroc in SSIS

$
0
0

I need to iterate through a remote folder and count the number of files and use that count to compare the file count in the destination folder, as part of a success criteria. I am using SSIS package with Cozyroc for the SFTP.

Also, a task to check if the original folder name is still there,if its still there then fail the job.

Thank You

Aravindan Rajamani

SSIS Ninjas needed! Application details within.

$
0
0

We need Wizards and warriors, of words and wisdom. Come forth, oh mighty techno-scribbler! Pass your knowledge to others! Show us what you know and let others learn from your journey.

Soon you may become a member of the Technet Wiki Ninjas, and can quickly grow and get promoted within our ranks!

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

SSIS service failed to start

$
0
0

Server 2012 R2

SQL 2014 SP1 CU3

SSIS service will not start. 

App Log "Microsoft SSIS Service Failed to start.

Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

It had worked in the past but we cannot seem to narrow down exactly what has changed.

Execute SQL Task and sp_send_dbmail

$
0
0

I am trying to qualify my @file_attachments within [sp_send_dbmail] and appending a date qualifier parameter @FileNameDateQualifier to the @file_attachments.

And I am getting the error within my SSIS Package...

"There is an invalid number of result bindings returned for the ResultSetType"

I'm assuming I have to Add a Result Set but I'm not really sure what I have to add. The Result Set isn't going anywhere else...just used in this SQL.

DECLARE @EmailMessage			VARCHAR(MAX),
		@FileNameDateQualifier	VARCHAR(10),
		@FileNameFullyQualified	VARCHAR(MAX)
;

SELECT	@FileNameDateQualifier	=
		REPLACE(RIGHT(
		CONVERT(VARCHAR,
				(SELECT	DATEADD(WEEK,(DATEPART(WK,GETDATE())-2),DATEADD(YEAR,DATEPART(YEAR,GETDATE())-1900, 0))					-	4	-
						DATEPART(DW,DATEADD(WEEK,(DATEPART(WK,GETDATE())-2),DATEADD(YEAR,DATEPART(YEAR,GETDATE())-1900, 0))		-	4)	+1),
				102),10),'.','_')
;

SET	@FileNameFullyQualified	=	'\\server\fileshares\shared\Week_Of_'	+	@FileNameDateQualifier	+	'.xlsx'
;

SELECT	@EmailMessage	=	[#TempTable_EMail_Message].[EMailMessage]
FROM	[dbo].[#TempTable_EMail_Message]
;

EXECUTE	[dbo].[sp_send_dbmail]
		@recipients			=	'Recipient@whatever.com',
		@subject			=	'Subject Text',
		@body				=	@EmailMessage,
		@body_format		=	'HTML',
		@file_attachments	=	@FileNameFullyQualified,
		@importance			=	'High'
;

Thanks for your review and am hopeful for a reply.

Teradata Attunity connector in SSIS for Unicode characters

$
0
0

Hi All

I'm new to SSIS, using Terdata Attunity connector for integrating data flow between Terdata (source) to SQL Server (Target).

SSIS package is getting failed because of length mismatch between source and Target for Unicode character datatype columns.

Reason is Teradata TPT always occupies 3 times more length of actual defined in DB. 

Any suggestions here 

even I tried by increasing length of attribute in Source but it didn't help

I know by converting datatype from unicode -> Latin would help, but i don't want to do conversion since loosing some characters.

##################################################

Error is 

[Teradata Source [263]] Error: TPT Export error encountered during Initiate phase. TPTAPI_INFRA: API306: Error: Conflicting data length for column(5) -  Source column's data length is (200) Target column's data length is (300).

##################################################

Thanks

-Kishore-

CACHE TRANSFORAMTION RESULT DESTINATION FILE I CAN'T FIDE

$
0
0
When i am doing a lookup transformation i am taking source as one sql table that tabel i am coonecting to cache transformation.When i am executing the result .CAW file i cant find where it vl save that file

How to load 4300000 data using stored procedure in best optimize way

$
0
0

There are around 4300000 records in staging table . These records need to be loaded into 8 target tables.
The records will be moved from staging area to target tables using stored procedures .

since record volume is quiet big what should be strategy to load the data using stored procedure.

Assume like the whole block of code cannot in a single transaction , if any error comes the whole
data will rollback .

shall the stored proedure be executed batch while by passing filter criteria in the staging table
where record between value1 and value2.

There will a while loop which invokes the sp into batches 
by spiliiting the data into batches and pass the value1 and value2 in where clause of the staging table which has RecordId as an identity column.

Please suggest the best possible way to load the data.


Hardware configuartion 3 GB RAM 2 Core PRocessor . Windows server 2012 64bit OS

Unable to connect to a Web page from SSIS (SQL Server)

$
0
0

Alright! After a lot of research on web, I couldn't find any of the solution working for me. I am trying to connect to a Web page from SSIS and I've tried both http connection manager and a Script Task but none of them seems to be working.

I get the following errors:

Through Script Component:Exception has been thrown by the target of an invocation.

Through http connection manager:The remote server returned an error: (503) Server Unavailable.

Here is one of the VB code I've tried:

Public Sub Main()
        Dim MyWebClient As New System.Net.WebClient()
        Dim proxyObject As New System.Net.WebProxy("BANANA:8080", True)
        MyWebClient.Proxy = proxyObject
        MyWebClient.Proxy.Credentials = CredentialCache.DefaultCredentials

        Dim remoteURi As String
        remoteURi = "http://www.fhfa.gov/DataTools/Downloads/Pages/Conforming-Loan-Limits.aspx"
        Dim filename As String
        filename = "C:\LoanLimits.html"
        MyWebClient.DownloadFile(remoteURi, filename)

    End Sub

And, here is one of the C# codes I've tried:

public void Main()
    {
        Variables varCollection = null;

        Dts.VariableDispenser.LockForRead("User::RemoteUri");
        Dts.VariableDispenser.LockForRead("User::LocalFolder");
        Dts.VariableDispenser.GetVariables(ref varCollection);
        varCollection.Unlock();

        System.Net.WebClient myWebClient = new System.Net.WebClient();
        string webResource = varCollection["User::RemoteUri"].Value.ToString();
        string fileName = varCollection["User::LocalFolder"].Value.ToString() + webResource.Substring(webResource.LastIndexOf('/') + 1);
        myWebClient.DownloadFile(webResource, fileName);

        Dts.TaskResult = (int)ScriptResults.Success;
    }

I could open the same web page mentioned in the code manually in all my browsers (IE, Firefox, Chrome).

FYI, I am using SQL Server 2014. Please let me know if you need any other information that I can give you to help me.

Thanks,

Bangaaram


Known is a DROP, Unknown is an OCEAN.

lookup transformation in ssis

$
0
0

Hi,

I have one below requirement in ssis i need to develop the package.

Customer TblStaging Table             Detail  

(Source Srvr)             

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

CustomerIDCustID                      CustID

NameStaffID                      Name

In the above staging table, CustID and StaffId will have some similar values as in CustomerID coln in  CustomerTable(Source Srvr).

To check the customerid is same in the staging table custid then i need to pick the customerid and its name to destination table.

Customer:            Staging Table  Detail Table

1. CustomerID -----> CustID ------------> CustID and Name

& Name

To check the customerid is same in the staging table staffid then i need to pick the relevant customer id and its name to destination table.

2. CustomerID------->Staffid---------------> CustID and Name

& Name

I have used the below logic,

1.  Oledb source

select Customerid,Name from customer

2.Lookup

Select custid,staffid from Staging

In columns, matching customerid with custid only

fetching only Matching records

3. Lookup

Select custid,staffid from Staging

In columns, matching staffid with custid only

fetching only Matching records

4.Oledb Destination

Mapping customerid and full name

Please suggest me if i did anything wrong or tell me any better way to do it.

Thanks,

Lucky

where is 'Integration Services Catalogs' coming from?

$
0
0

Hi experts!

Quick doubt...

I need to modify a .dtsx that is inside ‘Integration Services Catalogs’; I tried right-clicking + exporting… But I only see ‘Configure’, ‘execute’ or validate options… I thought I could export it, directly from there, modify it and import it again…

Now I accessed the Integration Services from the same server name, and it’s not there… How can I find out, where is that package from? Or is there a way that I can export it directly from ssms?

Thanks in advance!!

SSIS Performance optimization .

$
0
0

Need help friends ,

My Application is like below :

Old Source Server DB: OLDSRCDB

OLD DEStination DB : OLDDESTDB

NEW Source Server DB: NEWSRCDB

NEW Destination DB : NEWDESTDB

SSIS1 :- My SSIS Application Loads the data from OLDSRCDB to OLDDESTDB . - 28 mints

SSIS2 :-One more SSIS Project file load the data from OLDDESTDB + NEWSRCDB  = NEWDESTDB

we have a number of fact tables with large number of data in all tables.

SSIS2  = combines the data from OLDDESTDB and NEWSRCDB (Historical+New) data using the UNION ALL  and inserts into the New destinaton   = approx 4 :45 mints

This 4 hrs .45 mints is causing a very big issue in management .  i need to reduce it at least some 45 - 70mints.

Please help . is there any alternative way/transformation to use in SSIS2.

Using Union ALL in SSIS to get data from 2 sources....? What abt the performance . it is taking a lot time in loading

How can i UNION the data from the 2 SQL Sources.

Please suggest any alternative way to work on the optimization side.

regds

Rakesh Dhar

Oracle Provider for OLEDB

$
0
0

Hi Guys

I want to use Oracle Provider for OLEDB, but it didnt listed in ssis connection manager

how to install and register the same i am working ssis 2012

Thanks a bunch in advance


ADKR

SSIS VS2012 The binary code for the script is not found

$
0
0

I get this error when I deploy ssis package with script task. for testing , I made a new project with a new script task and no code added. When I deploy it , I get this error.

Thanks


Count rows in Excel through SSIS

$
0
0

Hi All,

   While handling errors in a flat file I am routing the rows into the excel sheet to business for further processing.  I need to send a mail attaching the excel sheet which contains the errored-out/In-Complete definitons. The problem is I need to send a mail if and only if there is at least one row in Excel sheet. How Can I count the rows exist in excel sheet? and send the rowcount to a variable and use that value of a variable to send a mail?

Regards,

Venkata R


Venkata Koppula

Send data from SSIS to a web service

$
0
0

Currently, I want to execute a query statement then send the data to a web service. However, a web service is not in "Other Destination". So, Could you please give me any suggestion or any key word for me to do this task?

Thanks to much

SQL Server SSIS catalog execution of package fails to exception

$
0
0

I have made packages is SSDT and when I run them in debug mode they work perfectly.

Then I deploy the packages to SSISDB for automated execution.

When I test the packages, I run them straight from the catalog.

After awhile, packages fail to :"exception has been thrown by the target of an invocation"

Any idea where to start look for the bug?

NOTE: this exception started suddenly for no apparent reason, packages could be ran earlier..

SQL Server 2012 clustered enviroment

Triggering a SSIS Package after a pause

$
0
0

Hi,

I have a SSIS Project in which right after the cleansing task, the output table is copied to Master Data Services. In order to allow the user to add some values manually for some fields.

After the user has performed his changes using MDS-Excel and the MDS Database is updated, I would like to run the SSIS package from where it halted / run another SSIS Package which contains the further steps after the cleansing task.

Is it possible to automatically trigger SSIS Packages using the events given in my description? If so, which event / procedure is suitable to do so?

---------------------------------
I forgot to mention one more case : If the user opens the Excel file and sees that he has nothing to update in the MDS (MDS Database is not updated), how to start the package again automatically ?

Share Point Source RSSBus Adapter

$
0
0

Hi All,

I want to use the excel sheets located on a share point site as source, for this i downloaded the adapter from the following link

http://www.rssbus.com/download/GetFile.aspx?file=demo/RSS3-A/setup.exe&name=RSSBus%20SSIS%20Components%20for%20SharePoint

I got the connection manager to work, but when coming to load the excel files to the destination location its not doing what is intended. For example i want the destination location my local drive for the excel files, how can i do that which destination should i use?

Thanks

Viewing all 24688 articles
Browse latest View live


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