views:

55

answers:

2

Good day,

When creating a new table in SSMS - right click on the "Tables" node, choose "New Table..." - the default definition for a new column is nchar(10).

Can I change that? Let's say I would like the default column definition to be varchar(5) whenever someone creates a new table.

I can't find any sort of option to change that, I'm thinking maybe it's a registry setting?

Thanks all.

A: 

You can't. Actually, you can: see Darryl Peterson's answer

To be honest, you're quicker to use CREATE TABLE in a query windows and type it all manually. You pick the syntax up quick enough.

To start, you could look at View..Template Explorer. There is a "Create Table" template.

gbn
+1  A: 

In the Registry:

Path - HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\DataProject
Name - SSVDefaultColumnType

Also look at SSVDefault*Length (e.g. SSVDefaultCharLength) to set the length.

All caveats about changing the registry apply.

Darryl Peterson
Interesting......
gbn