Solved

Find data in sql table column which is not integer

Posted on 2016-10-10
5
36 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 48

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 48

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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
Via a live example, show how to shrink a transaction log file down to a reasonable size.

828 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