-
Here a sample of code that will write to the application event log, using VB..NET: Public Function WriteToEventLog( ByVal Entry As String ) Dim appName As String = "Server Maintenance" Dim eventType As EventLogEntryType = EventLogEntryType. Error Dim...
-
After issuing this command: DROP index drive.ix_drives I get this message: An explicit DROP INDEX is not allowed on index 'drive.ix_drives'. It is being used for UNIQUE KEY constraint enforcement. Then answer was to issue this command: ALTER TABLE...
-
Here's a short function that will generate a random filename Private Function GetRandomFileName() As String Dim r As New Random() Dim i As Integer Dim strTemp As String = "" For i = 0 To 8 strTemp = strTemp & Chr ( Int ((26 * r.NextDouble()) ...