# Error when creating database

**URL:** <https://forums.toadworld.com/t/error-when-creating-database/16959>\
**Category:** Toad for SQL Server\
**Created:** [July 20, 2012, 8:42am UTC](https://forums.toadworld.com/t/error-when-creating-database/16959 "2012-07-20T08:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcie.burg2013](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@marcie.burg2013](https://forums.toadworld.com/u/marcie.burg2013)\
**Post date:** [July 20, 2012, 8:42am UTC](https://forums.toadworld.com/t/error-when-creating-database/16959/1 "2012-07-20T08:42:13Z")

</div>

I get a Null error when trying to create a database. I right click on databases then create database and this error displays:

System.NullReferenceException  
Object reference not set to an instance of an object.  
Stack Trace:  
at Quest.Toad.SqlServer.Doe.Databases.DatabaseProperties.OnInit\_New()  
at Quest.Toad.SqlServer.Doe.Databases.DatabaseProperties…ctor(ITrl itrl, EnumActionType actionType, ScriptOptions scriptOptions, Boolean bIsSnapshot)  
at Quest.Toad.SqlServer.Doe.Databases.DatabaseEditForm.InitializeProperties()  
at Quest.Toad.SqlServer.Doe.Databases.DatabaseEditForm.Initialize()  
at Quest.Toad.Doe.BaseDoeForm.BaseDoeForm\_Load(Object sender, EventArgs e)  
at Quest.Toad.Doe.BaseDoeForm.PreShowInitialize()  
at Quest.Toad.Doe.BaseDoeForm.Create(Object sender, ItemClickEventArgs e)

---

<div class="post-metadata">

**Author:** ![Alexander.Maximov](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/alexander.maximov/32/114_2.png) [@Alexander.Maximov](https://forums.toadworld.com/u/Alexander.Maximov)\
**Post date:** [July 23, 2012, 7:15am UTC](https://forums.toadworld.com/t/error-when-creating-database/16959/2 "2012-07-23T07:15:55Z")

</div>

Hello,  
is it reproducible on demand in your environment?  
And another question to you - what TSS version you are using?

regards,  
Alexander

---

<div class="post-metadata">

**Author:** ![Valentine](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/valentine/32/106_2.png) [@Valentine](https://forums.toadworld.com/u/Valentine)\
**Post date:** [August 2, 2012, 11:09am UTC](https://forums.toadworld.com/t/error-when-creating-database/16959/3 "2012-08-02T11:09:24Z")

</div>

Marcie,

Thanks for reporting the issue. I have found it’s b/c of your limited rights - you do not have access to “model” database. There is no error in my dev build, but toad doesn’t allow me to open dialog anyway. Same time I know I can create a database, so the root problem still exists and we need to fix it going forward.
