Click here to Skip to main content
15,918,617 members
Home / Discussions / Database
   

Database

 
GeneralRe: DB_E_DATAFIELD_OVERFLOW Error Pin
Gupta Suraj14-Mar-06 3:07
Gupta Suraj14-Mar-06 3:07 
GeneralRe: DB_E_DATAFIELD_OVERFLOW Error Pin
Gupta Suraj16-Mar-06 6:18
Gupta Suraj16-Mar-06 6:18 
QuestionCommitting a Stored Procedure Pin
NewbieDude13-Mar-06 22:47
NewbieDude13-Mar-06 22:47 
AnswerRe: Committing a Stored Procedure Pin
Colin Angus Mackay14-Mar-06 1:33
Colin Angus Mackay14-Mar-06 1:33 
QuestionVehicle's Database Pin
wEb GuRu...13-Mar-06 21:19
wEb GuRu...13-Mar-06 21:19 
AnswerRe: Vehicle's Database Pin
jonathan1513-Mar-06 22:44
jonathan1513-Mar-06 22:44 
GeneralRe: Vehicle's Database Pin
wEb GuRu...13-Mar-06 23:31
wEb GuRu...13-Mar-06 23:31 
Questionconverting mysql to sql server script Pin
uglyeyes13-Mar-06 21:05
uglyeyes13-Mar-06 21:05 
Hi All,

there are softwares that automatically converts mysql to sql server script. i have below script and i want to convert into sql server 2000 format so please help me change this script to sql server format.
many thanks in forward.

---------------------
-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 3.23.53-max-nt


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;


--
-- Remove the CREATE line below if you already have a database setup.
--
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ dating_db;


--
-- Change this to your database name.
--
USE dating_db;

--
-- Table structure for table `dating_db`.`abusereports`
--

