Mr_Shaw
asked on
SP_Help Prec = 10
I ran SP_Help and the Prec column for my ID field equaled 10
What does this mean?
What does this mean?
what is the data type?
ASKER
int
ASKER
Here is my output
Column_name: ID
Type: int
Computed: no
Length: 4
Prec: 10
Scale: 0
Nullable: no
TrimTrailingBlanks: (n/a)
FixedLenNullInSource: (n/a)
Collation: Null
Column_name: ID
Type: int
Computed: no
Length: 4
Prec: 10
Scale: 0
Nullable: no
TrimTrailingBlanks: (n/a)
FixedLenNullInSource: (n/a)
Collation: Null
If sp_help is executed with no arguments, summary information of objects of all types that exist in the current database is returned.
so you have 10 objects in the db you are running this query.
so you have 10 objects in the db you are running this query.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry the exlpanation you gave were a little to techi more me.
I ran sp_help[Table_Name] to return some more information about my table.
ID is just one field from my table.
I ran sp_help[Table_Name] to return some more information about my table.
ID is just one field from my table.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
prec indicates the total number of digits.. In your case the data type is int and you can store a 10 digit number in that column...
if the column type to be float then the prec value would be 53 meaning that you can store 53 digit number including the point and the decimal place..
if the column type to be float then the prec value would be 53 meaning that you can store 53 digit number including the point and the decimal place..
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks