Viewing 15 posts - 16 through 30 (of 63 total)
Physical Server:
OS - Windows 2008, Service Pack 1
System Type - Stand-alone, Terminal Server
CPU - 16 Core 2.67 GHz Intel Xeon(R) X5550
Memory - 32768 MB
SQL: Standard Edition (64-bit), Service Pack...
September 27, 2010 at 11:32 am
There were no memory errors in the logs or event viewer. However, I did not try the dedicated admin connection.
September 27, 2010 at 10:14 am
Got it!
CREATE PROC [dbo].[DELETE_DATABASE](
@DATABASENAME VARCHAR(255)
)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @sql NVARCHAR(100)
SET @sql = N'DROP DATABASE ' + @DATABASENAME
EXEC sp_executesql @sql;
END
June 23, 2010 at 10:09 am
Thank you for the suggestion, but I am getting the same error.
Msg 457, Level 16, State 1
Implicit conversion of varchar value to varchar cannot be performed because the collation of...
April 9, 2010 at 6:52 am
I was able to create the trigger for INSERT, UPDATE, DELETE, but can you fire a trigger off from a SELECT statement?
January 13, 2010 at 12:36 pm
I ended up using this procedure instead....
October 26, 2009 at 12:53 pm
This trigger works perfectly on my one server, however I created it on a second server and for some reason I don't receive the email. Database Mail is setup...
September 29, 2009 at 8:42 am
I am using the following trigger I found on SQL Server Central.
USE [msdb]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
----------------------------------------------------------------------------
-- Object Type : Trigger
-- Object Name : msdb..trg_stepfailures
-- Description...
September 8, 2009 at 8:52 am
September 4, 2009 at 12:37 pm
Yes....3 production databases on the same server. The users can only connect to one and then the backup of that one is restored to the others. For some...
June 8, 2009 at 6:41 am
Works with following:
set transaction isolation level read uncommitted
set nocount on
SELECT CASE WHEN DATEDIFF(D, MAX(TRANSDATE), GETDATE()) > 4 THEN '1' ELSE '0' END AS ThresholdExceeded,'It has been '+ CONVERT(VARCHAR(10), DATEDIFF(D, MAX(TRANSDATE),...
April 7, 2009 at 9:22 am
Receiving following error
Msg 245, Level 16, State 1, Line 7
Conversion failed when converting the varchar value 'FALSE' to data type int.
April 7, 2009 at 8:53 am
This was helpful.
set transaction isolation level read uncommitted
set nocount on
SELECT tablename, transfered, DATEDIFF(day, transfered, GETDATE()) AS diff
INTO ##tempResults
FROM [product].dbo.table_updated
WHERE DATEDIFF(day, transfered, GETDATE()) >2
ORDER BY transfered
IF @@rowcount > 0
BEGIN
EXEC msdb..sp_send_dbmail
@recipients =...
April 7, 2009 at 7:44 am
Viewing 15 posts - 16 through 30 (of 63 total)