Which data type should you use?

You are a database developer. You plan to design a database solution byusing SQL Server 2008.
The database will contain a table to stage data from an external source.The imported data will contain a field named TransactionTime. The Transaction Time field will use the hh:mm:ss.[m] format (such as 12:55:30.1).
You need to select the appropriate data type for the Transaction Time field. You want to achieve this goal by incurring minimum amount of storage cost.
Which data type should you use?

You are a database developer. You plan to design a database solution byusing SQL Server 2008.
The database will contain a table to stage data from an external source.The imported data will contain a field named TransactionTime. The Transaction Time field will use the hh:mm:ss.[m] format (such as 12:55:30.1).
You need to select the appropriate data type for the Transaction Time field. You want to achieve this goal by incurring minimum amount of storage cost.
Which data type should you use?

A.
time

B.
time(1)

C.
datetime2

D.
smalldatetime



Leave a Reply 0

Your email address will not be published. Required fields are marked *