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

creation of hyperlink in ssis

$
0
0

Hi

i need to assigned the hyper link to one of the column in excel destination  in ssis

my data is coming from oledb to excel, based the column value the hyperlink created,or that i used the derived column,

i to add that hyperlink to column


Error trapping in SSSIS

$
0
0

HI,

How do I generate an error output file for my package, while executing it from Query window.

I use /Vlog "C:\Error.txt, but its not generating the error file.

  SELECT @cmd =  'dtexec /F "C:\XXXSync\XXX_XUsers1\Package\Sync_XUsers.dtsx" /CHECKPOINTING OFF /REPORTING E ' +               
 ' /set \package.variables[User::XXXPersonList].Value;' +'"' +  @person_output +'"' +               
 ' /set \package.variables[User::XXXAddressList].Value;' +'"' + @address_output +'"' +               
 ' /set \package.variables[User::XXXAddressUsageList].Value;' +'"' + @addressusage_output +'"' +               
 ' /set \package.variables[User::XXXPreferences].Value;' +'"' + @preferences_output +'"' +               
 ' /set \package.variables[User::XXXPerContNumber].Value;' +'"' + @phonenumber_output +'"' +               
 ' /set \package.variables[User::XXXAirlineCards].Value;' +'"' + @airlinecard_output +'"' +               
 ' /set \package.variables[User::SPID].Value;' +'"' + @m_SPID +'"' +               
 ' /set \package.variables[User::XXXPassports].Value;' +'"' + @passport_output +'"'  +

'/Vlog "C:\Error.txt'

SSIS ftp deployment error

$
0
0

i wrote a simple script using the webclient class to download a file from a ftp site using SSIS...it works perfectly in debug mode.

webclient webby = new webclient();

webby.credentials = new networkcredential(id,pwd)

webby.downloadfile(source, mylocaldrive);

but when i deploy it to download to a shared drive OR my local drive, the file briefly appears then disappears and the SQL server agent job is descrbed as a success...

Can anyone help with this?

Thank you.

Does onError EvenetHandler will work out if connection got closed or unable to acquire the connection in SSIS

$
0
0
Does onError EvenetHandler will work out if connection got closed or unable to acquire the connection

Slow OLEDB Destination Performance

$
0
0

Hi

I am using Data Flow task in SSIS 2008 . I am calling stored procedure in OLEDB Source that is returning 50 million records and then I am using OLEDB Destination where the table is on different server than the source and this process is taking 2 hrs to complete . we can't use linked servers. What's the other way around to speed the performance? Just for the test if I use the table on the same server and include the table in the stored procedure and do the INSERT INTO table in the proc itself then it takes only 25 minutes.


"Syntax error or access violation" on Data Flow Task OLE DB Data Source

$
0
0

I am implementing expression parameter for a SQL Server connection string (like this: http://danajaatcse.wordpress.com/2010/05/20/using-an-xml-configuration-file-and-expressions-in-an-ssis-package/)  and it works fine except when it reaches data flow task - OLE DB Source task. In this task, I execute a stored procedure like this: 

exec SelectFromTableA ?,?,?

The error message is this:

0xC0202009 at Data Flow Task, OLE DB Source [2]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "Syntax error or access violation".
Error: 0xC004706B at Data Flow Task, SSIS.Pipeline: "OLE DB Source" failed validation and returned validation status "VS_ISBROKEN"

When I change the SQL command above with reading from table directly it works fine. I should also add that before changing connection string of the SQL data source to use expression, the SSIS package was working fine and I know that the connection string is fine because other tasks in the package works fine!

Any idea why?

Doesn't work :(

$
0
0

I tried all of the above to no avail.  I do not have the components to run them somehow.  I am on 64 bit. 

Send Mail Task error- 2012.

$
0
0

Hello Team,

                   When we are running a job which is having the SEND MAIL Task, the job is getting failed with the mentioned error. Could you please look into the below mentioned error and can help us on the resolution for this issue?


SSIS - Make a "dynamic" database connection tutorial (step-by-step) ?

$
0
0

I want to make one connection ONLY to loop over a list of servers. This connection should be able to connect to databases located on different servers ie different IP addresses. After connecting to a database, it should run some SQL code. The result set of this code should be transferred to a central database. After that, it should do the same for another server.

Can someone give me a step by step tutorial to do this ? I want hand holding/spoon feeding tutorial because no tutorial on the net worked for me so far. 

Tutorials i tried , but did not work -

http://www.rafael-salas.com/2010/01/ssis-loop-through-multiple-database.html

http://www.codeproject.com/Articles/14341/Using-the-Foreach-ADO-Enumerator-in-SSIS

and many others which i cannot even remember. NONE of them are step by step. I have also not found a SINGLE book which covers this. All books only loop through files, but not through remote databases.

I need your help.

Thanks





Conditional processing of SSAS cube through Analysis Processing Task in SSIS package .Need Advice

$
0
0

Hi,

I have a SSIS package with Analysis Processing Task that processes a cube.Now, I have some Queries ,if these queries return rows then the Cube should not be processed.But if the queries do not return any rows then the cube should be processed.

How can i execute the Analysis Processing Task based on the result of the queries.I cannot find any conditional split kind of task in the Control Flow Tab of SSIS.How can i achive this ??

simple parameter question ie db_name and usage in an expression

$
0
0

Hi,

I just started with SSIS with an example containing a flat xls file with 5 columns and a source table in sql.

The example works fine no parameters etc.

What I want to try out is to make an exception that if a certain db_name = X then the flow should be redirected to another table.

Basicly I need help how to define a parameter to read from the source database like "select db_name as db_name" and use this in the package flow. When db_name=X then flow A ELSE flow B

Any help is very appreciated.


-Miracles are easy, the impossible takes a bit longer-

Row count of flat file on control flow itself

$
0
0

Hi ,

I am having 1 flat file wich is coming daily for loading in to sql table.

First I am counting the number of file and if the file count  is 0 my package gets terminated.No

Now suppose flat file count is 1 and  if the record is 0 in flat file then it shold terminate.

how to count record from flat file on control flow not in Data flow task.

please suggest solutions.

regards,

Vipin jha


Thankx & regards, Vipin jha MCP

Cannot Connect to the source

$
0
0

Hi

I have a package that i scheduled for a nightly run and it has bee running w/o any issues for 2 years. All of a sudden its been failing with the following error

Test connection failed because of an error in initializing provider. Login failed for user ''. The user is not associated with a trusted SQL Server connection.

I tried to run the package from the SSMS and still the same error. I opened the pakcage in BIDS and i tried to edit the source in the connection manager and clicked on test the connection and was getting the same error. Nothing changed. I checked with the DBA team. The server properties is set for SQL server and Windows Authentication. Can any one please point me where and what to look for. Both the source and destination are SQL Servers Databases. Source is on a named Instance.

Thanks

Run SSIS package at scheduled time without running SSIS service

$
0
0

Hello

I want to run SSIS Package using SQL Agent job, But for some reason, I am allowed to install SSIS services on the server. Is there any way to run SSIS package without running SSIS service? I tried using DTEXEC.exe command, but it still give an error. "To run SSIS package outside SQL server data tools you must install service".

Thanks in advance

SSIS Script Task Shows Nonexistent Breakpoint in Designer, Hangs While Validating

$
0
0

I've built an SSIS package in SSDT 2012.  The package was running successfully until I made a change to a script task.

The task, written in C#, uses an OLE-DB connection to open an Excel workbook and load cell values from each worksheet into separate DataTables.  The table data is then stored in SQL Server. 

I was opening and closing the connection for each sheet.  I then decided to try to make the code more efficient by only opening the .xls file once, looping over the sheets, and only closing it after all sheets had been loaded.

I rebuilt the package.  Now, when I run it, SSIS reaches this script task (the last in the package) and hangs, displaying the yellow arrow indicating that it is validating the task:

  Any break point that I set in the script code is never reached.  (Oddly, if I stop running the package, open the script in VSTA, remove all breakpoints in the C# code, and then save the task, the package designer still shows a red circle, which I though indicated that the task contains breakpoints.)

These seems like bugs in SSIS/SSDT.  What would cause the relocation of some script code to hang the validation process like this?


- Mark Z.




SSIS 2005 not running after upgrading (32 bit, Windows XP to 64 bit Windows 7)

$
0
0

I really need some help. Recently I went from using Visual Studio and SQL 2005 on a laptop (32bit system - Windows XP) to a desktop unit 64bit processor with Windows 7). SSIS on the laptop worked just fine and I could execute and open packages in SSIS; however, my new desktop unit will not even allow me to open a new package or run an existing package. As soon as I attempt to create a new SSIS project, I receive the following error: "An error prevented the view from loading. The specified module could not be found. (Exception from HResult:0x8007007E)(System Windows Forms).

SSIS won't allow me to view the control flow or data flow screens and if I attempt to run an existing package created with the SSIS wizard I receive the following error: SSIS package "Package1.dtsx" starting.
Information: 0x4004300A at Data Flow Task, DTS.Pipeline: Validation phase is beginning.
Error: 0xC0202009 at Package1, Connection manager "SourceConnectionExcel": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040154.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".
Error: 0xC020801C at Data Flow Task, Source - Without_Sample$ [1]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionExcel" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error: 0xC0047017 at Data Flow Task, DTS.Pipeline: component "Source - Without_Sample$" (1) failed validation and returned error code 0xC020801C.
Error: 0xC004700C at Data Flow Task, DTS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task: There were errors during task validation.
SSIS package "Package1.dtsx" finished: Failure.

I have tried changing the properties in the package to run in 32-bit mode; however, this does not work. I can run queries and import data in SQL Server Management Studios just fine, as well as run queries and reports in Visual Studios; however, I can't execute or create any package in Visual Studio with the new machine. Am I missing a needed system file in the new sysWOW64 folder? The IT person who installed the software isn't familiar with the program and doesn't know how to fix it either. I'm relatively new with using SSIS and really need some help on how to get this fixed. Any help you can offer would be greatly appreciated.


Unpivot months question

$
0
0

Hi,

I have file with following columns:

Project, Year, Jan_Amt, Feb_Amt,....,Dec_Amt, Sum_Amt (last column can be ignored)

I want to unpivot it and load to sql table, with following columns:

Project, Year, Month, Amt

My destination table has month column as char(2), and months there have to be: 01/02/03/.../09/10/11/12 (zero ahead of 1 digit month). From some reason I cannot make it work:

I chose following columns as "pass through": Project, and Year.

I checked input columns Jan_Amt - Dec_Amt as Input Columns, Amt as destination column, and

I set Month as "Pivot Key Column Name", and Pivot Key Values to: 1,2,3,...,12.

In Advance Editor, I set Month column data type to DT_STR, with length = 2.

What I get in result for months 10-12 is only 1. For example, for October data, I get:

Project, Year, Month, Amt

P1, 2014, 1, 100.0

Any idea what is going on?

Thanks


Pedja


Missing last row when package is run as a job from SQL 2008 R2

$
0
0

I have one package which reads a CSV and fills a table. This is a simple extraction. When i add the package to the server storage (SQL 2008), make a job en run it from that job, there is no problem.   

When I make the same job at our SQL 2008 R2 server and i run it, i'm missing the last row. It happens with all CSV's. When i run the package directly from the storage, there is no problem. So it only happens when its started as a job.

Is this a bug? Or am i missing something?

 

Thanks in advance!

J2.0

 

 

WinSCP not being executed when package is ran from job

$
0
0

I have a package in the SSIS catalog. It worked fine when it ran in the file system, but like so many others, died when I called it from a job. I ran the problem down to the fact that the account that the job was running under didn't have access to the directories that the package was trying to access. That solved half my problem.

In my package I'm calling WinSCP from a script task. I can tell the executable is not getting called. No errors are being thrown. I gave the account in question full access to the folder where WinSCP resides but that didn't fix the issue. What else do I need to look at?

SSIS 2012 / Teradata TPT load

$
0
0
Hello, I am trying to use SSIS for loading Teradata from a flatfile.  It's requiring the target table to be empty before loading.  Is there any settings in SSIS to delete the target table before loading?  Or how would you execute teradata SQL from SSIS?
Viewing all 24688 articles
Browse latest View live


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