Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Trigger enable/disable in Microsoft SQL Server

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-02 : 07:17:35
Pinto writes "hi sql team,

1. How can I enable and disable a trigger in Microsoft SQL
Server 2000 8.0 ?
I used the sql -- ALTER TRIGGER trigname ENABLE ;
and got incorrect syntax near enable

2. how can I execute .bat file with sql ?

please help me !!!!
thanx
Pinto"

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-06-02 : 08:43:25
1. ALTER TABLE tablename DISABLE TRIGGER triggername
2. Use xp_cmdshell (The file cannot be interactive though.)

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -