- Details
- Written by: Stanko Milosev
- Category: MS SQL
- Hits: 2225
IF EXISTS (SELECT * FROM sys.objects WHERE [name] = N'myTrigger' AND [type] = 'TR') BEGIN DROP TRIGGER [dbo].[myTrigger]; END; GOStored procedure with OBJECT_ID:
IF OBJECT_ID('dbo.mySP') IS NOT NULL DROP PROCEDURE dbo.mySP GOTemp table:
IF OBJECT_ID('tempdb..#myTempTable') IS NOT NULL DROP TABLE #myTempTable GO
- Details
- Written by: Stanko Milosev
- Category: MS SQL
- Hits: 5084
SQL Server Browser has to be enabled so that other machines can access it.
- Details
- Written by: Stanko Milosev
- Category: MS SQL
- Hits: 4923
sp_password NULL,'new_password','sa' go