Blast from the Past

This is actually a republish of an article I wrote last year.  I can’t believe I found this rummaging through my archive of computer files I kept over the years. It’s a Microsoft Word document I created on June 19, 1995 while working at a UCLA computer lab. Here is what I wrote in verbatim:

Frequently Asked Questions and Some Common Troubleshooting Tips

How do I change printers?

To change printers on the Macintosh (while using any program):

First, on the upper left hand corner of the screen and on the menu bar, there is an apple icon. Move the cursor to this icon. Click on it and keep the mouse button depressed. This will bring up a new menu of choices. (This menu of choices is commonly referred to as the Apple Menu.) Now drag the mouse so that the word Chooser is highlighted and release the button. This will bring up a new window. To select an image writer printer, click on the Appletalk Imagewriter icon. To select the laser printer, click on the Laser Printer icon.

To change printers on the IBM (any Microsoft product)

Go to the File Menu and select Printer Setup. This will bring up a window with a list of printers. Select appropriate type and select OK.

To change printers on the IBM (WordPerfect)

If there is a menu bar, go to the file menu and select print, or press Shift+F7. Press S to bring up a selection of printers. Highlight the appropriate printer and press 1 to select it.

My paper is printing on the printer, but it is not aligned correctly. How do I fix this?

First, check to see if the margins are set properly on your document. You can do this by going to the Format Menu and selecting Document. If this does not correct the problem, then check to see if the perforations of the paper are aligned properly on the printer (dot matrix only).

I saved my file, but every time I check my disk, it’s not there! What happened to my file?

Most probably, you saved your file somewhere on the hard drive. To correct this, make sure that you change the current directory to the directory that you would like to save your files in.

I just bought a new disk. How do I format it so that I can use it on the IBM?

To format a disk (Windows):

Open up File Manager. Next, go to the Disk Menu and select Format Disk. Select the drive you wish to format the disk in and the capacity of the disk. Then, select OK.

To format a disk (DOS):

At the DOS prompt, type format d:/f:size where d is the drive letter and size is the capacity of the disk.

I am a newbie to the Internet, and I would like to download GIFs from a site. How do I do this?

There are two ways in which you can do this at an HCF lab. First, you can either use a net browser like Mosaic or Netscape. Locate the file and click on it. Then, Mosaic or Netscape will ask you if wish to download it. The other way is through anonymous ftp. Load either FTP (IBM) or Fetch (Macintosh). Next enter either the domain name or the IP Address of the site you wish to connect to. Use either anonymous, ftp, or your e-mail address as your password. Once connected, you can select the file(s) you wish to download.

The just goes to show you how some things have changed (e.g. computing) while other things remained the same (e.g me creating troubleshooting articles).

A Microsoft SQL Server Database Administrator’s Daily Bread: Killing Processes

A few years ago, I started on a path to become a database administrator and read many articles on the Internet on how to break into that field.  There were a lot of articles out there, but I don’t remember finding many that offered practical knowledge (i.e. advice on what problems database administrators might encounter on a day-to-day basis).  Please note that at the time I am writing this article, I am not officially a database administrator within my organization, but I do perform database related duties and wanted to share my experience with you.

Working for a hosting company, our customers do not have complete access/control over their databases which is understandable since you are offloading management duties to the hosting company.  Learning how to correctly kill a process can be essential to getting a database back in working order, and here’s a list of the occasions where I’ve had to do it:

1) The database had open transactions causing a database lock.
2) The database somehow got set to SINGLE_USER mode, the customer was still logged in, and it needed to be set back to MULTI_USER mode (This works 9 times out of 10.  Sometimes, the person is logged in with SQL Server Management Studio, and you won’t be able to kill the process.  In that case, you just ask the customer politely to log off.)
3) Trying to bring a database online/offline, and it gets stuck.
4) The database Auto-Close setting got set to true or on.
5) Database Attach/Backup/Restore jobs which get stuck.

There are probably many ways to do this, but I found this to be the simplest to understand:

1) Make sure you’re logged in with an account that has SQL Server Administrator privileges using SQL Server Management Studio.
2) Open a New Query window and type in the following replacing DatabaseName with the name of the database.

USE MASTER
GO

SELECT DB_ID(N'DatabaseName') AS [Database ID]

3) It should return a number in the Results windows.

DatabaseID Results Window

4) Enter the next set of T-SQL commands in the same or new window replacing # with the Database ID number from the Results window.  If you are doing this in the same window, remember to highlight only the following code and then hit F5 or the Execute button so that you will not be executing other T-SQL statements.

USE MASTER
GO

SELECT * FROM SYSPROCESSES WHERE DBID = #

5) You should get a set of results like the one below.

SPIDs

6. To kill the process, look at the spid number and type in the following in the Query window replacing SPID# with the actual number.

KILL SPID#

For open transactions, if the number is greater than 0, then that most likely is the process that is causing the problem, and you can just kill that one.  Familiarize yourself with the column names and their meanings as they will help you identify which processes you should be removing.  Sometimes, I’ve had to clear all the processes associated with the database so that I could execute other commands to perform maintenance on it.  As with anything, use the kill command with great caution and care as you don’t want to be killing system related processes that could crash the SQL Server engine or cause corruption to your databases.

Ajax Control Toolkit Not Working?

Hopefully this will save me or someone else hours of frustration in the future.  As I was trying to design a new web page today, I found out I couldn’t drag any of the controls from the Toolbox to the editor in my new project in Visual Studio.  Scratching my head, I scoured the web for answers, and ultimately decided to re-install it according to the instructions found on Microsoft’s AJAX site.  It worked, and then I realized what the problem might have been.  I had performed one of those automatic Visual Studio updates to update the Ajax Control Toolkit or had re-installed a newer version sometime.  It might have been trying to reference the assembly of an older version, or it couldn’t access the .dll which was stored in another project.  But now, you at least have a possible solution to your problem if you are experiencing the same thing!