Solved

Find data in sql table column which is not integer

Posted on 2016-10-10
5
43 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 50

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 50

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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
invoke-sqlcmd help 5 34
SQL: Transformation or Pivot 3 36
Migrate SQL 2005 DB to SQL 2016 4 32
first parameter x of the decimal (x, y) 1 29
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
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.

752 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