这个代码的数据库是那里出问题 (1 行受影响)
USE [Stock3]GO
/****** Object: Database [Stock3] Script Date: 05/24/2012 13:21:50 ******/
CREATE DATABASE [Stock3] ON PRIMARY
( NAME = N'Stock3', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\Stock3.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'Stock3_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\Stock3_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [Stock3].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [Stock3] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [Stock3] SET ANSI_NULLS OFF
GO
ALTER DATABASE [Stock3] SET ANSI_PADDING OFF
GO
ALTER DATABASE [Stock3] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [Stock3] SET ARITHABORT OFF
GO
ALTER DATABASE [Stock3] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [Stock3] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [Stock3] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [Stock3] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [Stock3] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [Stock3] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [Stock3] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [Stock3] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [Stock3] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [Stock3] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [Stock3] SET DISABLE_BROKER
GO
ALTER DATABASE [Stock3] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [Stock3] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [Stock3] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [Stock3] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [Stock3] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [Stock3] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [Stock3] SET READ_WRITE
GO
ALTER DATABASE [Stock3] SET RECOVERY FULL
GO
ALTER DATABASE [Stock3] SET MULTI_USER
GO
ALTER DATABASE [Stock3] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [Stock3] SET DB_CHAINING OFF
GO
EXEC sys.sp_db_vardecimal_storage_format N'Stock3', N'ON'
GO
USE [Stock3]
GO
/****** Object: Table [dbo].[ChinaFutures_StockInfo] Script Date: 05/24/2012 13:21:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ChinaFutures_StockInfo](
[FClassID] [varchar](10) NOT NULL,
[FStockName] [varchar](20) NULL,
[FLots] [int] NULL,
[FUnit] [varchar](10) NULL,
[FFeePerHand] [decimal](18, 2) NULL,
[FFeeRate] [decimal](18, 6) NULL,
[FMexID] [varchar](10) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
覆盖过去 刷新就这样大家帮我看看是那里出问题
消息 1801,级别 16,状态 3,第 2 行
数据库 'Stock3' 已存在。
消息 2812,级别 16,状态 62,第 1 行
找不到存储过程 'sys.sp_db_vardecimal_storage_format'。
消息 2714,级别 16,状态 6,第 1 行
数据库中已存在名为 'ChinaFutures_StockInfo' 的对象。
(1 行受影响)
(1 行受影响)
(1 行受影响) --------------------编程问答-------------------- 说明数据库已经有Stock3和'ChinaFutures_StockInfo'表了,但是没有sp_db_vardecimal_storage_format的存储过程,你自己好好检查下 --------------------编程问答-------------------- 有没有人能给我解决一下
可以请联系QQ:1124995581 --------------------编程问答-------------------- 这条语句时,成功的插入了一行数据,在这里你这里写多几行 --------------------编程问答-------------------- 纠结的啊
补充:.NET技术 , .NET技术前瞻