| | |
MS SQL data type length
Please support our MS SQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2005
Posts: 92
Reputation:
Solved Threads: 0
When I try to use MS SQL Server Enterprise Manager to create table, I typed column name, data type as "int", however the length of "int" is 4, that is fixed I cannot change, now the problem is I need to use this column as record ID, my database is large, the number of the records is more than 9999(which is the maximum int 4 length), how can I solve this issue? thanks for any comment.
•
•
Join Date: Dec 2009
Posts: 1
Reputation:
Solved Threads: 0
0
#6 13 Days Ago
Friend of mine INT 4 in sql server means that it uses 4 bytes if you multiply it by 8 bits each one they are 32 bits with what you can store numbers of the order from-2^31 (-2.147.483.648) to 2^31-1 (2.147.483.647)
see it
http://technet.microsoft.com/en-us/l.../ms187745.aspx
bye
see it
http://technet.microsoft.com/en-us/l.../ms187745.aspx
bye
•
•
•
•
When I try to use MS SQL Server Enterprise Manager to create table, I typed column name, data type as "int", however the length of "int" is 4, that is fixed I cannot change, now the problem is I need to use this column as record ID, my database is large, the number of the records is more than 9999(which is the maximum int 4 length), how can I solve this issue? thanks for any comment.
![]() |
Similar Threads
- Working with SQL server's Image data type (ASP.NET)
- help understanding "char" data type (C++)
- Working with SQL's Text data type (ASP.NET)
- Text data type troubles in T-SQL (Database Design)
Other Threads in the MS SQL Forum
- Previous Thread: how to updete field for a set of records from one record in the same table?
- Next Thread: Related tables SQL
Views: 18787 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for MS SQL
"last age autogrowth business connectingtodatabaseinuse count cursor data database dateadd datediff datepart day" dbsize deadlock delete_trigger exploit getdate hack highperformancecomputing hpc hpcserver2008 ibm iis limit live loop maximum microsoft ms mssql multiple multithreading news number password permission position query reporting result security server services sets single source sql sql-injection sqlserver sqlserver2005 subtype supercomputing supertype tables uniqueid update view weekday






