x

default user tables in new database

I am using sql2005 - devloper edition, when I create new database two tables autometically appears in the newly created database?these two tables I have cretaed earlier in some different database.Not sure why these tables apperaing in all new databases?The same issue is started recently...

Resently I tried import/export database for two databases ...does it has any connection with the issue?

Please advise.

Rgds, Ajit

more ▼

asked Jul 14, 2010 at 12:53 AM in Default

avatar image

pits
830 89 93 95

(comments are locked)
10|1200 characters needed characters left

3 answers: sort voted first

You have created those tables in the model system database, which is a template for all newly created databases. Therefore the tables appears in all newly created datbases.

more ▼

answered Jul 14, 2010 at 12:55 AM

avatar image

Pavel Pawlowski
22.7k 10 15 26

(comments are locked)
10|1200 characters needed characters left

delete the tables in the model db

more ▼

answered Jul 14, 2010 at 02:53 AM

avatar image

ramesh 1
2.2k 66 69 73

(comments are locked)
10|1200 characters needed characters left

thank you Pavel,you are guess was correct!...

more ▼

answered Jul 19, 2010 at 01:38 AM

avatar image

pits
830 89 93 95

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x2031
x119
x13
x6

asked: Jul 14, 2010 at 12:53 AM

Seen: 1363 times

Last Updated: Jul 14, 2010 at 02:49 AM

Copyright 2018 Redgate Software. Privacy Policy