Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9165531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:55:57+00:00 2026-06-17T14:55:57+00:00

I want to convert the data type of the column in sql server the

  • 0

I want to convert the data type of the column in sql server
the column that I am using is computed but its not giving the expected results if I insert two values of larger integers it says arithmetic overflow record was not commited. I am having the following code for it.

CREATE TABLE mytable(
    firstcol [int] NULL,
    secondcol [int] NULL,
    computedcol  AS (firstcol * secondcol)

but when I enter 10 digit operations as adding or multiplying it supports but if i do 123456789 * 123456789 it shows error of arithmatic overflow and the record couldnot be commited. probably means that the computedcol datatype is of int and an int datatype in sql server is upto 10 digits if exceeded it shows overflow error bigint datatype is a hope of hadeling such calculations but I am unaware of the right code need help please….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:55:58+00:00Added an answer on June 17, 2026 at 2:55 pm

    You can check out this link which will surely answer your query:- http://blog.sqlauthority.com/2008/09/29/sql-server-puzzle-solution-computed-columns-datatype-explanation/

    When an operator combines two expressions of different data types, the
    rules for data type precedence specify that the data type with the
    lower precedence is converted to the data type with the higher
    precedence. We can convert one of the datatype of the our computed
    column definition to the datatype which we want and it can solve the
    problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a datetime column in SQL Server that gives me data like this
I want to convert variables into factors using apply() : a <- data.frame(x1 =
I have a data flow with a derived column. I want to convert the
I want to convert a column of numbers to numeric, but there are certain
I'm working with MS SQL SERVER 2003. I want to change a column in
I want to convert my sql data to csv files while clicking on a
I want to Change Column data type from 'VarChar' to 'DataType' While inserting into
I have a column in my database of data type Geography which I want
I have a LINQ to SQL class called Data with a column of type
I am using sql and sql-server I have created a new column in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.