Groups | Blog | Home
all groups > sql server notification services > may 2007 >

sql server notification services : Deleting the SSNS tables



Mwob
5/4/2007 6:00:28 AM
Hi all,

We install the SSNS database tables into our application database,
rather than have a separate database. A client has sent us a backup of
their database which contains their ssns tables, and i need to drop
the ssns tables and schema from this database. I thought that this
would do the trick...

nscontrol delete -name MYDATABASE -server MYSQLSERVER -force

But it doesn't. Can anyone help?

Matt.
Joe Webb
5/8/2007 4:27:34 AM
[quoted text, click to view]

Do you have an instance with that name on that server? The msdb database
contains an entry for each SSNS instance. Here's a link that describes how.

http://sqlns.blogspot.com/2007/04/finding-ssns-instances-using-t-sql.html



HTH...

--
Joe Webb
SQL Server MVP
Mwob
5/8/2007 4:57:03 AM
Joe,

I'm not sure what you mean. We don't have SSNS setup for that database
on our server, what we want to do is completely remove all the SSNS
tables, views, schemas etc from the database backup once we have
restored it.

Thanks

Matt


[quoted text, click to view]

Mwob
5/8/2007 7:47:50 AM
Aha! Found the answer...

What you need to do is this:-

1) Restore the database
2) Run nscontrol repair, so that your SQL Server knows about the
database and has a record of it.
3) Run nscontrol delete (-force), which will remove all the SSNS
tables from your database.

Hopefully this will help someone else out there....

[quoted text, click to view]

AddThis Social Bookmark Button