Quantcast
Channel: SQLServerCentral » SQL Server 2005 » SQL Server 2005 Integration Services » Latest topics
Viewing all 1193 articles
Browse latest View live

SSIS 2012 Lookup not considering duplicate records from reference dataset

$
0
0
I am using SSIS 2012, SQL Server 2012 both for source and destination.This is in regards loading a fact table.I am using a Lookup and that Lookup table has values like.Store tablestorekey StoreNum PSLocationKey923 14120 5001753 14120 500From the source I am Pulling StoreNum and Looking up using the StoreNum "ONLY" and returning StoreKey and LocationKey from the Lookup and loading it into the fact table. In the above case I want to load both the records from the lookup table as I am joining on StoreNum.But only the 1st record gets loaded.As if the second record does not gets considered at all. if I interchange the order of the records in the Lookup table only the 1st record from Lookup table gets considered.I did try using SQL in the Looup transformation and hard code using UNION ALL.Did try various cache options. Also tried Lookup Property Considering Duplicate records as error TRUE/FALSE.No effect.I read a post [url=http://blogs.msdn.com/b/michen/archive/2008/06/07/lookup-multiple-rows.aspx][/url].But this dates back to year2008. The other alternative I tried using multicast transformation and 2 looksup transformation.Each Lookup has 1 of the records and it works.I can see both the records in the pipeline.But what if there are 3 records or 4 records of such type.I cannot dynamically add Lookup transformation.The only option for me is to use SQL Command and variables in source. But this defeats the purpose of SSIS.Please sugesst me how can I implement this only with 1 Lookup transformation.

SQL Server configuration not working

$
0
0
I have a package with 2 connection managers. One is called SSISConfig and is set to use an enviroment variable configuration pointing to the database that will be holding the configuration for the 2nd connection manager. The 2nd configuration is a SQL Server one and I can see the rows in the table for this connection manager. I have to use SQL Server authentication with a username and passoword. The pasword is correct in the ssis_configurations table but Im getting the following error when I try to run the package:[Care Alert from HEDIS [297]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "MyConnxMgr" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.Why am I getting this error? I open the connection manager in VS and test connection and its fine.

SSIS Job Monitoring system

$
0
0
Hi, Im trying to create an web applicaiton that monitors the runtime SSIS jobs. The little application should be able to list down the current status of all the jobs that are deployed in the sql server. is there any machanisum throught which we can figure out the runtime jobs in the sql agent. Thanks in advancegauta

pulling data from end of column

$
0
0
hi i have the following text in a coulmn Net Asset Value for Ignis Absolute Return Government Bond Fund . Class A GBPTotal Outstanding shares for Ignis Absolute return Government Bond Fund. Class I2 EUR HedgedNet Asset Value per share for Ignis Absolute return Government Bond Fund. Class I2 CHFwhat im trying to do it when search that column and when i hit the work call i take all the text from clss to end and put it into another columnso when i look at my new column it should just haveClass A GBPClass I2 EUR HedgedClass I2 CHFAnyone any ideas the best way to do this

[SQL Server Destination [310]] Error: Unable to prepare the SSIS bulk insert for data insertion.

$
0
0
Hi,I have a very basic package which has a tsql statement to do select from table in a OLE DB Source. The destinatino is a SQL Server Destination.the Connection Manager use a Provider of Native OLE DB\SQL Server Native Client 10.0the servername is localhostameinstance.This package always error out at the Pre-Execute.The error message is [SQL Server Destination [310]] Error: Unable to prepare the SSIS bulk insert for data insertion.How to correct this error?The source, the package, and the destination are in the localhost.thanks.

Connections collection error

$
0
0
I am new to SSIS and trying to learn the technology....Please bear with meI get a error message which says "The connection "74E5718A-D91F-44CE-BA2E-8EE......." is not found. This error is thrown by Connections collection when the specific connection element is not found"what does it mean and also it didn't create any issues during data transfer... Also i get another warning message "The execution method succeeded, but the number of errors raised reached the maximum allowed. This occurs when the number of errors reaches the number specified in...."Does it cause any issue if i don't change the maximum allowed number???

SSIS not importing all of Excel file

$
0
0
I've got an Excel source and OleDB Destination set up.The SSIS package runs, but I only get 23591 records, out of over 37000, every time. I've looked at the Excel file and there doesn't appear to be any problems at that point in the file. No gaps, no changes in data type, nothing I can see to cause it to blow.Could it possibly be the Destination type I set up?I even tried creating a package with the Database/Import task. Same problem.Any other ideas to check?David

Saving Password in SSIS Configurations

$
0
0
Hi I am using Environment variable and SQL server configuration for storing connecting string of MSSqlserver in the format Data Source=xxxxxxxx;User ID=[USER];Password=[PWD];Initial Catalog=[DATABASE];Provider=SQLNCLI11.1;Auto Translate=False;and Password Protection Level : EncryptSensitiveWithUserKeyWhen I open the package "Connection Not found Error thrown by Connection Collection when specific connection is not found"if I open the connection and give password .Its working fine.Please let me know how to store password permanently in configurations

combining two rows of data into 1

$
0
0
hi i have my data coming in like this[code="other"]ClassName NAV SharesOutstandingClass A GBP 23704633.79 Class A GBP 20143018.57[/code]but what i want to happen is this[code="other"]ClassName NAV SharesOutstandingClass A GBP 23704633.79 20143018.57 [/code]how can this be done

Approach to store the value of gridview checkbox column checked in component UI

$
0
0
All,I am a new bie to SSIS. I am facing a particular problem of trying to communicate the value of checkbox checked value to a class file. Below eg is outlined as this.I have a requirement to design a component having certain operations like "Trim", "Data Clean","String Reverse". These are populated in a checkbox gridview. Database columns get populated on a different gridview on the same page. This page i call it as ReverseStringUIForm.csI got a class file called as ReverseString.cs which contains DTS functions like Process Input, ProvideComponentproperties ....etc.I am able to deploy the component to the SSIS package and also see which value i checked in the "Checkbox" (while debugging). Now my requirement is that if i click on "OK" button on the UI, the checkbox value as in "Trim" should reach the ProcessInput method in the ReverseString.cs.( i have the switch statement to distinguish between the operations in the Process input method.) I read about custom properties in SSIS but somehow not followed the approach. Can anyone please help me with the step by step coding as to how to communicate the value to ReverseString.cs ?

Argument "Server1" for option "connection" is not valid. The command line parameters are invalid. The step failed.

$
0
0
I have a SSIS package run fine in BID, but when run as a sql agent job, it failed at the error:Argument "Server1" for option "connection" is not valid. The command line parameters are invalid. The step failed.In Job Step Properties, Configuration, Command files, Execution options, Logging, Set Values, Verification tabs do not have anything set. The only change made is in Data Source tab, the server name is changed to server2 ,so is in Command Line tab changed accordingly. But, somehow, it still points to the connection inside of the package. If I change the connection in the package, then create a new job point to the changed package, then it runs fine. Why changing DataSouce in the job properties will not take effect?Here is what is Command Line tab:/FILE "C:\ Conv_01.dtsx" /CONNECTION "Connection001";"\"Data Source=server2\SQL2008;Initial Catalog=FO;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;Application Name=SSIS-Package-{849C75AD-4693-4DF2-9EC7-73C347FEE10C}HEC_1.US-Iv2.5;\"" /CONNECTION " Connection002";"\"Data Source=server2\SQL2008;Initial Catalog=ULL;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;Application Name=SSIS-Package-{D399B84F-1467-41C3-A292-5B27789B66A3}HEC_EL1.ULL;\"" /CHECKPOINTING OFF /REPORTING E

SSIS Web Services Task question

$
0
0
I am new to SSIS and trying to add a variable to the Web Service Task Input section. In the "Enter Values for complex type", there are 3 input variables that I can type in. Instead of typing them in on that screen, I would like to enter them in as a variable and check the variable box in the fourth column. How do I format a variable for multiple values? I need to pass in a limit, page & sortfield values.

Can't I import an Access linked table to SQL Server?

$
0
0
We have a vendor system here whose back-end is Cache (Mumps). They developed an Access front end that exposes the mumps globals as linked tables in Access. I was hoping to import table(s) from the Access front end to SQL Server. I opened the Import/Export wizard and all that was exposed to me were the Access local tables. Aren't Access linked tables available for export? Thanks all.

SSIS XML Config Files & Package Deployment

$
0
0
I'm about 2 weeks away from deploying several SSIS packages that I've been developing for a client. This is my first time to work with SSIS, so I'm still learning as I'm going in many cases.I'm going to create an XML Config File to allow for dynamic/different values to be set for several variables in order for the packages to operate using the desired variable values on my development machine as well as operate successfully in the production environment.I understand how to indicate that I'm using an XML Config file and I'm likely going to use an environmental variable to allow for the DTSCONFIG file to be found in its location in the development environment as well as the production environment.A few questions:(1) When I do my package and deployment, is there going to be a place that asks me if the XML (DTSCONFIG) file needs to be included in the deployment of files or is this DTSCONFIG file going to automatically be incorporated / included in the deployment process without me having to indicate it needs to be included with the package files, etc? (2) However the DTSCONFIG file is included in the deployment process, how do I indicate specifically where I'd like the DTSCONFIG file to reside on the production environment where the packages and associated files will be installed?(3) The package will be called in the production environment using a SQL Agent Job. It seems like there's an option within the SQL Agent Job setup to where you can indicate that the job needs to be called using a particular DTSCONFIG file. With the face in mind that the path to the XML Config File will be referenced in the Environment Variable that I'll create on the production machine, will I "point" to the Environment Variable or the actual path of the DTSCONFIG file within the SQL Agent Job setup area? Seems like I should point to the Environment Variable since this is the sole reason I'm setting it up to where this variable knows/maps to whatever path for the DTSCONFIG file that I've indicated within the Environment Variable.(4) My main SSIS package can and will call out to numerous "child" SSIS packages. Those child packages have several variables that they use just like the main/parent package does, but the child packages get the values for the several variables passed directly in from the main/parent package. I'm assuming there's nothing special I need to do here to address that as far as the package deployment setup is concerned?Many thanks in advance for any answers you may be able to provide.

adding new data to a table

$
0
0
hii have two tables.table 1 is[code]PK_GL Section SectionNumber1 Assets 12 Liabilities 23 Revenue 34 Expense 45 Capital 5[/code]and my second table [code]PK_GL Section Group Financial Account Description Opening Balance Debits Credits Closing Balance Fund Legal Entity FundStructure Code Period End Date AccountName3487 Test Test Test Test 1 1 1 1 NULL IL01 01/01/2014 Test-Test-Test-Test[/code]what i want to do is take the text in the section colmn look up table 1 if its not there add it to table with new section numberanyone any ideas whats the best way to do this

Problems with dynamic connection string.

$
0
0
I've done this before and it worked. Not sure why not now. This is for loopping through a directory and processing XL files there. This is for an XLSX file."Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + @[User::File_Path] + @[User::Latest_File] + ";Extended Properties=""EXCEL 12.0 XML;HDR=YES";"It didn't like that one, but now I'm seeing that I should have preceded those internal double quotes with a \ and not another double quote.However, it's not liking this one either:"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + @[User::File_Path] + @[User::Latest_File] + ";Extended Properties=\"Excel 12.0;HDR=Yes\";"Delay Validation is set to True.Here's the extended errors I'm getting. I see near the bottom it says "Could not find installable ISAM".Should I be using a different provider?===================================Package Validation Error (Package Validation Error)===================================Error at Data Flow Task [Excel Source [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager 1" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.Error at Data Flow Task [SSIS.Pipeline]: component "Excel Source" (1) failed validation and returned error code 0xC020801C.Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.Error at Data Flow Task: There were errors during task validation.Error at Daily_CurrentSnapshots_DirectShip_CM [Connection manager "Excel Connection Manager 1"]: 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: "Could not find installable ISAM.". (Microsoft.DataTransformationServices.VsIntegration)------------------------------Program Location: at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, DataWarehouseProjectManager manager, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)

import data from xml using ssis

$
0
0
Using Sql Server 2012 STD edition, SSDT (Visual Studio 2010 shell, .net framework 4.0.3 SP1I am trying to import data from an xml file using ssis.Here are the three options I tried and none worked. Please see errors that I encountered in all options and let me know what I can do to import this data in sql server.I created a new ssis project with an ssis package. I pulled a data flow task on the control flow. On the data flow tab I pulled an xml source and a sql server destination. Now I tried to configure the xml source task in the the following three ways, but none worked.1. I browse the xml file to set xml location. Browse the xsd file to set xsd location, then click ok. I get the following error:HRESULT errorcode 0xC02090CF from a method call. There was an error setting up the mapping. Undefined complex Type 'gml_V4.1_Release:PolygonType' is used as a base for complex type extension2. I browse the xml file to set xml location. check "Use inline schema" Click ok. Error:HRESULT errorcode 0xC020929E from a method call. The xml source adapter was unable to process the XML data. Multiple inline schemas are not supported.3.I browse the xml file to set xml location. Click "Generate XSD". Error: The supplied xml instance is a schema or contains inline schema. The class cannot infer a schema for a schema.Thank you for your help.

How To Make A Path and Filename a Hyperlink in Email?

$
0
0
Several times throughout the operation of my SSIS pkg there is the possibility that an email can be sent. With the sending of these emails, there may be one/multiple files listed in the body, such as:C:\MyPath\TextFile.txtI would like the files like what's listed above to be hyperlinked to where recipients of the emails can simply click the hyperlinked filenames and be taken directly to the file / have the file opened. What exactly do I need to wrap around as a prefix and suffix to each filename in order for them to display as hyperlinks?Many thanks!

SSIS using source of password-protected Excel Files

$
0
0
I need to import data from an Excel file into a SQL 2005 DB and thought I would use SSIS since this is a pretty straight forward task for SSIS. However, I just learned that the Excel file is password-protected and I have not found anything online that mentions how to do this since there is no way to distinguish this in the Connection to the Excel file. I do know the password to open the file but just don't know how to automate this. Any ideas?

SSIS 2012 C# can't recognize DTS variables

$
0
0
In my Script Component I want to access to variables. I do bellow steps.-Drop Script Component-In component editor add "System:PackageName" to ReadonlyVariables-Open C# script editor-change using to[Code] using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using Microsoft.SqlServer.Dts.Pipeline; using Microsoft.SqlServer.Dts.Pipeline.Wrapper; using Microsoft.SqlServer.Dts.Runtime.Wrapper;[/Code]-add bellow line to Inpout0_ProcessInputRow routine[Code] string packageName = Dts.Variables["System::PackageName"].Value.ToString();[/Code]but on Dts with red line I get "The Name Dts dose not exist in the current contex' !!what should I do to recognize Dts?Thanks
Viewing all 1193 articles
Browse latest View live