DROP TABLE IF EXISTS `abusereports`;
CREATE TABLE `abusereports` (
`RecordID` int(10) unsigned NOT NULL auto_increment,
`RecordDate` timestamp(14) NOT NULL,
`AbuserID` int(10) unsigned NOT NULL default '0',
`ReporterID` int(10) unsigned NOT NULL default '0',
`ReporterComments` varchar(128) default '',
`AbuseTypeID` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`RecordID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`abusereports`
--

/*!40000 ALTER TABLE `abusereports` DISABLE KEYS */;
/*!40000 ALTER TABLE `abusereports` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`abusers`
--

DROP TABLE IF EXISTS `abusers`;
CREATE TABLE `abusers` (
`RecordID` int(10) unsigned NOT NULL auto_increment,
`SuspensionDate` datetime NOT NULL default '0000-00-00 00:00:00',
`DeletionDate` timestamp(14) NOT NULL,
`FlagTypeID` tinyint(4) NOT NULL default '0',
`AbuserUserName` varchar(16) NOT NULL default '',
`AbuserEmail` text NOT NULL,
PRIMARY KEY (`RecordID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`abusers`
--

/*!40000 ALTER TABLE `abusers` DISABLE KEYS */;
/*!40000 ALTER TABLE `abusers` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`abusetypes`
--

DROP TABLE IF EXISTS `abusetypes`;
CREATE TABLE `abusetypes` (
`AbuseTypeID` tinyint(3) unsigned NOT NULL auto_increment,
`AbuseTypeName` tinytext NOT NULL,
PRIMARY KEY (`AbuseTypeID`)
) TYPE=MyISAM COMMENT='static';

--
-- Dumping data for table `dating_db`.`abusetypes`
--

/*!40000 ALTER TABLE `abusetypes` DISABLE KEYS */;
INSERT INTO `abusetypes` (`AbuseTypeID`,`AbuseTypeName`) VALUES
(1,'Profile contains nudity'),
(2,'Profile includes a picture of a minor'),
(3,'Profile contains copyrighted material'),
(4,'Profile contains spam'),
(5,'Profile contains racist or hateful words'),
(6,'Other (please comment)');
/*!40000 ALTER TABLE `abusetypes` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`bodytypes`
--

DROP TABLE IF EXISTS `bodytypes`;
CREATE TABLE `bodytypes` (
`BodyTypeID` tinyint(3) unsigned NOT NULL auto_increment,
`BodyTypeName` tinytext NOT NULL,
PRIMARY KEY (`BodyTypeID`)
) TYPE=MyISAM COMMENT='static';

--
-- Dumping data for table `dating_db`.`bodytypes`
--

/*!40000 ALTER TABLE `bodytypes` DISABLE KEYS */;
INSERT INTO `bodytypes` (`BodyTypeID`,`BodyTypeName`) VALUES
(1,'average'),
(2,'slim/slender'),
(3,'athletic'),
(4,'thick'),
(5,'a little extra padding'),
(6,'large');
/*!40000 ALTER TABLE `bodytypes` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`databaseerrors`
--

DROP TABLE IF EXISTS `databaseerrors`;
CREATE TABLE `databaseerrors` (
`ErrorID` smallint(5) unsigned NOT NULL auto_increment,
`ErrorDate` datetime NOT NULL default '0000-00-00 00:00:00',
`SqlStatement` text NOT NULL,
`Exception` text NOT NULL,
`PageName` tinytext NOT NULL,
PRIMARY KEY (`ErrorID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`databaseerrors`
--

/*!40000 ALTER TABLE `databaseerrors` DISABLE KEYS */;
/*!40000 ALTER TABLE `databaseerrors` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`emailerrors`
--

DROP TABLE IF EXISTS `emailerrors`;
CREATE TABLE `emailerrors` (
`EmailErrorID` int(11) NOT NULL auto_increment,
`FromEmail` text NOT NULL,
`ToEmail` text NOT NULL,
`Subject` varchar(128) NOT NULL default '',
`Body` text NOT NULL,
`ErrorDate` timestamp(14) NOT NULL,
`ExceptionError` text,
PRIMARY KEY (`EmailErrorID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`emailerrors`
--

/*!40000 ALTER TABLE `emailerrors` DISABLE KEYS */;
/*!40000 ALTER TABLE `emailerrors` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`ethnicities`
--

DROP TABLE IF EXISTS `ethnicities`;
CREATE TABLE `ethnicities` (
`EthnicID` tinyint(4) NOT NULL auto_increment,
`EthnicName` varchar(50) NOT NULL default '',
PRIMARY KEY (`EthnicID`)
) TYPE=MyISAM COMMENT='static';

--
-- Dumping data for table `dating_db`.`ethnicities`
--

/*!40000 ALTER TABLE `ethnicities` DISABLE KEYS */;
INSERT INTO `ethnicities` (`EthnicID`,`EthnicName`) VALUES
(1,'asian'),
(2,'black / african'),
(3,'hispanic / latino'),
(4,'indian / south asian'),
(5,'middle eastern / arab'),
(6,'native american'),
(7,'pacific islander'),
(8,'white / caucasian'),
(9,'mixed'),
(10,'other');
/*!40000 ALTER TABLE `ethnicities` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`favorites`
--

DROP TABLE IF EXISTS `favorites`;
CREATE TABLE `favorites` (
`RecordID` int(10) unsigned NOT NULL auto_increment,
`ProfileID` int(10) unsigned NOT NULL default '0',
`FavoriteID` int(10) unsigned NOT NULL default '0',
`MutualFavorite` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`RecordID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`favorites`
--

/*!40000 ALTER TABLE `favorites` DISABLE KEYS */;
/*!40000 ALTER TABLE `favorites` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`genders`
--

DROP TABLE IF EXISTS `genders`;
CREATE TABLE `genders` (
`GenderID` tinyint(3) unsigned NOT NULL auto_increment,
`GenderName` tinytext NOT NULL,
PRIMARY KEY (`GenderID`)
) TYPE=MyISAM COMMENT='static';

--
-- Dumping data for table `dating_db`.`genders`
--

/*!40000 ALTER TABLE `genders` DISABLE KEYS */;
INSERT INTO `genders` (`GenderID`,`GenderName`) VALUES
(1,'female'),
(2,'male'),
(3,'transgender(ftm)'),
(4,'transgender(mtf)');
/*!40000 ALTER TABLE `genders` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`messageblocks`
--

DROP TABLE IF EXISTS `messageblocks`;
CREATE TABLE `messageblocks` (
`RecordID` int(10) unsigned NOT NULL auto_increment,
`ProfileID` int(10) unsigned NOT NULL default '0',
`BlockID` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`RecordID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`messageblocks`
--

/*!40000 ALTER TABLE `messageblocks` DISABLE KEYS */;
/*!40000 ALTER TABLE `messageblocks` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`messages`
--

DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`MessageID` int(10) unsigned NOT NULL auto_increment,
`MessageDate` datetime NOT NULL default '0000-00-00 00:00:00',
`SenderID` int(10) unsigned NOT NULL default '0',
`RecipientID` int(10) unsigned NOT NULL default '0',
`Subject` varchar(128) default '',
`Body` text NOT NULL,
`MessageRead` tinyint(1) default '0',
`DeletedByRecipient` tinyint(1) default '0',
`DeletedBySender` tinyint(1) default '0',
PRIMARY KEY (`MessageID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`messages`
--

/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `messages` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`neighborhoods`
--

DROP TABLE IF EXISTS `neighborhoods`;
CREATE TABLE `neighborhoods` (
`NeighborhoodID` tinyint(3) unsigned NOT NULL auto_increment,
`NeighborhoodName` tinytext NOT NULL,
PRIMARY KEY (`NeighborhoodID`)
) TYPE=MyISAM COMMENT='static';

--
-- Dumping data for table `dating_db`.`neighborhoods`
--

/*!40000 ALTER TABLE `neighborhoods` DISABLE KEYS */;
INSERT INTO `neighborhoods` (`NeighborhoodID`,`NeighborhoodName`) VALUES
(1,'bayview / hunter\'s point'),
(2,'bernal heights'),
(3,'castro / eureka valley'),
(4,'chinatown'),
(5,'cole valley'),
(6,'excelsior / outer mission'),
(7,'financial district'),
(8,'glen park'),
(9,'haight ashbury'),
(10,'hayes valley'),
(11,'ingleside / merced / ocean view (SFSU,CCSF)'),
(12,'inner richmond'),
(13,'inner sunset / parnassus heights (UCSF)'),
(14,'laurel heights / presidio'),
(15,'lower haight / fillmore'),
(16,'marina / cow hollow'),
(17,'mission district'),
(18,'nob hill'),
(19,'noe valley'),
(20,'north beach / telegraph hill'),
(21,'pacific heights'),
(22,'panhandle (USF)'),
(23,'potrero hill / dogpatch'),
(24,'richmond / seacliff'),
(25,'russian hill'),
(26,'soma / south beach / mission bay'),
(27,'sunset / parkside'),
(28,'tenderloin / civic center'),
(29,'tendernob'),
(30,'twin peaks / diamond heights'),
(31,'visitacion valley / sunnydale / portola'),
(32,'west portal / st. francis wood / forest hill'),
(33,'western addition / japantown');
INSERT INTO `neighborhoods` (`NeighborhoodID`,`NeighborhoodName`) VALUES
(34,'East Bay'),
(35,'North Bay'),
(36,'Peninsula'),
(37,'South Bay');
/*!40000 ALTER TABLE `neighborhoods` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`photos`
--

DROP TABLE IF EXISTS `photos`;
CREATE TABLE `photos` (
`PhotoID` int(10) unsigned NOT NULL auto_increment,
`ProfileID` int(10) unsigned NOT NULL default '0',
`PhotoFilename` varchar(40) NOT NULL default '',
`Caption` varchar(255) default NULL,
PRIMARY KEY (`PhotoID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`photos`
--

/*!40000 ALTER TABLE `photos` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`profiles`
--

DROP TABLE IF EXISTS `profiles`;
CREATE TABLE `profiles` (
`ProfileID` int(10) unsigned NOT NULL auto_increment,
`UserName` varchar(16) NOT NULL default '',
`Password` varchar(32) NOT NULL default '',
`Email` text NOT NULL,
`GenderID` tinyint(3) NOT NULL default '0',
`Age` tinyint(3) NOT NULL default '0',
`SexualOrientationID` tinyint(3) default '0',
`SignID` tinyint(3) default '0',
`Height` tinyint(3) default '0',
`BodyTypeID` tinyint(3) default '0',
`EthnicID` tinyint(4) default '0',
`NeighborhoodID` tinyint(3) default '0',
`AboutMe` text,
`WantActivityPartner` tinyint(1) default '0',
`WantFriend` tinyint(1) default '0',
`WantDate` tinyint(1) default '0',
`WantLTR` tinyint(1) default '0',
`ForwardMessages` tinyint(1) default '0',
`ImageName` varchar(40) default NULL,
`ImageCaption` varchar(255) default NULL,
`CreationDate` datetime default '0000-00-00 00:00:00',
`ModificationDate` datetime default '0000-00-00 00:00:00',
`LoginDate` datetime default '0000-00-00 00:00:00',
`ActivationCode` varchar(16) default '0',
`ProfileStatusID` tinyint(3) unsigned NOT NULL default '1',
PRIMARY KEY (`ProfileID`)
) TYPE=MyISAM;

--
-- Dumping data for table `dating_db`.`profiles`
--

/*!40000 ALTER TABLE `profiles` DISABLE KEYS */;
/*!40000 ALTER TABLE `profiles` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`profilestatuses`
--

DROP TABLE IF EXISTS `profilestatuses`;
CREATE TABLE `profilestatuses` (
`ProfileStatusID` tinyint(3) unsigned NOT NULL auto_increment,
`ProfileStatusName` tinytext NOT NULL,
PRIMARY KEY (`ProfileStatusID`)
) TYPE=MyISAM COMMENT='static';

--
-- Dumping data for table `dating_db`.`profilestatuses`
--

/*!40000 ALTER TABLE `profilestatuses` DISABLE KEYS */;
INSERT INTO `profilestatuses` (`ProfileStatusID`,`ProfileStatusName`) VALUES
(1,'pending activation'),
(2,'active'),
(3,'suspended'),
(4,'deleted');
/*!40000 ALTER TABLE `profilestatuses` ENABLE KEYS */;


--
-- Table structure for table `dating_db`.`sexualorientations`
--

DROP TABLE IF EXISTS `sexualorientations`;
CREATE TABLE `sexualorientations` (
`SexualOrientationID` tinyint(3) unsigned NOT NULL auto_increment,
`SexualOrientationName` tinytext NOT NULL,
PRIMARY KEY (`SexualOrientationID`)
) TYPE=MyISAM COMMENT='static';

--
-- Dumping data for table `dating_db`.`sexualorientations`
--

/*!40000 ALTER TABLE `sexualorientations` DISABLE KEYS */;
INSERT INTO `sexualorientations` (`SexualOrientationID`,`SexualOrientationName`) VALUES
(1,'straight'),
(2,'gay/lesbian'),
(3,'bisexual');
/*!40000 ALTER TABLE `sexualorientations` ENABLE KEYS */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

---------------------
robin
AnswerRe: converting mysql to sql server script Pin
mcljava24-Mar-06 9:28
mcljava24-Mar-06 9:28 
QuestionSQL Server 2005 and SQL Express Pin
Brendan Vogt13-Mar-06 21:02
Brendan Vogt13-Mar-06 21:02 
AnswerRe: SQL Server 2005 and SQL Express Pin
NewbieDude13-Mar-06 22:49
NewbieDude13-Mar-06 22:49 
GeneralRe: SQL Server 2005 and SQL Express Pin
NewbieDude14-Mar-06 0:49
NewbieDude14-Mar-06 0:49 
QuestionHow to edit data in gridview Pin
Enigma344013-Mar-06 19:39
Enigma344013-Mar-06 19:39 
AnswerRe: How to edit data in gridview Pin
albCode13-Mar-06 20:29
albCode13-Mar-06 20:29 
GeneralRe: How to edit data in gridview Pin
Enigma344013-Mar-06 21:59
Enigma344013-Mar-06 21:59 
GeneralRe: How to edit data in gridview Pin
albCode13-Mar-06 22:01
albCode13-Mar-06 22:01 
GeneralRe: How to edit data in gridview Pin
Enigma344014-Mar-06 1:20
Enigma344014-Mar-06 1:20 
GeneralRe: How to edit data in gridview Pin
albCode14-Mar-06 2:55
albCode14-Mar-06 2:55 
QuestionSP to Convert all DbTables to Excel sheet Pin
HimaBindu Vejella13-Mar-06 18:23
HimaBindu Vejella13-Mar-06 18:23 
AnswerRe: SP to Convert all DbTables to Excel sheet Pin
Vasudevan Deepak Kumar13-Mar-06 19:01
Vasudevan Deepak Kumar13-Mar-06 19:01 
GeneralRe: SP to Convert all DbTables to Excel sheet Pin
HimaBindu Vejella13-Mar-06 19:12
HimaBindu Vejella13-Mar-06 19:12 
GeneralRe: SP to Convert all DbTables to Excel sheet Pin
HimaBindu Vejella16-Mar-06 20:47
HimaBindu Vejella16-Mar-06 20:47 
AnswerRe: SP to Convert all DbTables to Excel sheet Pin
sathish s13-Mar-06 23:27
sathish s13-Mar-06 23:27 
QuestionOLE DB/JET and Excel - Reading Data, Error Handling Pin
mcljava13-Mar-06 9:47
mcljava13-Mar-06 9:47 
QuestionCheck if SQL Server is running through code Pin
theanton13-Mar-06 8:45
theanton13-Mar-06 8:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.