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

SSIS 2012 Assembly Reference Error

$
0
0

We are in the process of upgrading our SSIS packages from 2008 to 2012.  I was able to import an existing package and I'm getting this error with all Script Tasks that use Microsoft.SqlServer.DTSRuntimeWrap.

Assembly 'Microsoft.SqlServer.ManagedDTS, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' uses 'Microsoft.SqlServer.DTSRuntimeWrap, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' which has a higher version than referenced assembly 'Microsoft.SqlServer.DTSRuntimeWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'

I did some looking around and found this http://svenaelterman.wordpress.com/2012/05/05/using-ssis-2008-components-in-sql-server-data-tools-with-ssis-2012/

I did exactly as it said, but I still have the same error.  Has anyone seen this or have any suggestions on how to fix it?  I've spend many hours trying to figure it out but no luck.

Thanks for the help!  If you need more information please ask.


What is causing this FTP task to fail?

$
0
0

I use the same FTP task to connect to a local ftp site but when I try to hit another one, I get these errors: The obvious stuff like connection string, ip address and password are set up correctly because my test connection works fine. I haven't packaged this until it works interactively. Can someone point me in the right direction?

[Connection manager "FTP Connection Manager"] Error: An error occurred in the requested FTP operation. Detailed error description: 200 Type Binary
200 Port command received
425 Unable to open the data connection

Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

Permanent Fix/Patch for 'Invalid bracketing of name issue in Excel select for SSIS

$
0
0

Error 'Invalid bracketing of name ' is thrown in our SSIS package which runs a SELECT query to read data from an excel file. The file contains a field with a dot in its name.

I already changed the dot(.) with a sharp(#) in the select query, as suggested in several forums. But package fails because it cant find the column.

Assuming fieldname can't be changed in file, can any kind person tell me if there is already a permanent fix for this? Maybe newer version of access driver, or a patch or a different approach to select data from the file.

I seem to not find any on the web.

We are using SQLServer 2008R2, Microsoft Office Access database engine 2007 and conn string="Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties=EXCEL 12.0;"

Please help, it will be greatly appreciated.

after deploy in server, integrated Security works for all users but only one user does not work for one user

$
0
0

hi

   i'd like to ask for help.here is a brief introduction.

      i publish a web project on a server(the name,"server-deploy"),(it connect with sql server datavvase with connection string  of database  "Trusted_Connection=Yes",with web config file <authentication mode="Windows" />    <identity impersonate="true"/>

   there are some users whose Impersonae_clients_after_authentication are enabled. and most of them can connect to database via the deployed project .

  but one user,he was told 'NT AUTHORITY\ANONYMOUS LOGON', and according to even viewer("security of "windows log") of "server-deploy",it shows "Audit failure"(the Task category is "credential validation") and here is some information

[ Name]  Microsoft-Windows-Security-Auditing
   EventID 4776

The computer attempted to validate the credentials for an account.

  PackageName MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
  TargetUserName (user)
  Workstation (Workstation)
  Status 0xc0000064

   while when other user do login ,there is no log whose Task category is "credential validation".

  COULD ANY ONE CAN DO ME A FAVOR TO HELP ME?ANY HELP IS APPRECIAT. THANK U VERY MUCH IN ADVANCE :)

best regards

martin


"Drop and recreate destination table" option disabled

$
0
0

Hello,

I am using the tool 'SQL Server Import and Export Wizard' to import data from 1 database to another one in the same server daily.  Both database have same tables.

However, when selecting tables > Column Mappings, the option 'Drop and recreate destination table' is disabled (grey out) and I want this option checked because in case a table structure is altered in the Source database, the same should be replicated in the Target database.

How can this issued be solved or any workaround?

Thanks,

Vik

Programmatically Creating Dynamic Packages

$
0
0

Hi All,
As the title says, I'm working on a C# app that makes dynamic packages, I'm using the Attunity Oracle Connector and posted on their forums but it seems to be a little dead there.

I've been banging my head against the wall for days now with an error that happens when I call CManagedComponentWrapper.AcquireConnections(null) in my app, in order to later call ReinitializeMetadata() on the component. 

Even though AcquireConnections fails with [COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.], the rest of the package builds fine. Upon opening it I encounter an error on the OLE DB destination component that says the number of input columns cannot be zero. Everything else works fine, testing the connections comes back successful and the Oracle Source component has no errors. 

When I open the mappings tab, everything is already properly mapped out and the only step left is hitting okay, then the package checks out (and runs) just fine. 

If I had to boil it down to a question it would be this: why does acquire connections fail when the connection in the actual package works and tests fine?

Thanks,

Chris

Issue with Macro enabled Excel (.xlsm) Destination in SSIS 2008 R2

$
0
0

Hi,

I'm trying to load the data from an Excel source (.xlsx) into a Macro enabled Excel file (.xlsm). I've taken an Excel Source Connection Manager for the source. Since a regular Excel connection manager cannot allow to connect to .xlsm files, I've taken an OLE DB Connection manager and configured it with my destination .xlsm file by following the steps specified in

http://www.sqlservercentral.com/blogs/dknight/2012/06/29/using-excel-macro-xlsm-enabled-files-in-ssis/

The connection was set up correct and ETL is showing succeeded but the thing is, there is nothing loaded into the destination .xlsm file. The data is coming to the destination (I've observed from Data viewers) and ETL is even succeeded. But no data is being loaded into .xlsm file.

Can some one please let me know whats the exact issue here?

Thanks in advance


dtproj file not supported in visual studio 2013

$
0
0

Hi, All

I can not open .dtproj file with either VS 2012 or VS 2013. It say:

Unsupported
This version of Visual Studio does not have the following project types installed or does not support them. You can still open these projects in the version of Visual Studio in which they were originally created.
  - QoEArchive, "D:\w15_pcd_enlist\w15_pcd\media\dev\media\Tools\QoEAnalysis\QoEArchive\QoEArchive\QoEArchive.dtproj"


No changes required
These projects can be opened in this version of Visual Studio without changing them. They will continue to open in Visual Studio 2010 SP1 and in this version of Visual Studio.
  - QoEArchive, "D:\w15_pcd_enlist\w15_pcd\media\dev\media\Tools\QoEAnalysis\QoEArchive\QoEArchive.sln"

Any ideas?


Automatic documentation of SSIS packages from SQL Server Data tools 2012 (VS2012)

$
0
0

HI

I need to document my SSIS packages and an Architect at the place I am working claims there is a way to do this natively in SQL Server Data Tools (Visual Studio) is he correct, and I just can't find it or is he deluded?

Andy help much appreciated

Regards

Andy


CRM 4, SQL Server and .Net developer using C#

Microsoft TechNet Wiki SSIS Guru - Winners for January!!

$
0
0

The results for January's TechNet Guru competition were posted!

http://blogs.technet.com/b/wikininjas/archive/2014/02/16/technet-guru-awards-january-2014.aspx


Post your FEBRUARY contributions here:

http://social.technet.microsoft.com/wiki/contents/articles/22885.technet-guru-contributions-for-february.aspx


A great big thank you to EVERYONE who contributed an article to last month's competition.

Hopefully we will see you ALL again in this month's listings?

Unfortunately, forum restrictions have prevented me from posting the winners here.

You will find the complete post, comments and feedback on the main announcement post.

Please join the discussion, add a comment, or suggest future categories.

If you have not yet contributed an article for this month, and you think you can write a more useful, clever, or better produced wiki article than last month's winners, here's your chance! :D

Best regards,
Pete Laker

More about the TechNet Guru Awards:



#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 to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.

SSIS: If Record != match another Record Put Record that Doesn't Match in Excel and the Other in DB

$
0
0

Greetings,

I'm an intern and new to SSIS, however I have 3 months experiences and working on my first challenging project and have a question.

I have records that need to match from excel to that in another table in SQL Server.  If it doesn't match then import into new Excel spreadsheet else put into SQL Server DB.

Is there away for me to query excel first w/o having to create a staging table to query from?

Also, would it be wise to use the Conditional Split object?


archiving using ssis from on databse table to another database table

$
0
0

hi,

I want to archive one database table data into another database table using ssis? 

i want to create a new table with date as name every time the job run to copy over the data from one table to another?

i want to use a variable to create table name dynamically every time the job runs and use that name to create a new table to copy over the data?? 

create a string variable and use execute sql task to assign the variable with table name and use DFT to load data into the new table with the table name same as the variable value??

is this the correct method?

How do i achieve this? please let me know?


how to move data from a staging table to three entity tables

$
0
0

Environment: win7, SQL Server 2008 R2
Application: Microsoft SQL Management  Studio 2008 R2, Business Intelligence 2008 - SSIS
SSIS competency level: Novice

ETL Process ( it works fine - no issues): The following flowcharts illustrate basic ETL process, where the data is being transformed to a staging table [destination table]. The staging table consist of the following fields

(id, ssn, Fname, Lname, Subject_cd, Test_dt, Score, comments, ind_response)



After running ETL package in SSIS, the data were loaded to the Staging table (destination table)The following code shows the data being created in the staging table to use it later for another data transaction

Code:

CREATE TABLE Staging_Table (
	id CHAR(9)
	,ssn  CHAR(9) NOT NULL
	,Fname VARCHAR(50) NOT NULL
	,Lname VARCHAR(50) NOT NULL
	,Subject_cd char (2)
	,Test_dt   datetime 
	,Score char(2), comments varchar(250),ind_response varchar(250)
	);

INSERT INTO Staging_Table (
	id
	,ssn
	,Fname
	,Lname
	,Test_dt
	,Score
	,Subject_cd,  comments ,ind_response 
	)
VALUES (
	123456781,123549874
	,'Sally', 'Johnson'
	,'QB','3', 'N/A'. '1243212221144121321411123332411121'
	);

INSERT INTO Staging_Table (
	id
	,ssn
	,Fname
	,Lname
	,Test_dt
	,Score
	,Subject_cd,comments ,ind_response 
	)
VALUES (
	123456792,003549874
	,'Will', 'Smith'
	,'AD','3','Test was good','1231121223334121334121412'
	);


INSERT INTO Staging_Table (
	id
	,ssn
	,Fname
	,Lname
	,Test_dt
	,Score
	,Subject_cd, comments ,ind_response 
	)
VALUES (
	120056783,993549800
	,'William', 'Wahab'
	,'FR','1', 'no comments', '111111111111222224121312144412' 
	);


INSERT INTO Staging_Table (
	id
	,ssn
	,Fname
	,Lname
	,Test_dt
	,Score
	,Subject_cd
	)
VALUES (
	213450081,128749890
	,'Douglas', 'Mike'
	,'CH','+2'
	);



Problem: How to load staging_table data into three entity tables, while there is referential integrity data constraints.

  1. If matched: Check whether SSN exists in the SSN table. Insert the records (id, Subject_cd, Score, test_dt) in the  ind_subject_scores].
  2. If not matched: Insert the records to the following table: SSN, Individual, then [ind_subject_scores].
  3. If matched in the [ind_subject_scores] then update the additional elements in the table

Table #1:Parent

CREATE TABLE SSN (
	id CHAR(9)
	,ssn  CHAR(9) NOT NULL
	CONSTRAINT [FK_individual] FOREIGN KEY([id])
REFERENCES [individual] ([id])
	);

INSERT INTO ssn (
	id
	,ssn
	)
VALUES (
	'12001212','993549800'
		);


Table #2: child

CREATE TABLE individual ( id CHAR(9) NOT NULL ,Fname VARCHAR(50) NOT NULL ,Lname VARCHAR(50) NOT NULL

, email VARCHAR(50) NOT NULL ) INSERT INTO individual ( id ,Fname ,Lname ) VALUES ( '12001212','William', 'Wahab', 'fake@yahoo.com' );


Table #3

CREATE TABLE [dbo].[ind_subject_scores](
	[ind_scr_id] [int] IDENTITY(1,1) NOT NULL,
	[id] [char](9) NULL,
	[subject_cd] [char](2) NULL,
	[score] [varchar](2) NULL,
	[test_dt] datetime  
	)

INSERT INTO [dbo].[ind_subject_scores] (
	id
	,Test_dt
	,Score
	,Subject_cd
	)
VALUES (
	897841239, '20110101'
	,'2'
	,'FR'
	);


INSERT INTO [dbo].[ind_subject_scores] (
	id
	,Test_dt
	,Score
	,Subject_cd
	)
VALUES (
	80041239, '20110115'
	,'2'
	,'CH'
	);

Table #3 - additional elements were requested later. These data can be updated from the staging table if matched occured

CREATE TABLE [dbo].[ind_subject_scores](
	[ind_scr_id] [int] IDENTITY(1,1) NOT NULL,
	[id] [char](9) NULL,
	[subject_cd] [char](2) NULL,
	[score] [varchar](2) NULL,
	[test_dt] datetime, 
        comments   [varchar](250)
        ind_response [varchar](250)
	)








One SSIS pacakge and Multiple Jobs

$
0
0

 Hello,

Project :  Creating One parameteried SSIS package and running it thorugh Multiple jobs. Based on a varaible value, source and destanation tables are read into SSIS Pacakge. Metadata across all the tables are same.

1Q : want to know limitation on number Jobs we can create on one SSIS pacakge.

2Q : Pros and Cons.

3Q: Will this be a good idea.

Please share your ideas....

Thank you

Custom Component 'remembering' data in loop

$
0
0

Hi,

I have written a custom ssis component that successfully processes data in a particular way.

I have a SSIS package that reads in a flat file and loads it into a SQL Server database. The data from the SQL server database is fed into custom component and it spits out four new tables that also go into the database.

This all works fine when I run the package for a single file, however if I add all this within a ForEachLoop container the component seems to remember the data from the first iteration of the loop. For example, the first iteration uses a flat file with a million rows and the main output has about 750000 rows. In the second iteration, the flat file has 71 rows and the output still contains about 7500000 rows instead of 5 rows (5 rows is what I should get and what I get when I run the second file on its own and not in a foreach loop).

Can anyone help me figure out why this is happening? Do I need to add some code to the component to clear the data in the buffers or something like that?

 



Spread the Love! Be our SSIS TechNet Guru, this Valentine's

$
0
0

TechNet loves you!

 

We love your contributions at TechNet Wiki sooo much that we give you more than just love in return...

We give you NOTORIETY, GLORY... and VIRTUAL MEDALS!

That's not all, this love we have, together, it flows both ways my friend.

You give us stuff, we give you stuff, like interviews, recognition points, Ninja Belt rankings, and of coursefront page love!

If the love is strong enough, who knows where it could end! We may even invite you into secret clubs and other initiatives.

So why not spread the love a little further this Valentines, with more than just a cheap card from the highstreet...

Express your love for your favourite technology in a TechNetWiki article!

Pour your heart out to us, capture our hearts and woo us with your prowess!

 

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 to the one and onlyTechNet Wiki, for future generations to benefit from! You'll never get archived again!

If you are a member of any user groups, please make sure you list them in the Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.


how to retrieve latest date column comparing with rest of the date columns ??

$
0
0

Hi Friends,

I have 6 Date columns (some of col has Null data)  I need to compare all 6 columns date, how can I produce recent date tonew Column! can you please help me Tsql Code or Function.

Thanks for advance.



Copy 300 tables from One SQL Server to another SQL Server.

$
0
0

I have a requirement to copy 300 + tables from various DIFFERENT SQL Servers to One Destination SQL Server B.

These tables have diff structures . I wanted to use SSIS packages to do this, using a DATA FLOW TASK AND FOR EACH LOOP To loop thru all tables and copy data over. However Data Flow task is not dynamic hence cannot use.

So I cannot do DFD Task since structures are NOT same on these 300 tables. ANy suggestion for the best approach to do this?

XML Source - how to stream a 50GB XML file to a database?

$
0
0

Hi guys!

I have been trying to load a 50GB XML file (well, just a 1 "row" at first) in to SQL server via OleDB connection. It seems that this component does not stream the data, but tried to load it into memory - I have only 8GB, so that might be an issue.

Very few people will have 50GB mem on their development machines, so how do I get around this limit? Is there a streaming version of the XML source????

I did make a test with a 500MB subset version of the same file, and it worked just fine. All became green - with 50GB I do not even get to the "yellow stage". :-(

Thanks


Attunity Teradata Connector - How to change port number from default

$
0
0
  1. Greetings,

    Is there a way to change the port in the Attunity/Microsoft Teradata Connector (SSIS)? Our Teradata server is not connected on the default 1025 port, we use 1521.
    I've tried changing the port by appending it to the address: xx.xxx.xxx.xxx:1521 & xx.xxx.xxx.xxx,1521 but it doesn't work.
    I can connect using ODBC but it is too slow.
    I've been on this problem for days. Any help would be appreciated.

    Thanks,

    Pete

    Additional Info:
    Using Driver version 1.2 32 bit, SQL Server 2008, Windows Server 2008.
Viewing all 24688 articles
Browse latest View live


Latest Images

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