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

SSIS Failed When reading XLSB File and works fine with XLSX File.

$
0
0

Hi,

I have a SSIS package that executes from C# Code. the objective is to upload the data from xlsx or xlsb file to DB tables.

When I use xlsx file, The ssis runs fine. But, When I Upload xlsb file. I am getting the following error:

Event Name: OnError

Message: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Source Excel Conn" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Event Name: OnError

Message: component "Excel Source" (1) failed validation and returned error code 0xC020801C.

Event Name: Diagnostic

Message: ExternalRequest_pre: The object is ready to make the following external request: 'IDataInitialize::GetDataSource(NULL, CLSCTX_INPROC_SERVER, ConnectionString: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=<FilePath>;Extended Properties="EXCEL 12.0;HDR=YES";,...)'.

Can you please help me what  I am missing here?




SSIS Project Deploy - Best Practices

$
0
0

Hi All,

I was wondering if there is any easy solution for Project deployment method and Environments.

For e.g. if I deploy on DEV I can overwrite my project connections by using Catalog Environments and Variables, same for QAT or PROD.

The problem I have is when I develop. I can develop and use my project connections pointing to DEV servers. But how should I handle if I want to run it (from Visual Studio) pointing to QAT? (manually changing the project connections its not a good solution).

1 solution i am thinking on is this:

-using DEV SSIS Catalog

-creating Environment variable which holds on which Environment I want to run the project on and bind it with a project parameter (DEV,QAT,PROD)

-creating connection strings in SSIS catalog for all the Environments (for e.g. 5 for DEV, 5 for QAT, 5 for PROD)

-configure 1 parent package to get the right connection strings from SSISDB based on Environment value

-assign the connection strings to my project connections

