Viewing 15 posts - 7,231 through 7,245 (of 7,636 total)
Setup a Job that runs every X minutes; have it check the Log File size and if over, then take corrective action.
April 4, 2008 at 2:22 pm
Depending on your configuration, you should be able to do this with a SQL Agent Job and definitely with Service Broker, if you set it up right.
April 4, 2008 at 2:10 pm
Of course, you should be aware that the dependency tables and info is not always up-to-date.
April 4, 2008 at 11:34 am
The [font="System"]USE db[/font] command only changes the session it was executed in. [font="System"]EXEC(@sql)[/font] does not execute the [font="System"]@sql [/font]text in your current session, but creates a new session and...
April 3, 2008 at 11:42 pm
SELECT @LockStatus=Count(*)
FROM Lock (nolock)
WHERE TableName=@TableName
AND RowID=@RowID
AND ...
April 3, 2008 at 10:58 pm
Hey! Wait a minute...
This isn't homework is it?!?
April 3, 2008 at 10:34 pm
I do not have time right now to do an optimal version, but this should be better than an iterative or recursive solution:
Select A.*, B.*
From TableA A
Left...
April 3, 2008 at 8:59 pm
Jonathan Beck (4/3/2008)
set @file = N'D:\BKUP\Demo\Demo_backup_200804022315.bak'
RESTORE DATABASE [Demo] FROM DISK = @file
...
Executed as user: NT AUTHORITY\SYSTEM. Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\||||||'. Operating system...
April 3, 2008 at 7:59 pm
Upgrade to SQL Server, then do these two steps:
1) Create a View on SQL Server that emulates your old Access table with everything in it.
2) Change your word ODC from...
April 3, 2008 at 1:18 pm
Rich (4/2/2008)
(can't use order by in a subquery or TVF).
From BOL: "...unless TOP is also specified."
Use [font="System"]TOP X[/font] where [font="System"]X[/font] is some number greater than the number of rows you...
April 3, 2008 at 1:01 pm
Did you mean to contribute this as an Article?
April 2, 2008 at 9:05 pm
delta dirac (4/1/2008)
i needed this because , i am an engineer and my tables structor(the columns in...
April 2, 2008 at 8:41 pm
Maintenance plans delete backup files for me on SQL 2000.
April 1, 2008 at 10:38 pm
Scripting system stored procedures still works the same.
As for system views, well their text is still in sys.syscomments
April 1, 2008 at 8:56 pm
Corrected/clarified version of my view:
Create View yourTable2 AS
Select USER_ID
, VAL_1 + VAL_2 + VAL_3 + VAL_4 AS [Total]
From Table1
April 1, 2008 at 8:45 pm
Viewing 15 posts - 7,231 through 7,245 (of 7,636 total)