answering to the question in the title, the datatype for currency is MONEY
.
the money
datatype will store the information only, without the format: in your example the information is 11.23
so that’s what is saved into the database.
the $
sign is part of the format so it will not be stored into the money
field.
the usual solution is to have a MONEY
field for the amount and a VARCHAR
field for the currency symbol/name.
Related Posts:
- How to drop a table if it exists?
- SQL Server Installation – What is the Installation Media Folder?
- SQL-Server: The backup set holds a backup of a database other than the existing
- Search all tables, all columns for a specific value SQL Server [duplicate]
- vs shell installation has failed with exit code 1638
- XOR in SQL Server
- An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON SQL Server
- LIKE vs CONTAINS on SQL Server
- Case in Select Statement
- What is a stored procedure?
- Inserting multiple rows in a single SQL query? [duplicate]
- SQL Server: Difference between PARTITION BY and GROUP BY
- Self Join to get employee manager name
- Conversion failed when converting date and/or time from character string while inserting datetime
- error, string or binary data would be truncated when trying to insert
- How can I do an UPDATE statement with JOIN in SQL Server?
- Must declare the scalar variable
- Rename column SQL Server 2008
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- The SQL OVER() clause – when and why is it useful?
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- Function to Calculate Median in SQL Server
- SQL Server IF EXISTS THEN 1 ELSE 2
- SQL Server Management Studio, how to get execution time down to milliseconds
- Drop a temporary table if it exists
- How do I escape a single quote in SQL Server?
- How Stuff and ‘For Xml Path’ work in SQL Server?
- IDENTITY_INSERT is set to OFF – How to turn it ON?
- An attempt was made to access a socket in a way forbidden by its access permissions
- Each GROUP BY expression must contain at least one column that is not an outer reference
- Cannot Connect to Server – A network-related or instance-specific error
- Import / Export database with SQL Server Server Management Studio
- Best way to do nested case statement logic in SQL Server
- How can I clone an SQL Server database on the same server in SQL Server 2008 Express?
- The multi-part identifier could not be bound
- Get day of week in SQL Server 2005/2008
- How to join two tables by multiple columns in SQL?
- incorrect syntax error CREATE VIEW must be the only statement in the batch
- Attach (open) mdf file database with SQL Server Management Studio
- Sql Server string to date conversion
- Why use a READ UNCOMMITTED isolation level?
- Find all tables containing column with specified name – MS SQL Server
- Conversion of a varchar data type to a datetime data type resulted in an out-of-range value in SQL query
- How can I import an Excel file into SQL Server?
- How to group by month from Date field using sql
- The ALTER TABLE statement conflicted with the FOREIGN KEY constraint
- SQL – The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
- Is there a combination of “LIKE” and “IN” in SQL?
- Search text in stored procedure in SQL Server
- How to convert SQL Server’s timestamp column to datetime format
- SQL Server IF NOT EXISTS Usage?
- Arithmetic overflow error converting expression to data type datetime. (while displaying date time..)
- How to join two tables by multiple columns in SQL?
- How do you create a yes/no boolean field in SQL server?
- Escape Character in SQL Server
- MS SQL compare dates?
- I want to use CASE statement to update some records in sql server 2005
- What represents a double in sql server?
- How do I fix ‘Invalid character value for cast specification’ on a date column in flat file?
- Determine ROW that caused “unexpected end of file” error in BULK INSERT?
- SELECT DISTINCT on one column
- The service cannot be started, either because it is disabled or because it has no enabled devices associated with it
- TSQL PIVOT MULTIPLE COLUMNS
- Microsoft OLE DB Provider for SQL Server error ‘80004005’
- Why do table names in SQL Server start with “dbo”?
- Round *UP* to the nearest 100 in SQL Server
- Equivalent of Oracle’s RowID in SQL Server
- Is there a Max function in SQL Server that takes two values like Math.Max in .NET?
- Regex pattern inside SQL Replace function?
- sql query to return differences between two tables
- Subtract one day from datetime
- How do I fix the error ‘Named Pipes Provider, error 40 – Could not open a connection to’ SQL Server’?
- Is it possible to specify condition in Count()?
- Replacing NULL with 0 in a SQL server query
- SQL Server: Make all UPPER case to Proper Case/Title Case
- How do I query for all dates greater than a certain date in SQL Server?
- Backup a single table with its data from a database in sql server 2008
- Error converting data type varchar
- How to execute a stored procedure within C# program
- Conditional JOIN Statement SQL Server
- Temporary table in SQL server causing ‘ There is already an object named’ error
- I want to use CASE statement to update some records in sql server 2005
- Cannot create an instance of OLE DB provider Microsoft.Jet.OLEDB.4.0 for linked server null
- ORDER BY items must appear in the select list if SELECT DISTINCT is specified
- Call a stored procedure with parameter in c#
- What datatype should be used for storing phone numbers in SQL Server 2005?
- What are database constraints?
- How to select the last record of a table in SQL?
- SQL WHERE.. IN clause multiple columns
- SHOWPLAN permission denied in database ‘tempdb’. in sql server 2008
- Append table to an existing one: SQL Server
- SQL Server – An expression of non-boolean type specified in a context where a condition is expected, near ‘RETURN’
- “select * into table” Will it work for inserting data into existing table
- Filter data based on date in sql
- Update query using Subquery in Sql Server
- How to truncate string using SQL server
- Using Excel VBA to run SQL query
- “The transaction log for database is full due to ‘LOG_BACKUP'” in a shared host
- Pad a string with leading zeros so it’s 3 characters long in SQL Server 2008
- How to connect to database from Unity