Quantcast
Channel: SQL Server Express forum
Viewing all articles
Browse latest Browse all 3319

Errors on script while parsing

$
0
0

I create a sql database from sql 2008 and now am using sql 2014 and azure database .I generate script and try to parse it from azure database . but it shows error .i change the compatibility to 120 and generate script then be its shoing somany errors

these are the errors

Msg 102, Level 15, State 1, Line 3
Incorrect syntax near 'CONTAINMENT'.
Msg 102, Level 15, State 1, Line 9
Incorrect syntax near 'COMPATIBILITY_LEVEL'.
Msg 40511, Level 15, State 1, Line 11
Built-in function 'FULLTEXTSERVICEPROPERTY' is not supported in this version of SQL Server.
Msg 102, Level 15, State 1, Line 16
Incorrect syntax near 'ANSI_NULL_DEFAULT'.
Msg 102, Level 15, State 1, Line 18
Incorrect syntax near 'ANSI_NULLS'.
Msg 102, Level 15, State 1, Line 20
Incorrect syntax near 'ANSI_PADDING'.
Msg 102, Level 15, State 1, Line 22
Incorrect syntax near 'ANSI_WARNINGS'.
Msg 102, Level 15, State 1, Line 24
Incorrect syntax near 'ARITHABORT'.
Msg 102, Level 15, State 1, Line 26
Incorrect syntax near 'AUTO_CLOSE'.
Msg 102, Level 15, State 1, Line 28
Incorrect syntax near 'AUTO_SHRINK'.
Msg 102, Level 15, State 1, Line 30
Incorrect syntax near 'AUTO_UPDATE_STATISTICS'.
Msg 102, Level 15, State 1, Line 32
Incorrect syntax near 'CURSOR_CLOSE_ON_COMMIT'.
Msg 102, Level 15, State 1, Line 34
Incorrect syntax near 'CURSOR_DEFAULT'.
Msg 102, Level 15, State 1, Line 36
Incorrect syntax near 'CONCAT_NULL_YIELDS_NULL'.
Msg 102, Level 15, State 1, Line 38
Incorrect syntax near 'NUMERIC_ROUNDABORT'.
Msg 102, Level 15, State 1, Line 40
Incorrect syntax near 'QUOTED_IDENTIFIER'.
Msg 102, Level 15, State 1, Line 44
Incorrect syntax near 'DISABLE_BROKER'.
Msg 102, Level 15, State 1, Line 46
Incorrect syntax near 'AUTO_UPDATE_STATISTICS_ASYNC'.
Msg 102, Level 15, State 1, Line 48
Incorrect syntax near 'DATE_CORRELATION_OPTIMIZATION'.
Msg 102, Level 15, State 1, Line 50
Incorrect syntax near 'TRUSTWORTHY'.
Msg 102, Level 15, State 1, Line 52
Incorrect syntax near 'ALLOW_SNAPSHOT_ISOLATION'.
Msg 102, Level 15, State 1, Line 54
Incorrect syntax near 'PARAMETERIZATION'.
Msg 102, Level 15, State 1, Line 56
Incorrect syntax near 'READ_COMMITTED_SNAPSHOT'.
Msg 102, Level 15, State 1, Line 58
Incorrect syntax near 'HONOR_BROKER_PRIORITY'.
Msg 102, Level 15, State 1, Line 60
Incorrect syntax near 'RECOVERY'.
Msg 102, Level 15, State 1, Line 62
Incorrect syntax near 'MULTI_USER'.
Msg 102, Level 15, State 1, Line 64
Incorrect syntax near 'PAGE_VERIFY'.
Msg 102, Level 15, State 1, Line 66
Incorrect syntax near 'DB_CHAINING'.
Msg 102, Level 15, State 1, Line 68
Incorrect syntax near 'FILESTREAM'.
Msg 102, Level 15, State 1, Line 70
Incorrect syntax near 'TARGET_RECOVERY_TIME'.
Msg 102, Level 15, State 1, Line 72
Incorrect syntax near 'DELAYED_DURABILITY'.
Msg 102, Level 15, State 1, Line 102
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 138
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 167
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 187
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 198
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 215
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 241
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 260
Incorrect syntax near 'TEXTIMAGE_'.

 my scripts is 

CREATE DATABASE [doctorX27]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N'doctorX27', FILENAME = N'D:\DOCTORJOB\new doctor24x7\new doctor24x7\Database\doctorX27.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'doctorX27_log', FILENAME = N'D:\DOCTORJOB\new doctor24x7\new doctor24x7\Database\doctorX27_log.ldf' , SIZE = 3456KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [doctorX27] SET COMPATIBILITY_LEVEL = 120
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [doctorX27].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [doctorX27] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [doctorX27] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [doctorX27] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [doctorX27] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [doctorX27] SET ARITHABORT OFF 
GO
ALTER DATABASE [doctorX27] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [doctorX27] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [doctorX27] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [doctorX27] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [doctorX27] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [doctorX27] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [doctorX27] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [doctorX27] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [doctorX27] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [doctorX27] SET  DISABLE_BROKER 
GO
ALTER DATABASE [doctorX27] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [doctorX27] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [doctorX27] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [doctorX27] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [doctorX27] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [doctorX27] SET READ_COMMITTED_SNAPSHOT OFF 
GO
ALTER DATABASE [doctorX27] SET HONOR_BROKER_PRIORITY OFF 
GO
ALTER DATABASE [doctorX27] SET RECOVERY SIMPLE 
GO
ALTER DATABASE [doctorX27] SET  MULTI_USER 
GO
ALTER DATABASE [doctorX27] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [doctorX27] SET DB_CHAINING OFF 
GO
ALTER DATABASE [doctorX27] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO
ALTER DATABASE [doctorX27] SET TARGET_RECOVERY_TIME = 0 SECONDS 
GO
ALTER DATABASE [doctorX27] SET DELAYED_DURABILITY = DISABLED 

PRIMARY KEY CLUSTERED 
(
[AID] ASC
) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) 
)  TEXTIMAGE_


Viewing all articles
Browse latest Browse all 3319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>