如何在MAC OS X上运行基于SQL Server的数据库?

时间:2015-12-01 13:40:10

标签: sql-server xampp

USE [web]
GO
/****** Object:  Table [dbo].[academicDepartments]    Script Date: 11/30/2015 3:36:27 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[academicDepartments](
    [acdeptID] [varchar](50) NOT NULL,
    [deptName] [varchar](50) NOT NULL,
 CONSTRAINT [PK_academicDepartments] PRIMARY KEY CLUSTERED 
(
    [acdeptID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[achievements]    Script Date: 11/30/2015 3:36:27 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[achievements](
    [registrationNumber] [varchar](50) NOT NULL,
    [achievements] [varchar](1000) NOT NULL
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
GO

我的老师提供了一个由他在Microsoft SQL Server上制作的数据库。我不得不问你如何在MAC OS X(El-Capitan)上导入或运行XAMPP上的查询

1 个答案:

答案 0 :(得分:0)

Microsoft SQL Server不在MAC OS X上运行,它只在Windows上运行;你有两个选择:

  1. 在云中使用SQL Azure或
  2. 在MAX OS X上使用VirtualBox运行Windows的VM并安装SQL Server的评估版/ Express版。