About 39,500 results
Open links in new tab
  1. When to use TINYINT over INT? - Database Administrators Stack …

    However, the only reason I know for doing this is for storage purposes--using 1 byte on a row instead of 4 bytes. What are the impacts of using tinyint (or smallint or even bigint) over just …

  2. smallint from SQL to INT C# - social.msdn.microsoft.com

    Oct 7, 2021 · Please see answers to your previous smallint mapping question. At least 2 of us answered with a link to a page where you'll find a SQL Server type/C# type mapping table that …

  3. Unsigned Int datatypes - Database Administrators Stack Exchange

    Does Microsoft SQL Server support unsigned integer data types? I am trying to learn a bit more about the data type choices and helping a friend in his database project, I know that MySQL …

  4. sql server - Getting "Conversion failed when converting the …

    This isn't strictly an answer to your question but I would take a step back from your question and think about what you are trying to solve. Why do you want your zip code stored as an integer? …

  5. check constraint does not work? - Database Administrators Stack …

    24 I have the following table. create table test ( id smallint unsigned AUTO_INCREMENT, age tinyint not null, primary key(id), check (age<20) ); The problem is that the CHECK constraint …

  6. sql server - Convert SmallInt to Datetime - Database …

    A smallint data type uses the msb (most significant bit) to indicate the sign of the value. The range of values, therefore, is -2^15 (-32,768) to 2^15-1 (32,767).

  7. Replicated transactions are waiting for next log backup or for ...

    Jul 10, 2024 · We have a partial transactional replication setup in our environment to make a data subset available to another application. Application Server 1 -&gt; Tables1.row1/row2/row3 …

  8. MySQL - What exactly does smallint (2) permit? - Database ...

    As others have pointed out, smallint (2) doesn't do what you think it does. In MySQL, the best way to guarantee two-digit numbers is to build a table, insert all the valid two-digit numbers, and set …

  9. Is there a fast way to change column type without dropping the ...

    I have a large table that is clustered index on a bigint. We would like to change it to just an int to reduce the space and improve the performance. However, dropping the clustered index and …

  10. What is the difference between int(8) and int(5) in mysql?

    See 12.2 Numeric Types (MySQL Reference Manual) Essentially what you listed is the max value for INT and not BIGINT. INT(8) is the equivalent of typing INT with a display width of 8 digits …