Acerca de Linux, BSD y notas personales

Archives for September, 2007

SQL Server y Visual Studio 2005

Problema de instalación Windows Clean Utility

ALTER TABLE ORDERS FOREIGN KEY

MySQL:
CREATE TABLE ORDERS
(Order_ID integer,
Order_Date date,
Customer_SID integer,
Amount double,
Primary Key (Order_ID),
Foreign Key (Customer_SID) references CUSTOMER(SID));

Oracle:
CREATE TABLE ORDERS
(Order_ID integer primary key,
Order_Date date,
Customer_SID integer references CUSTOMER(SID),
Amount double);

SQL Server:
CREATE TABLE ORDERS
(Order_ID integer primary key,
Order_Date datetime,
Customer_SID integer references CUSTOMER(SID),
Amount double);

Below are examples for specifying a foreign key by altering a table. This assumes that the ORDERS table has been created, and the foreign key has not yet been put in:

MySQL:
ALTER TABLE ORDERS
ADD FOREIGN KEY (customer_sid) REFERENCES CUSTOMER(SID);

Oracle:
ALTER TABLE ORDERS
ADD (CONSTRAINT fk_orders1) FOREIGN KEY (customer_sid) REFERENCES CUSTOMER(SID);

SQL Server:
ALTER TABLE ORDERS
ADD FOREIGN KEY (customer_sid) REFERENCES CUSTOMER(SID);

MySQL migration: MyISAM to InnoDB

 

By Keith Winston on July 18, 2005 (8:00:00 AM)

The MySQL database is unique in that it offers multiple storage engines. The SQL parser and front end interfaces are separate from the storage engines, so you can choose among nine low-level table formats the one that suits your application best. I recently needed to convert a production application from the default indexed sequential format, MyISAM, to InnoDB. Here’s my no-hassle guide to performing the conversion.

Read more… »

What is referential integrity?

 

Simply put, referential integrity means that when a record in a table refers to a corresponding record in another table, that corresponding record will exist. Look at the following:

Read more… »

terminal services

http://i-admin.blogspot.com/2005/06/how-to-crack-windows-terminal-services.html

Backup - Restore SQL 2005

T-SQL code

BACKUP:

USE myDatabaseName

GO

BACKUP DATABASE myDatabaseName
TO DISK = ‘C:\filePath\myDatabaseName.bak’
NAME = ‘The name of the back up.’

 

RESTORE:

RESTORE databaseName

FROM DISK = ‘C:\filePath\backupFilename’

RDP Remote Enable Utility

<download>

This Utility will enable Remote Desktop connections on remote servers. UPDATE!! now it will also change the port number that RDP listens on. This is good to add a layer of security in.

If you find this tool useful please think about a donation using the link below.

File Attachment: RDPEnable.zip (597 KB)

Read more… »

Horan

DSC00104

Bond Kismet

Ssc2005-26b_small

 15 de sep

Heres a recap for everyone to Install HP LaserJet 1020 on Mac OSX. 1)

Download; http://www.narc.ca/1601-LJ_1022_Series_OSX.dmg (Old version)

2)If you have anything for the HP 1020 in “/Library/Reciepts” delete it.

3) Delete anything for the HP 1020 in Printer in “Printer Setup Utility”

4) Add new printer in “Printer Setup Utility”, select HP LaserJet 1020, driver should come up, click ADD Then you should be able to print.. glad we finally got around this one.. and one big FU to HP.

descarga driver 1020