Viewing 15 posts - 3,856 through 3,870 (of 6,216 total)
First thing I had handy, might need some touching up:
Dim mSQLServer
Dim mDatabase
Dim mBackup
Dim strDB
Dim oSQLSupport
Dim strMessage
Dim strExcludeList
Dim sBakPath
Dim oLogFile
On Error Resume Next
sBakPath = "D:\sqldata\backup"
strExcludeList = "TEMPDB/PUBS/NORTHWIND/DISTRIBUTION/MODEL"
Print "The following db's were...
July 8, 2002 at 10:03 am
July 8, 2002 at 9:53 am
Of those two its better to always specify the owner.
Andy
July 8, 2002 at 9:52 am
Should show up as normal blocking. For a 30 second delay you should be able to catch using just sp_who.
Andy
July 8, 2002 at 9:52 am
The database and logfile objects both support a shrink method.
Andy
July 8, 2002 at 8:58 am
Maybe you're seeing some contention in tempdb when you test? Tried doing an explicit create table (or use a perm table) instead of select into?
Andy
July 8, 2002 at 8:57 am
July 8, 2002 at 8:37 am
Try this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_con_7a_1hf7.asp
Andy
July 8, 2002 at 8:36 am
The most direct is to create a server side trace that captures the info you need and writes it to a file. Then you can periodically (if you want) pick...
July 8, 2002 at 7:41 am
Use the tablockx hint. BOL has more info about all the available hints.
Andy
July 8, 2002 at 7:01 am
There's no simple way to determine if a record is locked. Typically if you try to select a locked record your request will be "blocked", so you wait until it...
July 7, 2002 at 7:15 am
July 6, 2002 at 9:49 pm
Good use of the wshell object. This is cleaner than the "shell" command used in VB which normally runs asynchronously. I see in a couple places you're declaring more than...
July 6, 2002 at 9:27 pm
Just looking at it now. Here are a couple comments:
1) If KeyAscii = 13 Then
Command2_Click
End If
You can do this more cleaning by making...
July 6, 2002 at 7:30 pm
Hey Antonio,
Great post! It NEVER occurred to me that the name property would be read/write. That's a lot cleaner than trapping the error.
Andy
July 6, 2002 at 7:18 pm
Viewing 15 posts - 3,856 through 3,870 (of 6,216 total)