Why when running an SSIS job and telling the destination editor to create a new table would it default certain text fields to NTEXT data type in the new table even though the source table for the field(s) in question is varchar?
SSIS Destination new table ntext
2.2k Views Asked by JsonStatham At
2
There are 2 best solutions below
Related Questions in SQL-SERVER
- SQL server not returning all rows
- Big data with spatial queries/indexing
- Conditional null constraint on Null
- SQL Query - Order by String (which contains number and chars)
- Optimising a slow running SQL Server Stored procedure ordered by calculated fields to return a closest match
- Dynamics CRM Publishing Customizations - Multi Developers
- Is there anyway to set the relationship of many tables from Model?
- Implementation of Rank and Dense Rank in MySQL
- ORM Code First versa Database First in Production
- MVC : Insert data to two tables
- Data streams in case of Merge
- table with multiple IDs but seperate notes need sorting (Tried SQL code to make a union query)
- SQL table Partitioning by Year with ColumnStore index implemented on the table
- Defining which network to use for SQL Server 2012 Management Studio
- Fill a week days in a table with preceding Sundays value
Related Questions in SQL-SERVER-2008
- How to create separate rows for each unique value in source data
- How to Multiply all values within a column with SQL like SUM()
- Concatenated string in column alias
- Column value divided by row count in SQL Server
- MSSQL Bulk Insert CSV - Multiple columns include commas
- String to DATETIME with TimeZone
- Compare each records of same table in sql server and return duplicates
- 2008R2 SQL Code for case when using the SUM?
- Separate string into columns
- Pass parameters to sql agent job step (Transact-SQL Script)
- using Case get values from different table in sql server
- How to use Replace an unknown length of characters in SQL Server?
- Join Multiple table without using joins
- call an sql function by name returned by select
- How to create a check (Table A.Id and Table B.Id and TypeId = 1)?
Related Questions in SSIS
- Data streams in case of Merge
- SSIS Package Component Intermittently Failing
- How to run an SSIS package having excel source on a server where excel is not installed using SQL Server Agent Job
- SSIS exit code error with batch file
- excel datasource returning nulls with sql command
- String to DATETIME with TimeZone
- Error executing SSIS Package
- SSIS Stops at a Particular Record Count
- How to know expected completion time of SQL Server SSIS job?
- Accessing parent parameters from child package SSIS 2012
- Is there a way to export huge amount of data (more than a million rows) from SQL Server to csv?
- ssis - No value given for one or more required parameters
- Split CSV file based on first column value changes and load into destination table in SSIS?
- Automated file import with SSIS package
- SSIS ETL parallel extraction from a AS400 file
Related Questions in TEXT-FORMATTING
- Python + REGEX - Rich Text Formatter
- Jquery terminal text formatting syntax, what am I doing wrong?
- How to change font style programmatically in objective-c
- How can I get rid of the scientific number formatting of Google Sheets via Google Apps Script?
- Loop to multiply column i by 2, add column j, and repeat for all pairs of columns in a file
- Truncate part of text in UILabel
- How to print multiple integers on new lines in Java
- How would you style a PHP suffix with CSS?
- Can I render HTML in Silverlight?
- android dev how to underline and change color of word in string like a link color
- Maintaining user's formatting in Text Area
- implemeting a text field input like an atm machines input
- Strikeout text in Windows phone 7
- How to replace the invisible in plain text 'alt-255' symbols
- Add new text to already existing text in a content control, and make the already existing text in StrikeThrough
Related Questions in NTEXT
- GROUP BY for ntext data
- ASP.Net Text with LineBreak from Multi-Line-TextBox to save in a database
- How to get complete data from SQL management studio for ntext column?
- Hibernate HQL - casting NTEXT to NVARCHAR for a GROUP BY
- SQL Server generic trigger creation
- SQL Server : read full ntext column value
- DBI: bind_param casts string to ntext -> nvarchar(max) and ntext are incompatible
- Excel Destination [140]: An error occurred while setting up a binding for the column. The binding status was "DT_NTEXT"
- The data types ntext and nvarchar are incompatible in the equal to operator
- How can I display an ntext field as a long string in a view?
- What's the right way to compare an NTEXT column with a constant value?
- Like operator and Trailing spaces in SQL Server
- Use nvarchar datatype in SQL Server CE with EF code-first
- Entity Framework 5 ntext equals error
- Convert ntext to clob
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
My answer assumes you are using an ADO.Net data source and the fields in question are VARCHAR(MAX).
ADO.NET data sources convert strings to DT_WSTR (hence the N part of NTEXT). Retaining non unicode can be obtained by changing data flow source type to OLEDB or converting the data in a data conversion transformation.
This stackoverflow answer explains how SQL Server handles VARCHAR(MAX). So my understanding is when SSIS see's VARCHAR(MAX), it knows that if the data is larger than 8000 characters, it will need converting. As a result SSIS converts the data automatically to TEXT and lets SQL Server handle it inserting the data into a VARCHAR(MAX) destination.