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

Compare STRUCTURE 2 Tables

$
0
0

Hi all,

I was wondering if there's a way to compare 1 table with other (in other DB), I mean:

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

Table1 DB1

ID

NAME

DESCRIPTION

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

Table1 DB2

ID

NAME

DESCRIPTION

ADDRESS.

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

And when the query(or other case) gets that the table 1 doesn't contain ADDRESS, alter the table and add this field that is missing.




If condition in ssis

$
0
0

How to achieve the below condition in ssis

if person_id  is like '123%' or '124%'

then details='xyz'

else details='yxz'


sree

How to find the parent package

$
0
0

Hi,

The problem I'm trying to solve is, given an instance of a SSIS package being executed, I need to find the GUID and execution id of the package that calls it. According to the API (https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.package.aspx) the Package class

has a property "Parent", which returns the instance of the container that contains the child package. In reality though, this doesn't seem to work. Here's what I did,

1. Create a child package that simply has a script task which writes a line to a file for debugging purpose.

2. Create a custom SSIS component in which the child package is called by the myPackage.Execute() method;

3. Given the reference myPackage, try to print the parent container id through the FireInfo() method from IDTSComponents interface.

What I got was an "reference not set to an object" error, which means the parent property is null. This leads me to wonder, when is the parent property set? Is it only set during the execution of the child package? I tried to access it both before and after executing the child package, and in both cases the value was null.

My ultimate goal is to write the parent package id (and execution id) into the ssis log so as to easily trace the execution of packages. Another option to achieving this goal would be through passing values via parent package variables but that seems to be too clumsy. 

Any help / suggestion is greatly appreciated.

Regards,

Amos

Server not running SSIS job in 32bit mode

$
0
0

I have a package that I developed in VS2012 (using the SQL Data Tools component) which collects data from a DBF file using the VFPOLEDB provider, and puts it into a database on a SQL Server 2012 X64 server. The project containing the package has the DebugOption of Run64BitRuntime set to false. I have imported this package to the SSIS Package Store of a test and live server (identical setups). The VFPOLEDB provider is installed on both, and I can see in the registry of both machines that it's there for 32bit runtimes.

The package runs fine on the test machine, but fails on the live machine. The live instance of SQL does not appear to recognize the 32bit VFPOLEDB provider that is installed.

The only difference in the instances of SQL is that the live environment has an Integration Service Catalog set up, where as the test does not. Looking at the logs of the servers, when the live starts, it runs sp_ssis_startup, and then logs messages about unsafe assemblies being loaded in. This SP is not run on the test environment because there is no catalog.

The jobs I create have the flag set to use the 32bit runtime, but I can't help but feel that the SSIS Catalog is having an issue with the VFPOLEDB I am using, and not loading it.

I don't really know anything about the SSIS catalog, so is anyone able to suggest any direction I could move in?

Problem calling SSIS package

$
0
0

I have an SSIS package that is hosted in MSDB database in SQL Server 2008.

There is another server that has SQL Server 2012 and has an exact replica of the databse as in SQL Server 2008, with all the user roles and permissions being same.

I am calling this package in my application using code written in C# 4.0.

The call is successful when calling the SQL 2008 database.

However, when I try calling the same SSIS package in SQL Server 2012 database, the call is unsuccessful.

Please suggest what could be the issue.

How to create a SSIS package

$
0
0

Create a SSIS package for following scenario

I have one excel file which will contain 10 records for Monday, 12 records for Tuesday, 7 on Wed, no records on
Thursday so if records are there I get mail if no records are there I didn't get mail daily.

How to create package in ssis

$
0
0

Create SSIS package for the below output:

Table

Eno  ename  Eloc      Edept
1       Sid       Pune     101,201,301,401,501,601

Output:
Eno ename Eloc Edept
1 Sid Pune 101
1 Sid Pune 201
1 Sid Pune 301
1 Sid Pune 401
1 Sid Pune 501
1 Sid Pune 601

Excel file writing o records while running through .bat file in SSIS

$
0
0

Hi,

In SSIS package, When i'm executing the package from the solution explorer it is writing 350 records into excel file.

But while using the .bat file it is writing 0 records into excel file.

Note: I have verified the .bat file, package name and config file name are specified correctly.

Thanks,

Lucky


Value of CDC state User::CDC_State is not well structured

$
0
0

Hi SSIS Expertise:

