ssis

Convert month name to month number in SSIS

时间秒杀一切 提交于 2020-01-04 06:25:09
问题 I have an input column "MonthName" which has values in the following string format 22-MAY-2017 02:29:33.00 . I would like to convert this into Datetime data type in the destination table. For that the following conversion needs to be done 22-MAY-2017 02:29:33.00 to 22-05-2017 02:29:33.00 How do i achieve this in Derived Column task. I am using below expression to fetch the month name part of the value but i don't think it servers much of my purpose SUBSTRING(MonthName,FINDSTRING(MonthName,"-"

SSIS not running in parallel with OraOLEDB.Oracle.1 Provider

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 04:44:09
问题 we had one SSIS package with Oracle 11 Client, we would run our daily query with 30min to 1 hour run time. we had to upgrade our oracle clients as one of our other oracle source got upgraded. post upgrade to Oracle 12c, our daily job run time increased. oracle DBA said, its not running in parallel, as its occupying only one processor. when we run the same query from SQL Developer or toad, its running in parallel. but if we run from SSIS OLEDB Source component its not running in parallel. I'm

How to achieve TRY_CONVERT functionality in SSIS?

南楼画角 提交于 2020-01-04 02:03:14
问题 In SSIS package I have derived column in which I want to format phone like below: CASE WHEN TRY_CONVERT(BIGINT, phone) IS NULL THEN NULL ELSE phone END How can I use the SSIS expression to achieve same result as above? 回答1: Derived Column You have to use the following expression: (DT_I8)[Phone] == (DT_I8)[Phone] ? [Phone] : NULL(DT_WSTR,50) Note that you have to replace (DT_WSTR,50) with the data type of column [Phone] . Click here for more information And in the derived column error output

convert ssis expression datetime to int

微笑、不失礼 提交于 2020-01-04 01:51:30
问题 I want to calculate last friday's date in ssis. Below code is doing it. DATEADD("dd", -1 - (DATEPART("dw", getdate()) % 7), getdate()) But it gives results for datetime datatype and I want results for int data type in ssis. How to convert? DATEADD("dd", -1 - (DATEPART("dw", getdate()) % 7), getdate()) 回答1: According to this Microsoft article: When a string is cast to a DT_DATE, or vice versa, the locale of the transformation is used. However, the date is in the ISO format of YYYY-MM-DD,

convert ssis expression datetime to int

走远了吗. 提交于 2020-01-04 01:51:13
问题 I want to calculate last friday's date in ssis. Below code is doing it. DATEADD("dd", -1 - (DATEPART("dw", getdate()) % 7), getdate()) But it gives results for datetime datatype and I want results for int data type in ssis. How to convert? DATEADD("dd", -1 - (DATEPART("dw", getdate()) % 7), getdate()) 回答1: According to this Microsoft article: When a string is cast to a DT_DATE, or vice versa, the locale of the transformation is used. However, the date is in the ISO format of YYYY-MM-DD,

data at the root level is invalid. line 1 for SSIS

◇◆丶佛笑我妖孽 提交于 2020-01-03 19:22:14
问题 I need to use VS2015 with SQL Server 2012 in my SSIS project. When I changed Deployment Target Server Version from SQL Server 2016 to SQL Server 2012 I get following error. OData V4. Stack Trace: Data at the root level is invalid. Line 1, position 1. (System.Xml) Program Location: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl

can I use SSDT/BIDS/SSIS using SQL Server 2012 express?

陌路散爱 提交于 2020-01-03 19:05:45
问题 Ideally, I want to make SSDT/SSIS packages on my desktop PC that I can test and deploy to a production server environment. On my PC I have: Windows 7 Visual Studio 2008 Visual Studio 2010 (shell) SQL Server Express 2012 (local dev copy of prod) [supposedly] BIDS (Business Intelligence Development Studio) and SSDT (SQL SErver Data Tools) etc. On my production server I have: Windows Server 2008 SQL Server 2012 Visual Studio 2010 (shell) I cannot load/run SSIS (SQL Server Integration Services)

can I use SSDT/BIDS/SSIS using SQL Server 2012 express?

北城余情 提交于 2020-01-03 19:04:26
问题 Ideally, I want to make SSDT/SSIS packages on my desktop PC that I can test and deploy to a production server environment. On my PC I have: Windows 7 Visual Studio 2008 Visual Studio 2010 (shell) SQL Server Express 2012 (local dev copy of prod) [supposedly] BIDS (Business Intelligence Development Studio) and SSDT (SQL SErver Data Tools) etc. On my production server I have: Windows Server 2008 SQL Server 2012 Visual Studio 2010 (shell) I cannot load/run SSIS (SQL Server Integration Services)

How do I change NULL values to empty strings?

独自空忆成欢 提交于 2020-01-03 14:08:25
问题 I have an SSIS Package that is copying data from a column that is Nullable to a table where the same column is not Nullable. There is red tape involved in making the source not nullable so for now I need a way to change the nulls to empty strings. I get the data from an ADO .Net Source, not a query where I could just add a check for null. If need be I can switch to a query and just do the check at that point. Before I do that I wanted to see if there is an SSIS tranformation that would allow

Best way of logging in SSIS

本秂侑毒 提交于 2020-01-03 11:01:54
问题 There are 5 different types of logging in SSIS Event Log Text File XML File SQL Server SQL Server Profiler I am in a production environment where developers do not have access to production systems. Which logging method should be my poison of choice, and why? 回答1: If you're not going to have access to the production server, then SQL Server logging is your best bet by far. You'll have plenty of ways of viewing the logged information, for example via custom SSRS reports or web pages, or direct