I need a list of all the SQL types and their .NET equivalent.
What are SQL Server data-types mapped to by default in ADO.NET?
689 Views Asked by Shimmy Weitzhandler At
3
There are 3 best solutions below
1
RickNZ
On
Here's a list for .NET 3.5 / ADO.NET / SqlClient provider:
http://msdn.microsoft.com/en-us/library/cc716729.aspx
In addition, when dealing with ADO.NET parameters, keep in mind that you can specify varchar(max) or nvarchar(max) by using -1 as the length.
Related Questions in .NET
- Does compiler optimize operation on const variable and literal const number?
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- .net rest service with JSON string and consumed with java client
- What is best way to check if any of the property of object is null or empty?
- Telerik's WPF RadColorPicker NoColorText property not working
- Possible consequences of duplicate ProgId for different classes
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Optimizing C++ call from C#
- Make a per-web-application object available to Web API and SignalR controllers
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- LINQ Except/Distinct based on few columns only, to not add duplicates
- Not displaying content by its URL string - absolute urls
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 TYPES
- Inheritance in Java, apparent type vs actual type
- Converting 8 byte char array into long
- Derby, Java: Trouble with "CREATE_TYPE" statement
- How to tell Java that two wildcard types are the same?
- F# strange type error message
- Convert String scanner to class type
- How to access a Row Type within an Array Type in DB2 SQL PL
- Python Type Dispatching with variables, is it possible?
- Ocaml unbound type constructor with module
- Cloning a Javascript object with its type
- How to remove error of incompatible variable types in LoadLibrary() function?
- What's the difference or relationship between Type and TypeInfo?
- Scala: generic method using implicit evidence doesn't compile
- Guaranteeing data type size
- Convert String With Comma To Number Using Python Pandas
Related Questions in ADO.NET
- Are there drawbacks to leaving a SqlConnection open long-term?
- Stored procedure's output parameters not updating
- An unhandled exception of type 'system.data.oledb.oledbexception'
- how to get current row index when reading DbDataReader in ADO.net
- Entity Framework throws Invalid object name
- Ignore max length property on ADO.NET DataTable
- How to fill two different datagrid from one mysql table in c#
- Ado.net running SQL Server stored procedure can't retrieve output value when using ExecuteReader
- DBConcurrency exception not occuring when data has been updated elsewhere
- Use wildcards in ado.net sybase parameter
- How to copy rows from a DataTable to another DataTable WITHOUT deleting existing rows?
- Use in operator in stored query in ms access with ado.net
- How to use entity framework with business objects
- ADO.Net INSERT not inserting data
- SQL Server 2012 - Bulk insert error - This operation conflicts with another pending operation on this transaction
Related Questions in SQL-TYPES
- What is a portable SQL data type for storing boolean values?
- Primary Key as domain username AND userID?
- Is it possible to define bit column in sqlite?
- Sql Spatial Type, Code First migration and Azure DB
- Varchar Encoding in MySQL
- MySQL alter table - changing a TINYINT to a SMALLINT
- Set decimal(16, 3) for a column in Code First Approach in EF4.3
- Automapper value type to SqlType conversions
- Invalid data type while using user defined table type
- Decimal(19,4) or Decimal(19.2) - which should I use?
- MySQL alternative to PostgreSQL's custom data type (and domain)
- What are SQL Server data-types mapped to by default in ADO.NET?
- datetime vs smalldatetime
- CREATE FUNCTION for <> T-SQL and CLR types for return value do not match
- using SqlGeography types in C# client-side
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?
See this post, for SQL Server types.
For other data providers see this.