Wednesday, April 14, 2010

Move MS SQL to MySQL

Transferring databases? A great way to do this is through the easy to use simple program MSSQL to MySQL. Using the trial version I successfully transferred the ITAssets database from MS SQL 2005 to MySQL.

Once you've downloaded and installed the program it is easy to use. The following screen shots display the steps used to move the ITAssets database.








Note: When using the trial version only 5 records will be moved.
http://www.convert-in.com/mss2sql.htm

Thursday, March 4, 2010

Using Icon Sets in Excel

To create a table that displays a colored object rather than a value follow these steps:
  1. Create a table.
  2. If your table will be a yes or no then use either a zero or one as the value.
  3. Select all values (zeros and ones).
  4. Click on Conditional Formatting in the Home tab.
  5. Move your cursor over Icon Sets and then select an Icon type.
  6. To have only the icon displayed, click on Conditional Formatting in the Home tab
  7. Click on Manage Rules.
  8. Click on Edit Rules
  9. Select the Show Icon Only check box in the lower right of the form.
Watch this video to see how it's done.

Monday, March 1, 2010

QuickBooks: Using Account Numbers

By default on QuickBooks the account numbers option is disabled. You may have been saying, "help, I can't enter the account number." If you are an effective bookkeeper or accountant you need to label your accounts by number.
Here is how to turn on this option.

First, on the menu strip go to the Edit tab and select Preferences.Next, click on the Accounting tab in the right pane. Select the Company Preferences tab in the center pane. Check the Use account numbers check box.
Finally, you can enter an account number for each account.

SQL Server 2005: Windows Authentication Mode

There are two authentication modes in SQL Server 2005 one is Mixed mode that allows all users from differing Operating Systems to gain access by requiring a user name and password, separate from those given to gain network access. Windows Authentication mode allows only Windows based Operating Systems to gain access. It is claimed to be much more secure because users in this case would not need a separate user name and password from their network credentials and they would not have the opportunity to write their credentials on a sticking note that they keep under their keyboard.

According to Susan Sales Harkins and Mike Gunderloy article SQL Server: Design for security from the start,
published by TechRepublic, recommend using Windows Autehntication mode when possible.
They state that, "Windows Authentication is integrated with the Windows security system, which provides more
features than SQL Server Authentication and is generally easier to use, more efficient, and more secure"
(2003, Harkins & Gunderloy)

Works Cited:
S. Harkins & M. Gunderloy. (2003). SQL Server: Design for security from the start. TechRepublic. Retrieved on March 01, 2010 from http://articles.techrepublic.com.com/5100-10878_11-5035150.html

Thursday, February 18, 2010

Auditing a Shared Folder

Windows 7 and Server 2008 both have the feature to audit File Share. As stated by Microsoft, "This security policy setting determines whether the operating system generates audit events when a file share is accessed." We will be using this feature as other Systems Administrators do to detect if there has been intrusion. Remember that to stop the intrusion, effective firewalls are necessary.
Follow these steps to use Audit File Share:
  1. Open Local Security Policy by clicking the Start button, typing secpol.msc into the search box, and then clicking secpol.If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

  2. In the left pane, expand the Advanced Audit Policy Configuration folder. Expand System Audit Policies - Local Group. Double-click on Object Access.

  3. In the right pane double-click on Audit File Share.

  4. In the Audit File Share Properties window select the Configure the following events: check box. Then select the Success check box and the Failure check box to audit both successful and unsuccessful attempts to access a shared folder. Then click OK.
Source: http://technet.microsoft.com/en-us/library/dd772690%28WS.10%29.aspx

Friday, February 5, 2010

WAMP: MySQL



The debate was between whether or not MySQL when installed from WAMP would work on Server 2003 with SQL Server 2005 installed. The concern was that with the IIS already running that Apache would have a conflict. I installed WAMP. The WAMP notification icon was yellow indicating that one service was running. When I tried to start all services I received an error.
I was able to access MySQL, create add records to a table I created in a database I created.

Follow these instructions modifying names with your own.

Click on the MySQL console in WAMP Server.
When promted for a password hit enter (password is blank).
To Create a Database
type:
CREATE DATABASE database_name

To create a Table
type:
USE database_name; Create Table table_name (column_one text NOT NULL, column_two text NOT NULL, column_ID int(5) NOT NULL default '0' , PRIMARY KEY (column_ID) ) TYPE=MyISAM;

To add records to the Table
type:
USE database_name; Insert into table_name (column_one, column_two, column_ID) values ("value1", "value2", value3);

To display specific columns
type: USE database_name; Select column_one, column_two From table_name;

I learned how to create a database in MySQL from the MySQL Manual.
I learned how to create a table in MySQL from netadmintools.com.
I learned how to add records to a table from webdevelopersnotes.com

SQL Server 2005: Creating a View

Another day at work:
Let's say your boss wants to see orders with a line total less than $5. He is planning on writing up the Sales people who have made such orders. He just wants the line total.

Hint: The table used is sales.salesorderdetail.

In a New Query type:

USE AdventureWorks
Select
SalesOrderID, LineTotal

FROM
Sales.SalesOrderDetail

WHERE
LineTotal

Order by LineTotal

Execute and you will see two columns the SalesOrderID and the LineTotal. The Line Total will be ordered (sorted) least to greatest because of the "Order by" command.
If you want to know more about views see The Code Project article about Views.

Monday, February 1, 2010

Listing Files in Fedora


Fedora is a flavor of linux.
To list files in a specified directory use the ls command.

Option Description
-a Lists all filenames & --all
Lists all filenames

-A
Lists most filenames (excludes the . and .. special files)
--almost-all

-c
Lists filenames in column format

--color=n
Lists filenames without color

-d & --directory
Lists directory names instead of their contents

-f
Lists all filenames without sorting

see more ls command options

Friday, January 29, 2010

SQL Server 2005: Delete Table in Database

Using T-SQL statements, Microsoft's version of SQL (Standard Query Language).
To delete a table in a database let's use this example.
Database called Textbooks. Table called Publishers.
Type
Use Database Textbooks
Go
Drop TABLE Publishers



Among the great SQL resources of Books Online, Microsoft support, MSDN Online, Codezone, and Technet; SQLAuthority.com is useful.

If you've had an error attempting to delete tables, but receiving the message that the database "is currently in use."
See http://blog.sqlauthority.com/2007/12/07/sql-server-fix-error-3702-cannot-drop-database-because-it-is-currently-in-use/

Friday, January 1, 2010

System's Request

When submitting your system's request ensure that you've included all the variables including ROI and Initial Cost. Make sure to also explain how beneficial this new system will be.

Dilbert.com

For example, it is amazing how certain banks and credit unions have leapfrogged other competitors and left them in the dust. The technology and updates that have enabled members to access their accounts from a computer or phone has become more user friendly, increasing the utilization, and customer satisfaction.

Dilbert.com