Click here to Skip to main content
15,896,348 members
Home / Discussions / Database
   

Database

 
AnswerRe: Offsite databases - setup recommendations Pin
J4amieC9-Sep-09 2:15
J4amieC9-Sep-09 2:15 
GeneralRe: Offsite databases - setup recommendations Pin
Simon P Stevens9-Sep-09 3:26
Simon P Stevens9-Sep-09 3:26 
GeneralRe: Offsite databases - setup recommendations Pin
Johan Hakkesteegt10-Sep-09 0:10
Johan Hakkesteegt10-Sep-09 0:10 
GeneralRe: Offsite databases - setup recommendations Pin
Simon P Stevens11-Sep-09 4:21
Simon P Stevens11-Sep-09 4:21 
QuestionSearching marathi(non-eglish) databse Pin
girishdonde8-Sep-09 21:45
girishdonde8-Sep-09 21:45 
AnswerRe: Searching marathi(non-eglish) databse Pin
Mycroft Holmes8-Sep-09 22:42
professionalMycroft Holmes8-Sep-09 22:42 
GeneralRe: Searching marathi(non-eglish) databse Pin
Luc Pattyn9-Sep-09 1:52
sitebuilderLuc Pattyn9-Sep-09 1:52 
QuestionSQL 2008 Query Help Pin
Hulicat8-Sep-09 16:01
Hulicat8-Sep-09 16:01 
Why would this simple select error like this: sql 2008?



SELECT field1

FROM ADDRESS
where field1 != 'NULL'

"Error Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric."


The real goal is to get this select to work but there are two fields causing me problems. The two fields commented out are generating the same error as above....how would I insert a cast into the below query for fields 4 and 5?

use dbname
Select field1 + ' ' + ISNULL(field2,'')
+ ' ' + ISNULL(field3,'')
--+ ' ' + ISNULL(field4,'')
--+ ' ' + ISNULL(field5,'')
as column_new from table1



Error converting data type varchar to numeric."

Regards,
Hulicat

AnswerRe: SQL 2008 Query Help Pin
_Damian S_8-Sep-09 17:34
professional_Damian S_8-Sep-09 17:34 
GeneralRe: SQL 2008 Query Help Pin
Hulicat8-Sep-09 18:20
Hulicat8-Sep-09 18:20 
GeneralRe: SQL 2008 Query Help Pin
_Damian S_8-Sep-09 18:55
professional_Damian S_8-Sep-09 18:55 
GeneralRe: SQL 2008 Query Help Pin
Mycroft Holmes8-Sep-09 21:11
professionalMycroft Holmes8-Sep-09 21:11 
GeneralRe: SQL 2008 Query Help Pin
Hulicat9-Sep-09 5:31
Hulicat9-Sep-09 5:31 
GeneralRe: SQL 2008 Query Help Pin
_Damian S_9-Sep-09 14:25
professional_Damian S_9-Sep-09 14:25 
GeneralRe: SQL 2008 Query Help Pin
Mycroft Holmes9-Sep-09 14:35
professionalMycroft Holmes9-Sep-09 14:35 
GeneralRe: SQL 2008 Query Help Pin
_Damian S_9-Sep-09 15:29
professional_Damian S_9-Sep-09 15:29 
Questionwhich answer is right? Pin
mctramp1688-Sep-09 14:47
mctramp1688-Sep-09 14:47 
AnswerRe: which answer is right? Pin
Ashfield8-Sep-09 21:05
Ashfield8-Sep-09 21:05 
GeneralRe: which answer is right? Pin
Mycroft Holmes8-Sep-09 21:20
professionalMycroft Holmes8-Sep-09 21:20 
GeneralRe: which answer is right? Pin
Ashfield9-Sep-09 1:31
Ashfield9-Sep-09 1:31 
GeneralRe: which answer is right? Pin
Mycroft Holmes9-Sep-09 14:48
professionalMycroft Holmes9-Sep-09 14:48 
GeneralRe: which answer is right? Pin
mctramp1689-Sep-09 2:20
mctramp1689-Sep-09 2:20 
AnswerRe: which answer is right? Pin
Bassam Saoud9-Sep-09 10:58
Bassam Saoud9-Sep-09 10:58 
QuestionDynamic SQL Help Pin
Jammer8-Sep-09 10:51
Jammer8-Sep-09 10:51 
AnswerRe: Dynamic SQL Help Pin
Mycroft Holmes8-Sep-09 12:29
professionalMycroft Holmes8-Sep-09 12:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.