Question : MySQL to MS SQL Syntax

Hello,

I have a script that was generated from a MySQL DB, however I need to convert it to work with MS SQL.  Below is a snippet from the syntax, please convert into correct syntax that will work with MS SQL.

Code:

--
-- Table structure for table `recipes`.`categories`
--
DROP TABLE IF EXISTS `recipes`.`recipe_categories`;

CREATE TABLE `recipes`.`categories` (
  `id` int(4) NOT NULL AUTO_INCREMENT,
  `category` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;


--
-- Table structure for table `recipes`.`recipes`
--
DROP TABLE IF EXISTS `recipes`.`recipes`;
CREATE TABLE `recipes`.`recipes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category` int(11) DEFAULT NULL,
  `rec_title` text NOT NULL,
  `rec_desc` text NOT NULL,
  `rec_comments` text DEFAULT NULL,
  PRIMARY KEY  (`id`),
  KEY `category` (`category`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;


INSERT INTO `recipes`.`categories` VALUES(1, 'Appetizers');
INSERT INTO `recipes`.`recipes` VALUES(1, 1, 'Chicken-Liver Pate', '2/3 c Half&half \n1 sm Onion, chopped \n1 lb Chicken livers \n1/4 c Flour \n1 t Salt \n-dash hot pepper sauce 2 T Butter \n1 Clove garlic, minced \n2 Eggs \n2 T Brandy \n1/2 t Each, sage & thyme \n-Chopped fresh parsley Grease well and lightly flour five 6-oz metal juice cans; set aside. In food processor or blender, whirl half&half, butter, onion and garlic until onion is chopped fine. Add livers, eggs, flour, brandy, salt, sage, thyme and pepper sauce. Whirl until smooth and well blended. Pour mixture into cans to within 1 inch from top. Place cans in a 10-inch angel-food pan. Add 2 inches hot water to pan. Place on bottom rack in preheated 350 degree \noven. Bake 1 hour or until pick inserted in certer comes out clean. Remove cans to rack to cool 30 minutes. with can opened cut around bottoms of cans and push bottoms through to unmold pates. Chill completely. Then roll in chopped parsley, wrap in plastic and again in foil. Can be refrigerated up to 1 week or frozen 3 weeks. ', '');


Answer : MySQL to MS SQL Syntax

No Proxy, tried the winsock reset, turned off firewall, removed card, nothing,
I had to reinstall.   Thanks for the comments.
Random Solutions  
 
programming4us programming4us