Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 359759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:25:27+00:00 2026-05-12T12:25:27+00:00

i have about 8mb of sql code i need to run. it looks like

  • 0

i have about 8mb of sql code i need to run. it looks like this:

/*
MySQL Data Transfer
Source Host: 10.0.0.5
Source Database: jnetdata
Target Host: 10.0.0.5
Target Database: jnetdata
Date: 5/26/2009 12:27:33 PM
*/

SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for chavrusas
-- ----------------------------
CREATE TABLE `chavrusas` (
  `id` int(11) NOT NULL auto_increment,
  `date_created` datetime default NULL,
  `luser_id` int(11) default NULL,
  `ruser_id` int(11) default NULL,
  `luser_type` varchar(50) default NULL,
  `ruser_type` varchar(50) default NULL,
  `SessionDay` varchar(250) default NULL,
  `SessionTime` datetime default NULL,
  `WeeklyReminder` tinyint(1) NOT NULL default '0',
  `reminder_phone` tinyint(1) NOT NULL default '0',
  `calling_card` varchar(50) default NULL,
  `active` tinyint(1) NOT NULL default '0',
  `notes` mediumtext,
  `ended` tinyint(1) NOT NULL default '0',
  `end_date` datetime default NULL,
  `initiated_by_student` tinyint(1) NOT NULL default '0',
  `initiated_by_volunteer` tinyint(1) NOT NULL default '0',
  `student_general_reason` varchar(50) default NULL,
  `volunteer_general_reason` varchar(50) default NULL,
  `student_reason` varchar(250) default NULL,
  `volunteer_reason` varchar(250) default NULL,
  `student_nli` tinyint(1) NOT NULL default '0',
  `volunteer_nli` tinyint(1) NOT NULL default '0',
  `jnet_initiated` tinyint(1) default '0',
  `belongs_to` varchar(50) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5913 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for tbluseravailability
-- ----------------------------
CREATE TABLE `tbluseravailability` (
  `availability_id` int(11) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL,
  `weekday_id` int(11) NOT NULL,
  `timeslot_id` int(11) NOT NULL,
  PRIMARY KEY  (`availability_id`)
) ENGINE=MyISAM AUTO_INCREMENT=10865 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for tblusers
-- ----------------------------
CREATE TABLE `tblusers` (
  `id` int(11) NOT NULL auto_increment,
  `

etc

how do i run it on microsoft sql 2008?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:25:28+00:00Added an answer on May 12, 2026 at 12:25 pm
    1. Run a tool to automatically convert MySQL sentences to T-SQL,
    2. Intensive use of Find&Replace can make the work too. As an example:
        CREATE TABLE `chavrusas` (
        `id` int(11) NOT NULL auto_increment,
        `date_created` datetime default NULL,
        `luser_id` int(11) default NULL,
        `ruser_id` int(11) default NULL,
        `luser_type` varchar(50) default NULL,
        `ruser_type` varchar(50) default NULL,
        `SessionDay` varchar(250) default NULL,
        `SessionTime` datetime default NULL,
        `WeeklyReminder` tinyint(1) NOT NULL default '0',
        `reminder_phone` tinyint(1) NOT NULL default '0',
        `calling_card` varchar(50) default NULL,
        `active` tinyint(1) NOT NULL default '0',
        `notes` mediumtext,
        `ended` tinyint(1) NOT NULL default '0',
        `end_date` datetime default NULL,
        `initiated_by_student` tinyint(1) NOT NULL default '0',
        `initiated_by_volunteer` tinyint(1) NOT NULL default '0',
        `student_general_reason` varchar(50) default NULL,
        `volunteer_general_reason` varchar(50) default NULL,
        `student_reason` varchar(250) default NULL,
        `volunteer_reason` varchar(250) default NULL,
        `student_nli` tinyint(1) NOT NULL default '0',
        `volunteer_nli` tinyint(1) NOT NULL default '0',
        `jnet_initiated` tinyint(1) default '0',
        `belongs_to` varchar(50) default NULL,
        PRIMARY KEY  (`id`)
        ) ENGINE=MyISAM AUTO_INCREMENT=5913 DEFAULT CHARSET=latin1;
    

    Find: \s`
    Replace with [

    Find: `\s
    Replace with: ]

    Find: PRIMARY KEY (id)
    Replace with: CONSTRAINT PK_[SOME IDENTIFIER] PRIMARY KEY ([$1])

    Find: ENGINE=MyISAM AUTO_INCREMENT=5913 DEFAULT CHARSET=latin1;
    Replace with: ;

    a few more Find&Replace and you’ll get this script, T-SQL compliant:

    CREATE TABLE [chavrusas] (
    [id] INT IDENTITY(1,1) NOT NULL ,
    [date_created] datetime  NULL,
    [luser_id] INT NULL,
    [ruser_id] INT NULL,
    [luser_type] varchar(50)  NULL,
    [ruser_type] varchar(50)  NULL,
    [SessionDay] varchar(250)  NULL,
    [SessionTime] datetime  NULL,
    [WeeklyReminder] INT NOT NULL,
    [reminder_phone] INT NOT NULL,
    [calling_card] varchar(50)  NULL,
    [active] INT NOT NULL,
    [notes] TEXT,
    [ended] INT NOT NULL,
    [end_date] datetime  NULL,
    [initiated_by_student] INT NOT NULL,
    [initiated_by_volunteer] INT NOT NULL,
    [student_general_reason] varchar(50)  NULL,
    [volunteer_general_reason] varchar(50)  NULL,
    [student_reason] varchar(250)  NULL,
    [volunteer_reason] varchar(250)  NULL,
    [student_nli] INT NOT NULL,
    [vvolunteer_nli] INT NOT NULL,
    [jnet_initiated] INT,
    [belongs_to] varchar(50)  NULL,
    CONSTRAINT PK_chavrusas PRIMARY KEY ([id])
    ) 

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have about 8mb of sql code i need to run. it looks like
I have about 50 or so records in a table, I need a sql
I have about 150 000 rows of data written to a database everyday. These
I have about 10million values that I need to put in some type of
I have about 2000 lines of javascript code for my application. A lot of
I have about 100 elements in like and am trying to create an animation
We have a dedicated MySQL server, with about 2000 small databases on it. (It's
I have about 2200 different files in a few different folders, and I need
I have about 5000 markers I need to render on Google Map. I'm currently
I have about 20-ish high quality images (~3840x5800 px) that I need to load

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.