Click here to Skip to main content
15,909,242 members
Home / Discussions / Database
   

Database

 
GeneralRe: Causes of Urecognized Database Format Pin
ASPnoob3-Aug-12 0:13
ASPnoob3-Aug-12 0:13 
GeneralRe: Causes of Urecognized Database Format Pin
Eddy Vluggen3-Aug-12 0:21
professionalEddy Vluggen3-Aug-12 0:21 
GeneralOn error resume next Pin
vanikanc2-Aug-12 4:44
vanikanc2-Aug-12 4:44 
GeneralRe: On error resume next Pin
Eddy Vluggen2-Aug-12 9:46
professionalEddy Vluggen2-Aug-12 9:46 
GeneralRe: On error resume next Pin
vanikanc2-Aug-12 9:50
vanikanc2-Aug-12 9:50 
GeneralRe: On error resume next Pin
Eddy Vluggen2-Aug-12 10:02
professionalEddy Vluggen2-Aug-12 10:02 
GeneralRe: On error resume next Pin
vanikanc2-Aug-12 10:14
vanikanc2-Aug-12 10:14 
QuestionRe: On error resume next Pin
Eddy Vluggen2-Aug-12 12:33
professionalEddy Vluggen2-Aug-12 12:33 
vanikanc wrote:
I tried with bigint - still errored out.

Was worth a shot.

SQL
right('00000000' + cast(cast(round(500000,0)*10000 as int) as varchar(8)),8)

Where is the @dummy used here? 500 000 * 10 000 = 5 000 000 000. That's bigger than an int, and probably wider than eight characters. Some suggestions;

  • Lose the round function
  • Don't multiply by 10k, pad it with 4 zero's and save the string-representation.
  • If the dummy needs be multiplied by 500k, then multiply it by 5 and pad zeroes again
  • Don't limit the varchar to eight characters - use varchar(50)

What kind of number are you trying to display? Can you give us an example of a number "before" (the original dummy) and the one "after" (the resulting dummy)?
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

AnswerRe: On error resume next Pin
vanikanc3-Aug-12 3:05
vanikanc3-Aug-12 3:05 
GeneralRe: On error resume next Pin
Eddy Vluggen3-Aug-12 4:02
professionalEddy Vluggen3-Aug-12 4:02 
QuestionSQL Query - write all in one query Pin
Raman samineni1-Aug-12 6:30
Raman samineni1-Aug-12 6:30 
AnswerRe: SQL Query - write all in one query Pin
PIEBALDconsult1-Aug-12 8:42
mvePIEBALDconsult1-Aug-12 8:42 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni1-Aug-12 16:02
Raman samineni1-Aug-12 16:02 
GeneralRe: SQL Query - write all in one query Pin
PIEBALDconsult1-Aug-12 18:23
mvePIEBALDconsult1-Aug-12 18:23 
AnswerRe: SQL Query - write all in one query Pin
Mycroft Holmes1-Aug-12 13:17
professionalMycroft Holmes1-Aug-12 13:17 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni1-Aug-12 15:56
Raman samineni1-Aug-12 15:56 
GeneralRe: SQL Query - write all in one query Pin
Mycroft Holmes1-Aug-12 16:25
professionalMycroft Holmes1-Aug-12 16:25 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni2-Aug-12 8:22
Raman samineni2-Aug-12 8:22 
AnswerRe: SQL Query - write all in one query Pin
Eddy Vluggen1-Aug-12 22:34
professionalEddy Vluggen1-Aug-12 22:34 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni2-Aug-12 8:19
Raman samineni2-Aug-12 8:19 
GeneralRe: SQL Query - write all in one query Pin
Eddy Vluggen2-Aug-12 8:59
professionalEddy Vluggen2-Aug-12 8:59 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni6-Aug-12 8:37
Raman samineni6-Aug-12 8:37 
GeneralRe: SQL Query - write all in one query Pin
Raman samineni6-Aug-12 8:39
Raman samineni6-Aug-12 8:39 
QuestionRe: SQL Query - write all in one query Pin
Eddy Vluggen6-Aug-12 8:50
professionalEddy Vluggen6-Aug-12 8:50 
AnswerRe: SQL Query - write all in one query Pin
Raman samineni6-Aug-12 11:11
Raman samineni6-Aug-12 11:11 

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.