Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

which datatypes should I use?

$
0
0

Hi all,

I am trying to create a database with the correct datatypes.This is what I have created (it's not working):

(8 Columns total)

ID (primary key) nchar(10)

brand (nvarchar(50))

cost (money)

retail (money)

width (decimal(4,2))

aspect (decimal(4,2))

rim (decimal(4,2))

model (nvarchar(50))

What I intend is for BRAND and MODEL to be text fields (no math will ever be done)

cost and retail are for dollar amounts (math WILL be done in a VB app)

width/aspect/rim will be numerical values (they might contain decimals but no math will ever be done)

I have a screen shot of trying to add values to the first row in Management Studio (sql 2012 express)


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>