I am facing some error in my package, calling the CDC source enabled package in parent package. its not working. Here I can explain my problem, I need to load 5 CDC enabled tables into my target table . so that I developed separate package for each table. in my master package initially I called the CDC control in between I am calling my separate packages, finally I ended with CDC control. I tried to run the parent package, its throwing error like "Value  of CDC state User::CDC_State is not well structured". but I am able to run this process in each separate package enable separately CDC control. My question is here: its possible to call this CDC source enabled packages as child package or not? please any one assist.

Whats the difference between executing a package from SQL and Visual Studio?

$
0
0

Hi,

We have a package that is currently failing to run when deployed to SQL. This has been tried from a schedule and also executed manually both are failing.
I have tried from Visual studio running on various machines (windows 8, server 2012) and in all cases run perfectly.

I am trying to understand the differences between deploying to SQL and running from VS so maybe I can figure out why this is happening.

I have the following errors when I run from SQL.
DTS_E_PROCESSINPUTFAILED - all errors like this point to the 'Sort' tasks in the script
dts_e_processinputerror not enough storage is available

I have tested in four environments and all fail from SQL but not from VS!

Last night I tried from my laptop and executed the package from SQL - it didn't fail but was still running in the morning so I terminated. Note this takes around 20 mins running from VS! why would it be so quick from VS but fail or take so long on SQL?

The test running at the moment is on a server with dynamic memory currently at 14GB. I decreased SQLs RAM to 4GB and it hasn't failed yet but has been running for two hours. Before changing this the package failed after a short time.

I thought it may have something to do with running from a virtual machine but doesn't explain why it couldn't run locally on my laptop.

All ideas welcome :) Many thanks,

Davina

Query SSIS packages details from file system

$
0
0

Hi All,

I have around 500 packages (SQL 2005) deployed in file system & all this packages are running on daily basis via SQL agent. Now I need to migrated all 500 packages into SQL server 2008 R2.

There is no inventory to track which package belogs to which team and any other information.

Now, I need a method to query the pakages connection string details with database respective. Is there any method?

Thanks

Raghu

Variable Value: How do I set it from value in flat file at runtime

$
0
0

I have a number of DTS packages I am trying to convert and am totally new to Integration Services.

I have a flat file that I reference to get a date that I use in some SQL statements in the package.  It seems like the best way to do this would be to create a variable to hold the date and set it at run time from the flat file.  I've been searching the documentation and the forum and can't figure out how to do this.  This is so basic that I feel like an idiot putting it on the forum but I need some help.  This whole Integration Services thing is a big shift from DTS (which I eventually became pretty good at)  Now I'm back to ground zero.

Any help would be appreciated.  If you can direct me to any basic training resources that would be cool too.

 

Date Script Variable

$
0
0

I have this script I created as a variable on my package.  What is does is it gets the current date and makes it so that it goes back on day

"XASessionData_"+ (DT_STR, 4, 1252) (DATEPART("yyyy", GETDATE())) +"-"+RIGHT("0" + (DT_STR, 2, 1252) (DATEPART("mm", GETDATE())), 2)+"-"+ RIGHT("0" + (DT_STR, 2, 1252) (DATEPART("dd", DATEADD("dd", -1, GETDATE()))), 2)  + ".csv"

The problem happens during the end of the month.  So let's say today is April 30th.  The script runs and goes back one day, so it looks like this  XASessionData_2015-04-29.csv, this is good!  Problem happens when we go to 1st of the month. That script runs on May 1st and it returns the following XASessionData_2015-05-30.csv, so that's wrong cause instead of saying April 30th, it says May 30th.

Changing Providers in Connection String Issues

$
0
0

I've got eight 2005 SSIS packages that were accessing SQL Server 2018 for bulk data and a SQL Server 2000 for some data also.

Both connection strings use the Provider=SQLNCLI.1.  These packages all are working daily without trouble even though the DB03 box had been upgraded to SQL2008 but I never changed that Provider to the SQLNCLI10. 

SQL Server 2000 to SQL Server 2012 and I've converted the VS2005 projects to VS2008.  It converted the SQL Server 2008 connection string provider to SQLNCLI10 but since our SQL Server 2000 box is still in place it doesn't convert that Provider.  I thought well I'll just manually change the Provider to SQLNCLI10, recompile and then we'd have to DTSX to quickly swap on the new SQL Server 2012 box.  But on recompile now it changes it back to the SQLNCLI.1 Provider.

