Solved

Find data in sql table column which is not integer

Posted on 2016-10-10
5
29 Views
Last Modified: 2016-10-10
Hello,
How can I write a query to find  data in sql table column which is not integer.

Cheers
0
Comment
Question by:RIAS
  • 3
  • 2
5 Comments
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 41836974
SELECT *
FROM TableName
WHERE ISNUMBER(ColumnName)=0

Open in new window

0
 

Author Closing Comment

by:RIAS
ID: 41836975
Thanks!
0
 

Author Comment

by:RIAS
ID: 41836978
'ISNUMBER' is not a recognized built-in function name.
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 41836980
Sorry, ISNUMERIC and not isnumber:
SELECT *
FROM TableName
WHERE ISNUMERIC(ColumnName)<>1

Open in new window

1
 

Author Comment

by:RIAS
ID: 41836989
Thanks!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now