Using current database name in T-SQL has Using statement
- by AmRoSH
Hello everybody.
I have application runs T-SQL statements to update more than one database
the problem is i'm using the following t-sql
USE [msdb]
GO
DECLARE @jobId BINARY(16)
EXEC msdb.dbo.sp_add_job @job_name=N'test2',
@enabled=1,
@start_step_id=1,
@notify_level_eventlog=0,
@notify_level_email=2,
…