As you see this is maybe not the best way to do it so I was wondering if there is a easier solution? (which also don't influence the deployment thru diff environments)

Also can I have some PRO and CONS on using SSIS catalog Environments to store the connection strings vs 1 etl.connection encrypted table with a configuration file? (security point of view as well, lets say the Catalog is having the variables in sensitive mode)

Thanks,

Marius



OLE DB Connection Manager to Oracle issue

$
0
0

I'm trying to connect to Oracle with SSIS Connection manager -> Oracle Provider for OLE DB, and if I running package locally it's working but if I run it with job task from the server it's ended with error:

DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. THE ACQUIRECONNECTION METHOD CALL.....

1. First my question is how do I know what connection is connected to Connection Manager(I see short name in Field "Server or file name" but where is that name is connected to actually a server) and I'm trying to connect to Oracle.

2. I checked the ODBC connection on the server / listener and Service Naming also, everything seems to be right, and I still have this issue.

Thanks 

Foreach file enumerator, skip file on error.

$
0
0

 

Hi,

I'm struck with a small issue.. would be great if somebody can help me out.  Here is te scenario

 

1. There would be more than one CSV files in INPUT folder.

2. I'm using a Foreach Loop file enumerator to loop thru the files and load the data into database.

3. If loading is successful the file need to be moved to ARCHIVE folder and next file needs to be picked up for loading

4. In case if there is an error in loading the file has to be moved into ERROR folder, Error description should be logged to error log text file and next file needs to be picked up for loading.

 

 

I don't think increasing max error count is an option as I don't know how many no. of input files are available as it depends upon the feed. 

 

What is the best way to go.

changing ? or ¿ or � back to Special characters.

$
0
0

Hi there,

I am working with a ETL importing data from Oracle to SQL Server using SSIS 2012.  Oracle source data contains special characters which appear as ? or ¿ or � in Toad. 

I know this oracle data is Puerto-Rico Spanish and because of improper character set, these characters are showing as '?' etc.

I do not think it is possible to convert these '?' etc into their original special characters. Had the source data been correct , SSIS would have  easily handled the data correctly.  But I am not a SSIS expert and just wanted to ask around if anyone has dealt with similar issues. 

Thanks


[SSIS.Pipeline] Error: "CDCSource-Table" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

$
0
0

[SSIS.Pipeline] Error: "CDCSource_Table" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

This issue happens when we generate SSIS Packages using BIML script. The Packages are generated successfully. The package execution fails on first time with above error. But when we run it again after "opening CDC source  and close it", there is no more issue. The meta data refreshed automatically. Package executing successfully. This is not related to the Meta data changes of tables involved in CDC Task.


Vedaraj


SSIS in SQL Server 2012 SP2 - Backslash-escaped double quotes in flat file

$
0
0

I migrated a production SSIS solution from SQL Server 2005 to 2012 (with service pack 2). The solution downloads data via FTP and then imports five comma separated double quote qualified flat files into five tables. One of the files contains double quotes in the data and it is escaped with a backslash, i.e. "2006660","Tan","Gobi Sand \"R\" Metallic". The package stops when it reaches this row with the error "column delimiter not found."

This error didn't occur with SQL Server 2005, and I checked an old data set to make sure the escaped double quotes previously existed, and they did. I haven't had any luck with my Google searches on this problem. When I preview the data the connection manager properly displays the row where the error occurs.

Any thoughts on what could be going on? I suppose I could add a data transformation step to remove the backslashes and quotes, but since this wasn't a problem before I'm not sure why it is now. Especially since the data preview works.

Thank you,
Stephen

Error running SSIS 2012 package on Windows 2012 server

$
0
0

Recently converted a 2008 SSIS package to 2012 and am testing it on a new Windows 2012 with SQL 2012 installed.  I keep getting the following error:

To run a SSIS package outside of SQL Server Data Tools you must install Send Mail Task of Integration Services or higher.

I've seen answers to similar issues telling them they need to install Integration Services on the server.   Isn't the fact that I'm running DTEXEC.exe on the server when it runs proof that I've got it installed?  I am running the DTEXEC.exe from this folder:  C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn     I assume the 110 means it's the 2012 version?  Help! Why am I getting this message?


Branden Kolb


Failure when transferring data from Excel to SQL Server

$
0
0
I just installed SQL Server 2012 onto a 64 bit server.  I am trying to transfer data from an Excel spreadsheet 2007 in BIDS to SQL Server and got an error:

AcquireConnection method call failed with error code 0xC0202009

.  I read that the 64 bit configuration for the project was the problem and I changed the Run64BitRuntime for the project to false.  I reran and am still having the same issue. I am running the project within the Visual Studio Environment.  I saved the project closed and reopened and tried again.  Same problem.  I am also getting this error: An error has occurred while connecting MSOLEDB_SqlServer: Exception from HRESULT: 0xC0202009 and this error as well:  An error has occurred while connecting AdvDB: Exception from HRESULT: 0xC0202009. 

how to increment a column of a table while loading data into a table from flat file.

$
0
0

Hello,

I've found few question related to this and tried to implement those solutions (using vb.net code, etc) but was not successful. Please  go through my question and help me.

I am loading a sql server table from a flat file. Currently I am hard coding a column of the sql server table  with 0. Now, I want to change it to a incremental column.

Example, if I load the table today with 5 records, this column should have values 1,2,...5 and tomorrow when I load with 3 records, this column should have values 1,2,3. So, for every date, there will records starting from 1 to n.

I tried below solution which seemed very promising, but it didn't work.

http://www.sql-server-performance.com/2008/ssis-auto-increment/

This is a production issue. Any help is highly appreciated.

Thanks in advance.


SMTP connection manager error

$
0
0

Hi I am getting an error with my SMTP connection manager.

The progress message when the package is executed is,

[Send Mail Task] Error: An error occurred with the following error message: "Failure sending mail.  System.Net.WebException: Unable to connect to the remote server  System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 198.1.1.1

I am definitely using the correct SMPT address. Is there any other setting which I have to configure? 


Mr Shaw

SSIS Flat File Source not populating varchar column

$
0
0

I have SSIS package that imports flat files with column separator | from "Flat File Source" into the database trough "OLE DB Destination".

For one of the columns (file contains UIDs in curly brackets) destination column is varchar(250) null-able, when "Retain nulls" is set to true complete data have been imported, but when "Retain nulls" is set to false beside fact that in the file data is not null and it is not empty string it is not imported and in the destination column is empty string.

I know that this "Retain nulls" applies to the columns that contains NULLs but this is not the case.

If someone have experience with such issue please help.

Thank you in advance.

SSIS TechNet Guru News: October Winners Announced

$
0
0

All the votes are in! 

 

And below are the results for the TechNet Guru Awards, October 2014 !!!!

 

For a full list of winners, see the full blog post, as runners up had to be removed from this post to fit the forum max length restrictions.

 

Guru Award BizTalk Technical Guru - October 2014  

Gold Award Winner

Agustín MántarasVisual Basic script to deal with BizTalk Suspended MessagesMandi Ohlinger: "A quick and easy way to handle suspended messages. I'm a fan!"
Ed Price: "Great article! Thanks for including an MSDN Gallery link, a See Also section that links to the Wiki portal, and some great example snippets!"
Sandro Pereira: "Nice script, in my opinion it will be best to write this in PowerShell script. Well written, well formatted (some minor improvements can be made)"

Silver Award Winner

Johns-305 [boatseller]BizTalk: EDI Features Not Just For HIPAAMandi Ohlinger: "A great walkthrough including the screen shots. Nice addition to the Wiki. "
Ed Price: "Good use of images and color in the code snippets!"
Sandro Pereira: "Nice start be this article should be explained better. Article format can be improved."

Bronze Award Winner

Steef-Jan WiggersSecuring BizTalk endpoints leveraging Sentinet API Management Part 3Sandro Pereira: "Another excellent article in this series on Sentinet API Management. Well written, well formatted with nice pictures, great article and I love the topic."
Ed Price: "Fantastic depth on this article!" 

 

Guru Award Forefront Identity Manager Technical Guru - October 2014  

Gold Award Winner

Wim BeckEvent Driven Scheduling of Forefront Identity Manager (FIM) using a Windows ServiceEd Price: "Fantastic job on formatting, the code, and all the explanations! The TOC and References are a nice touch!"
PG: "Nice innovative solution, that is a nice add-on to existing solutions. " 

Guru Award Microsoft Azure Technical Guru - October 2014  

Gold Award Winner

ChervineCreating and Querying Microsoft Azure DocumentDBJH: "DocumentDB is one of my favorite new services on Azure. It's cool to see that someone seems to be excited as I am. Hope that this article is just the beginning of a whole series about Azure DocumentDB."
Ed Price: "Great use of images and code snippets. Good conclusion! Great topic!"

Silver Award Winner

ChilbetoPublishing Multiple Azure EnvironmentsTN: "Great "
JH: "This topic is normally forgotten when talking about Cloud development. I had a hard time to find an appropriate mechanism myself. This article provides one of the better ways how you can deploy multiple environments to Azure."
Ed Price: "Great overview article. Good diagram at the top! Could benefit from a TOC and References. Good job on the conclusion!"

Bronze Award Winner

saramgsilvaMicrosoft's Windows AppStudio: Add Support For Push NotificationEd Price: "Great introduction and incredibly thorough. Great job!"
JH: "A new article about AppStudio focusing on push notifications. Push notifications in my opinion, when done right, makes an app alive. Would love to see a complete example with all features mentioned in the related articles published on GitHub." 

 

Guru Award Microsoft Visio Technical Guru - October 2014  

Gold Award Winner

Mr XUnattended installation of Visio 2013Ed Price: "Great job, Mr X! Good use of images!"
AH: "It gives good instructions with the help of the pictures but its still missing detailed information if some user needs it. Need to provide a wiki/msdn references that are available something like http://technet.microsoft.com/en-us/library/cc179097.aspx. Overall decent article"

Guru Award Miscellaneous Technical Guru - October 2014  

Gold Award Winner

Brian NadjiwonHow to Create and Use Classes in PowerShellRichard Mueller: "Very interesting concepts. It would help to name the objects something like "Jim" rather than "Person", for example. There should be a See Also section, and more links to references."
Ed Price: "Great topic and explanations of the classes!"

Silver Award Winner

Andy ONeillVisual Studio: Snippetty TipRichard Mueller: "Great idea with some good advise."
Ed Price: "Great explanations of the code snippets! Fun topic! As is mentioned in the comments and in the article, many people don't know this is possible!"

Bronze Award Winner

saramgsilvaHow to create a Virtual Machine for run Windows 10 Technical PreviewEd Price: "Fantastic topic! Good use of images!"
Richard Mueller: "Good images and a good step by step explanation. Needs links to references and other Wiki articles (See Also). We should try not to use first person."

Guru Award SharePoint 2010 / 2013 Technical Guru - October 2014  

Gold Award Winner

Geetanjali AroraSharePoint Online : An Introduction to Office DelveTN: "Great wrap-up about Delve"
Ed Price: "Amazing depth and a great overview to a new topic! Great job on the images and details!"
GO: "woohooo; a DELVE article. Great work."
Margriet Bruggeman: "A new topic explained well, I was actually looking for this info!"
Jinchun Chen: "Great."

Silver Award Winner

Steven AndrewsBuilding a list specific search with JavaScriptTN: "Great tip for mid-dev"
Ed Price: "Great job on the descriptions, formatting, images, and See Also section! Check out the great comment from Dan at the bottom of the article!"
GO: "Nice work Steven. It's definitely a great article.!"
Margriet Bruggeman: "Great! easy to use solution for a request that is made often"
Jinchun Chen: "Nice work"

Bronze Award Winner

Dan ChristianNo-code solution to lookup previous item in a listEd Price: "Effective images and helpful video and See Also help round out this great article!"
GO: "Thanks Dan and as USUAL an usefull article."
Jinchun Chen: "Nice. If InfoPath Form is accepted, we can use InfoPath Form to achive the goal as well."
Margriet Bruggeman: "I can tell that effort is taken to explain the idea well"

 

Guru Award Small Basic Technical Guru - October 2014  

Gold Award Winner

Nonki TakahashiSmall Basic: Rotation Centers for Shapes of Triangle and LineRZ: "Excellent article. This is a must read if you want to make an object move. You need to understand the coordinates and the rotation center."
Ed Price: "Great use of images!"

Silver Award Winner

Nonki TakahashiSmall Basic Known Issue: 26992 - GraphicsWindow.GetPixel(X, Y) Doesn’t Work Properly If X Or Y Has after the Decimal Point in RemoteEd Price: "Good recommended workaround!"
RZ: "Yeah, another bug in Small Basic that might get you and need to be fixed :)"

Bronze Award Winner

Nonki TakahashiSmall Basic: International ResourcesEd Price: "Oh, yeah. This one is so amazing! Thank you for making this and organizing the resources so well!"

 

Guru Award SQL BI and Power BI Technical Guru - October 2014  

Gold Award Winner

Visakh16Random SSRS Musings 1 : Rowset Concatenation Using Native SSRS ExpressionsMR: "Interesting example of LookupSet function usage"
RB: "merging columns on a single line with an interesting solution"
Jinchun Chen: "Good workaround we are generally using."
Ed Price: "Great descriptions and use of images!"

Silver Award Winner

Jan D'HondtDates in Excel files rendered from reports are displayed as plain numbersEd Price: "Great job laying out the sections. The images help convey a lot!"
MR: "Very short tip that could be useful because of different behavior on iPad and Windows"
RB: "interesting work-around."

Bronze Award Winner

Anushka WeerakkodygeIntegrating Power View with SharePoint Server 2010/2013 - Multidimensional ModeRB: "nice walkthrough"
Ed Price: "Great depth in the procedure steps! It's similar to another article (see comment), but it's still a good addition. Good use of images!"
MR: "This article explains how to install Power View on SharePoint but do not explain that Reporting Services is the tool required for Power View to work - the initial setup is required only whether SSRS has not been installed before. Otherwise, it has to be upgraded and then the shortcut can work."

 

Guru Award SQL Server General and Database Engine Technical Guru - October 2014  

Gold Award Winner

ShankyIn depth Look at What can Cause Index to be Still Fragmented After RebuildAM: "Well covered."
Ed Price: "Good job on the explanations, Conclusion, and See Also section!"

Silver Award Winner

Ronen ArielyRepresenting list of values using a single valueEd Price: "Great breakdown of sections! Good formatting on the sections and code snippets! Great interactions in the comments!"
AM: " Interesting options and walk through."

Bronze Award Winner

Visakh16Generate Scripts for Stored Procedures Without Dynamic SQL in SSMSAM: "Nice tip for better use of SSMS."
Ed Price: "Great breakdown of the problem and solution. As Saeid wrote in the comments, "Clear article which shows handy solution!" Good job!"

Guru Award System Center Technical Guru - October 2014  

Gold Award Winner

Alan do Nascimento CarlosALM and IT Operations - Management 360 with System Center Operations Manager in 06 StepsEd Price: "Lots of images. Great job breaking up the steps! Could benefit from a TOC and References. Great article!"
GO: "Thanks for the only article. great btw. :-)"

Guru Award Transact-SQL Technical Guru - October 2014  

Gold Award Winner

Visakh16Behavioral Difference of IIf Function in T-SQL Compared To SSRSRichard Mueller: "Nicely done with code examples. The "See Also" section should only link to Wiki articles."
GO: "Wonderfull article thank you!"
Jinchun Chen: "Interesting comparison "
Ed Price: "Good topic. Very clean and clear. Great article!"
JS: "Good writeup, though I would bring the comparison with the table to the top and reference the samples from there."

Silver Award Winner

Ronen ArielyINSTEAD OF TriggersEd Price: "Good depth here. Great explanations of the code! Great job interacting in the comments and improving the article!"
JS: "Use object qualifiers (schema name to make sure that the right objects will be picked, e.g. dbo.) Outline ab bot more the things what not to do in production! Be aware that although people read this, they tend to use it anyway. If triggers are enabled, they are executed once for each batch They are executed each statement not batch, miswording here."
Richard Mueller: "Good article. The "See Also" should only include Wiki articles. Some of the "Resources" could be moved to "See Also". Grammar needs work."
GO: "Thanks" 

Bronze Award Winner

Praveen Rayan D'saFind the Database where user defined object located and where it is being referred.GO: "This article deserves absolutely a medal THANKS!"
Jinchun Chen: ""
Richard Mueller: "Good topic. Grammar needs work. "Caution" states undocumented stored procedure is safe for production, but later states it is not."
Ed Price: "Great article. We should include the technology in the title. Good descriptions, and great References!"
JS: "Although the outlined solution is interesting and shows the public the usage of the "new" system views finding the right dependencies, it is not recommended to describe the usage of undocumented features such as sp_msforeachdb as there are alternatives, especially in this scenario. You could generate a query using the sys.databases view and let it print out the database name along with the use statement. In addition to this and as the statement has to be run with a high privileged account as schema information is secured as well, it should be made safe to SQL injection. In many case in the statements there is just a concatentation of values used. You can easily inject code in here, Also make sure that names / object identifiers are quoted with [] in order to allow also special characters like spaces in the names"

Guru Award Visual Basic Technical Guru - October 2014  

Gold Award Winner

.paul.Image balloonTipsRichard Mueller: "Lots of code. Great idea. The "See Also" section should only include links to Wiki articles."
Ed Price: "Great solution. Good explanations!" 

Silver Award Winner

.paul.Image Arrow PointersRichard Mueller: "Interesting idea. Need more links. Don't use first person." 
Ed Price: "Creative solution! It would be good to break up the code more, to explain it. Great article!"

Bronze Award Winner

Paul IshakVisual Basic Graphics Frame Class (Easily Converted to C#)Ed Price: "Good solution! Could benefit from more explanations of what the code is doing."
Richard Mueller: "Don't use first person. Could use more description, explanation, and links."

Guru Award Visual C# Technical Guru - October 2014  

Gold Award Winner

ChervineUsing XML Serialization with C# and SQL ServerEd Price: "It goes on for quite a while! Great job breaking out all the code snippets and explaining them well! Could benefit from a References or See Also section. Great TOC!"
Søren Granfeldt: "In these days of generic data, this serves as a good example of storing unstructured data"
Margriet Bruggeman: "Through discussion of the topic"
DB: "Interesting"

Silver Award Winner

Magnus (MM8)C#: Generic Type Parameters And Dynamic TypesSøren Granfeldt: "Nice example of diving into generic code and extensibility"
DB: "Good walkthrough of generics and reflection"
Ed Price: "Important topic! Great descriptions."
Margriet Bruggeman: "Good, I like the way the article covers various sides of the problem"

Bronze Award Winner

saramgsilvaFile exporter for IEnumerable of TEd Price: "Another great article from Sara! Great job on the TOC and code snippets!"
Søren Granfeldt: "Great idea; could use a little more generic approach on the formatting of values"
Margriet Bruggeman: "Nice example of applying generics" 

 

Guru Award Wiki and Portals Technical Guru - October 2014  

Gold Award Winner

Durval RamosSummit: Principles of International TNWiki SummitRichard Mueller: "A great writeup and introduction to this fantastic idea. Well done."
Ed Price: "Great depth and planning for this event!"
GO: "This is one of the best Portals that I've ever seen! Thanks"

Guru Award Windows Phone and Windows Store Apps Technical Guru - October 2014  

Gold Award Winner

saramgsilvaHow to Integrate Cortana in the Menu AppJH: "I got three words for you: I love Cortana! This article shows nicely how to integrate Cortana into your own app. Would love to see more."
Ed Price: "That's what I'm talking about! Way to go for a "What's Next" topic and nail it! I expect this article to gain a lot of interest. Fantastic article!"

Silver Award Winner

Carmelo La MonicaThe class GeocodeQuery in Windows Phone 8.JH: "Lots of code examples about a feature some apps should be use more. Geocoding becomes more and more important, so this article fits perfectly into this."
Ed Price: "This is an important class with a lot of possibilities. Great execution on this article! Could benefit from a References or Additional Resources section. Good job wrapping it up with the conclusion."

Bronze Award Winner

saramgsilvaExport To CSV for Windows Store appsJH: "Most people laugh when they hear about CSV export of data. A database would be a better place for the data of an app. In my opinion this is not always true (because CSV is small and can be used in different ways), so most apps should have the capability to export data into the CSV file format. This article shows how this can be done."
Ed Price: "Another very important article. I love the Source link to the MSDN Gallery. Great job!"

Guru Award Windows Presentation Foundation (WPF) Technical Guru - October 2014  

Gold Award Winner

Andy ONeillWPF: Entity Framework MVVM Walk Through 1Ed Price: "Very well formatted, clear sections, and lots of depth and clear explanations! The TOC, code snippets, Summary, and Further Reading links all help round out this great article!"
KJ: "awesome" 

Silver Award Winner

saramgsilvaHow to binding a ResourceDictionary to a Lisbox in apps based in XAMLEd Price: "Incredibly clear and fantastic topic! The TOC and Source link to the Gallery item help provide more value!"
GO: "She did it again. Great article." 

Bronze Award Winner

Shweta LodhaPopUps with Interactivity [Prism 5.0]KJ: "handy"
Ed Price: "Good clarity and use of code snippets and images. Could benefit from a TOC and References/See Also. Great job!"
GO: "Layout could be better, but still valualble article."

 

Guru Award Windows Server Technical Guru - October 2014  

Gold Award Winner

Richard MuellerActive Directory: Generalized-Time AttributesMark Parris: "Very detailed article providing very good information."
GO: "Top 1 AD article Thanks Richard."
JM: "This is an excellent article, thanks for your contribution."
Philippe Levesque: "Good article ! I really liked the note about the whenChanged"

Silver Award Winner

Darshana JayathilakeSome useful features with Windows Group policiesJM: "This is an excellent article, but I recommend making the title more accurate by renaming it something like "How to configure Applocker using Group Policy" "
GO: "I like the article; so great written"
Mark Parris: "A good insight on some GPO settings and their capability."
Philippe Levesque: "Good visual howto !"

Bronze Award Winner

Mr XHow to manage Windows Taskbar Items pinning using Group PolicyPhilippe Levesque: "Good subject well explained, already seen users that ask for that in the forum as it's new."
JM: "This is a good article that would be much more useful if you specify the Windows versions to which the article applies."
GO: "Merci, Mr X"
Mark Parris: "Very useful, especially if you need to utilise this capability post deployment."

-------------------------------- 8< --------------------------------

A huge thank you to EVERYONE who contributed an article to October's competition.

Hopefully we will see you ALL again in November 2014's listings?

If you haven't contributed an article for this month, and you think you can create a more useful, clever and better presented wiki article than the winners above, 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 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!

The package failed to load due to error 0xC0011008 "Error loading from XML....." This occurs when CPackage::LoadFromXML fails

$
0
0

Source environment: Win 7 Enterprise SP1 64bit - SQL Server 2008 R2 SP1 Developer Edition (10.50.2550.0 )
Target environment: Win 2008 R2 Standard SP1 64bit - SQL Server 2008 R2 SP1 Standard Edition (10.50.2500.0 )

I want to deploy a package with the deployment manifest, but I'm getting an error (during deployment):

Package "D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Packages\Migration\Students.dtsx" could not be loaded.

The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.

I already remove a fuzzy lookup since this isn't part of the Standard edition, but still getting the error above.

Package Example:

If I just copy the package and try to run it I get this (0xC0010014):

Any suggestions?




Download of SSIS 2012 package on Visual Studio 2012

$
0
0

Hi ,

I want to install and learn SSIS 2012 package on Visual Studio 2012.

Please let me know step by step process to download the free version software.I am new to SSIS,please guide me to install the SSIS.

Thanks,

Indira


ADO Error in SSIS

$
0
0

Can somebody help me with my syntax?

try to delete a file, but SSIS think it is a path

$
0
0

I have a process that reads file with different extension, at the end I will either move or delete the file.  Below is the code.

I can run it with success if debug locally, it failed when trying to run the package.  Below is the error:

The file received does not have extension - item_2290.seq

Error message: Access to the path 'E:\myfolder\item_2290.seq' is denied.

I tried different method and none worked, on if I delete the driectory.  I donot want to recreate the dir each time.  Please help, I am pulling my hair and no luck.

Below is the code:

foreach

(var srcfileinnewDirectoryInfo(SourceFilePath).GetFiles())

{

if (File.Exists(targetFilePath+ srcfile.Name) == true)

{

srcfile.Delete();

}

else

{

File.Move(SourceFilePath + srcfile.Name, targetFilePath + srcfile.Name);

}

}


W.E. Pan

In SSIS, how do I add a file row number when the source is MULTIFLATFILE?

$
0
0

My source is a MULTIFLATFILE source.  I want to add the rownumber in the data flow, so that when it is loaded to the database table, I can identify the exact row from which each record was obtained.  I already know how to do this for a single flat file source.  My script transformation code is here.  How do I modify my data flow and script so that the row number will reset with each individual file?

' Microsoft SQL Server Integration Services user script component
' This is your new script component in Microsoft Visual Basic .NET
' ScriptMain is the entrypoint class for script components

Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper

<Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute> _<CLSCompliant(False)> _
Public Class ScriptMain
    Inherits UserComponent
    Private _RowNumber As Integer = 1

    Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
        Row.RowNumber = _RowNumber
        _RowNumber += 1
    End Sub
End Class

Sharing connection manager across projects SSIS 2014

$
0
0

Hi,

I am migrating my ssis 2008 project to ssis 2014.

I am pretty much excited using the new features.

The problem I am facing :

I have my parent package in seprate project and cjild packages in different project.

There are multiple projects each having theire own module specific ETL packages.

In all the project I have define project level connection manager.

The issue is when I call my child package from the parent in other project and I have defined the project level connection managers, parent package throws the error mentioning its unable to get the child connection manager as displayed below.

But when make the connection managers in child project as package level connection it works fine.

Is it that , parent package from one project are unable to identify the shared connection defined in my child project?


Please correct my update query

$
0
0

Hello,

Below is my query:

update [RFRL_CGN_CFQ].[CashForQuotes].CFQ_Referrals set  RecID = 
(SELECT ROW_NUMBER() OVER (ORDER BY QuoteType, QuoteDate) AS Number FROM [RFRL_CGN_CFQ].[CashForQuotes].CFQ_Referrals
where QuoteType = 'aSNAP' and QuoteDate in (getdate()))

I want to update the RecID values of all the rows (sequentially with row number), which satisfes the where condition. I am aware that while updating a column we can't give sub query which results in multiple values.

I am bit confused, please spare couple minutes of your time.

Any help is highly appreciated. Thank you.

Viewing all 24688 articles
Browse latest View live


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