index > SQL Server Notification Services > Problems Creating Instance in SQL 2005 management studio

Problems Creating Instance in SQL 2005 management studio

Hello all,
Thanks in advance for any help you can provide.

I am having a problem creating a new NS instance using SQL 2005 management studio.

I am using the database element in my instance and application xml files like this,
in order to create the NS application in an existing database.

<Database>
<DatabaseName>%databasename%</DatabaseName>
<SchemaName>%schemaname%</SchemaName>
</Database>

the problem that I am having is that if I encounter an error somewhere in the process of creating this new instance the instance name and schema name I specified are still bound somewhere, and if I correct for the error and try to create the instance again, I receive a new error saying that there is already an instance with my instance name, or using the schema name.
If I try to list versions it tells me there are no instances, yet if I try to add a new instance it tells me there is already an instance using my instance name.
I have tried searching master database tables and views for anywhere where it might be stored, also tried poking around most of management studio and the registry, and just can not seem to find where it is remembering that I had tried to create this instance before.

It is like it is partially creating the instance, running into an error, and then not rolling back its changes somewhere.


Any help would be very much appreciated

DerekSG
additional error information.
I tried to remove the database and restore from a backup, and yet it still believe the instance name is in use.
I notice it seems to be checking the NS InstanceMetaData for existing instances on this server...
"Microsoft.SqlServer.NotificationServices.Common.InstanceMetadata.CheckInstanceNameInUse"
anyone know where this metadata is ?

===================================

The specified name is used by another Notification Services instance on the server. Specify a different instance name.
Instance Name: TWNSinstance
Server Name: derekxps (Microsoft.SqlServer.NotificationServices)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=NSEventStrings&EvtID=DuplicateInstanceName&LinkId=20476

------------------------------
Program Location:

at Microsoft.SqlServer.NotificationServices.Common.InstanceMetadata.CheckInstanceNameInUse(SqlConnection sqlConnection, NSInstance instance)
at Microsoft.SqlServer.NotificationServices.Common.InstanceMetadata.Add(NSInstance instance)
at Microsoft.SqlServer.NotificationServices.Common.NSDatabaseCreator.Create(NSDBState dbState, SqlDatabaseAttributes databaseAttributes, List`1 createdStates)
at Microsoft.SqlServer.NotificationServices.Common.InstanceCompiler.CreateDatabaseInfrastructure(Instance instance, NSSecureString argumentKey, NSInstance& nsInstance, Dictionary`2& nsApplications)
at Microsoft.SqlServer.NotificationServices.Common.InstanceCompiler.Create(Instance instance, NSSecureString argumentKey, Boolean uiReporting)
at Microsoft.SqlServer.NotificationServices.Common.InstanceCompiler.Create(NSSecureString sqlUserName, NSSecureString sqlPassword, String configFile, NSSecureString argumentKey, StringDictionary substitutions, Boolean uiReporting, String enforcedSqlServerSystem)
at Microsoft.SqlServer.Management.NotificationServicesUI.CreateInstanceGeneral.PerformCreate()




-Derek
DerekSG

Hi Derek -

SQLNS 2005 stores its metadata in the MSDB database. Run this script in SSMS and see if your failed instance/application are listed.

USE MSDB

GO

SELECT * FROM NS90.NSInstanceInfo

SELECT * FROM NS90.NSApplicationInfo

HTH..

Joe




Joe Webb, SQL Server MVP | http://www.sqlns.com
Joe Webb
Thanks Joe,
I did find the instance names and schema names that it had "eaten" in there. cleared them and was able to install with the instance name I wanted.
Thanks for your help!

-Derek-



-Derek
DerekSG
reply 4

You can use google to search for other answers

 

More Articles

• New SQL-NS 2005 Book
• Upper Limit for a SQLProvider query in ADF?
• SQL-NS 2005 (SSNS 3.0) DB objects on SQL 2000 DB- not possible?
• The e-mail address or SMTP server value is not valid.
• HTML formatting tags in XSLT getting lost
• Queing email
• Subscription matching and linked servers
• Details of SubscriptionClass Class
• SQL-NS 2005 resources and 3rd parties
• NSEventFlushBatch<EventClassName> returns a result set - po...
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• The e-mail address or SMTP server value
• 2 notification classes in the one app.xml
• Notification Services & Triggers
• Nothing happens... how to debug NS?
• NSEventFlushBatch<EventClassName>
• Localized subject line
• Connect to an NS instance on remote server
• REceiving notification in windows applic
• Unable to start new instance in Notifica
• Queing email
• How can I list out all the server names
• Not able to send notifications emails
• Database Mail SMTP authentication
• Notification task fails to notify operator
• SQL Server 2005 Notification Services an

Hot Articles

• Unable to build the solution of Stock sa
• Using CC and BCC in Notification Services
• Invoking a service on firing a trigger
• create a Custom Delivery Protocol class
• Accessing Initiating Event + Data From E
• Not able to send notifications emails
• Delivery Channels and Protocols
• BSM with SSRS(2005) on a different box
• SQL2005 Notification Services Workflow f
• Notifications to Live Communication Ser
• NS 2.0 SP1 Install Problem
• SQL-NS 2005 (SSNS 3.0) DB objects on SQL
• Subscription matching and linked servers
• SQL Server Notification Services 2005 an
• Auto-Refresh for SQL Grids displaying SQ

Recommend Articles

• Transactions in NS API (Found a way to d
• Notification Services - Chronicle does n
• Welcome to the Notification Services Dis
• Auto-Refresh for SQL Grids displaying SQ
• Does MS plan a GUI
• .NET Framework 2.0 question - continued...
• BSM - Alerts
• Delivery Channel for Office Communicator
• Queing email
• September CTP available
• Notiification Services Tutorial
• NS Data
• Connect to an NS instance on remote server
• Looking for simple sample
• How to Send a T-sql data along with noti