I have sometimes been using this “cast” statement to find “strange” chars
select
*
from
<Table>
where
<Field> != cast(<Field> as varchar(1000))
More Related Contents:
- Insert an image in a column of a table that already has 5 columns
- Get top 1 row of each group
- SQL update query using joins
- Referring to a Column Alias in a WHERE Clause
- SQL query to select dates between two dates
- Convert Month Number to Month Name Function in SQL
- How to avoid the “divide by zero” error in SQL?
- Selecting COUNT(*) with DISTINCT
- Querying data by joining two tables in two database on different servers
- Generate a resultset of incrementing dates in TSQL
- Real life example, when to use OUTER / CROSS APPLY in SQL
- Getting result of dynamic SQL into a variable for sql-server
- How to get difference between two rows for a column field?
- Better techniques for trimming leading zeros in SQL Server?
- What’s the best way to select the minimum value from several columns?
- Splitting delimited values in a SQL column into multiple rows
- varbinary to string on SQL Server
- How to insert a blob into a database using sql server management studio
- SQL GROUP BY CASE statement with aggregate function
- separate comma separated values and store in table in sql server
- SQL Server 2005 ROW_NUMBER() without ORDER BY
- Can an INNER JOIN offer better performance than EXISTS
- How to check which locks are held on a table
- Execution sequence of Group By, Having and Where clause in SQL Server?
- How to find sum of multiple columns in a table in SQL Server 2005?
- SQL Script to alter ALL Foreign Keys to add ON DELETE CASCADE
- Is it possible to execute a text file from SQL query?
- Query times out from web app but runs fine from management studio
- SQL Server 2005 – Export table programmatically (run a .sql file to rebuild it)
- Why do SQL Server Scalar-valued functions get slower?