Question:  Must I wait til the Server is actually upgraded to be able to change and recompile the DTSX with the new Provider?  How is this usually handled gracefully?

TIA

Harry

Integration Services Jobs failing

$
0
0

Hi SQL Community,

I'm new to SSIS, but I have inherited some Integration Services jobs that we depend on that are failing now.

I've attached an example error. Any suggestions or pointers would be appreciated!


Version Identification as need to install vversion of SSIS asnd SSIR to be installed

$
0
0

Hi,

I am learning ETL and advanced SQL Server tactics. there I want to work around hands on on SSIS and SSIR. I want to identify the version of SSIS asnd SSIR to be installed  with my edition of SQL Server Management Studio.

Please guide me through to identify the compatible trial version of the same.

Links for the free trial download are also Welcome.

Many Thanks

Chieeff

SQL server 2014 and VS 2013 - BuilInsert task - truncate a field data of a CSV file and insert it to SQL table.

$
0
0

Hello everyone,

To move data from roughly 50 CSV files in a loop to SQL tables (table per CSV file), I've used BulkInsert task in For each loop container.

Please know, for all different columns of all CSV files, the filed length was specified as varchar(255).

It worked well for the first 6 files but on 7th file, it has found the data in one of the columns of CSV file, which exceeds the limit of 255 characters. I would like to truncate the data and insert the remaining data for this column. In other words, I would like to insert first 255 characters into table for this field and let the package execute further.

Also, if I would use SQLBulkCopy in Script task, will it be able to resolve this problem? I believe, I would face the similar problem over there too. Although, would like to get confirmation for the same from experts.

Can you please advise how to get rid of this truncation error?

Any help would be greatly appreciated.


Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com




Connecting to the integration services on this computer failed

$
0
0

Hello,

I just have installed SQL Server 2014 and I have added the SSDT to the features. Before, I was using SQL server 2008 and Visual Studio 2008 (BIDS) from where i created and deployed packages.

For some reason I am unable to connect to Integration services I get this  error:

TITLE: Connect to Server
------------------------------

Cannot connect to INSTANCE.

------------------------------
ADDITIONAL INFORMATION:

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

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

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

Connecting to the Integration Services service on the computer "INSTANCE" failed with the following error: "The specified service does not exist as an installed service.".

This error can occur when you try to connect to a SQL Server 2005 Integration Services service from the current version of the SQL Server tools. Instead, add folders to the service configuration file to let the local Integration Services service manage packages on the SQL Server 2005 instance.


For help, click: http://go.microsoft.com/fwlink/?LinkId=220763

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

Connecting to the Integration Services service on the computer "INSTANCE" failed with the following error: "The specified service does not exist as an installed service.".

This error can occur when you try to connect to a SQL Server 2005 Integration Services service from the current version of the SQL Server tools. Instead, add folders to the service configuration file to let the local Integration Services service manage packages on the SQL Server 2005 instance.


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

OK
------------------------------

By now I have uninstalled Visual Studio 2008 and tried to run SQL as an administrator but no change.

Can someone advise how to get access to Integration services?

thanks

VS2008 unable to load Integration Services package document after creation

$
0
0
Upon creating a new IS project in Visual Studio 2008, I get this error message in a tabbed window:

"Microsoft Visual Studio is unable to load this document: To design Integration Services packages in BI Development Studio, IS has to be installed by one of these editions of SQL Server 2008: Standard, Enterprise, Developer, or Evaluation.  To install IS, run SQL Server setup and select Integration Services."

But I do have IS installed.  I have two databases, one from the free Express Advanced edition and one from Developer edition.  SQL 2008 setup (Developer edition) shows IS installed as a shared component.  I installed the Express edition before later installing the Developer edition and had no problems.  What needs to be done here?  Help, and thanks for any help!

I experienced this problem while running and following a video tutorial "Creating a Basic Package," from this MSDN site:

http://msdn.microsoft.com/en-us/library/cc952921.aspx


If it helps, I have .NET 3.5 SP1 installed.

Algorithm for strong match,exact match

$
0
0

Hi,

I need a algorithm which supports exact,weak,strong match on names field.

fuzzy logic not able to figure it out algrithm how it works.

So is there any algorithms which solves my problem




Viewing all 24688 articles
Browse latest View live


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