Welcome Guest Search | Active Topics | Members | Log In | Register

Re: Cannot drop triggers using dynamic SQL Options · View
Kalen Delaney
Posted: Wednesday, October 31, 2007 4:03:19 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 31/10/2007 16:03:19
Date: Wed, 31 Oct 2007 23:03:19 -0700

Hi Ant

This SELECT will generate DROP TRIGGER statements, but it will not execute
them to actually drop the triggers. You need to take the output and execute
it.

--
HTH
Kalen Delaney, SQL Server MVP
www.InsideSQLServer.com
http://sqlblog.com


"Ant" <Ant@discussions.microsoft.com> wrote in message
news:16961357-9B6B-4878-9E5C-47C532BAF8EA@microsoft.com...
> Hi,
> I'm using:
>
> SELECT 'DROP TRIGGER ' + name FROM SYSOBJECTS WHERE type = 'TR'
>
> I've used this on a number of occaisions but it doesn't seem to be
> dropping
> the triggers this time.
>
> Can anybody think of what I may be doing wrong here?
>
> Many thanks for any assistance in advance
>
> Ant


Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.054 seconds.