Cannot Create SP ( Error 2714 )
Sep 7, 2007
Hi, Trying to create a SP. But getting an error msg. Any ideas how to fix it? My SP gets the size of the tables in every DB.
Server: Msg 2714, Level 16, State 5, Procedure isp_allTableSize, Line 8
There is already an object named 'isp_allTableSize' in the database.
Server: Msg 208, Level 16, State 1, Line 18
Invalid object name 'master..TablesTemp'.
Server: Msg 208, Level 16, State 1, Line 63
Invalid object name 'master..TablesTemp'.
----------------------------------------------------------------------
-- TRUNCATE table TablesTemp
-- drop proc dbo.isp_allTableSize
CREATE PROC dbo.isp_allTableSize as
SET NOCOUNT ON
CREATE TABLE master.[dbo].[TablesTemp] (
[DatabaseName] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Rows] [char] (11) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Reserved] [varchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Data] [varchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[IndexSize] [varchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Unused] [varchar] (18) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
/*
-- SELECT COUNT (*) from master..DatabaseTables
DECLARE @date DATETIME
SELECT @date = DATEDIFF(mi, currentdate, GETDATE())
FROM master..databaseTables
IF (@date > 7)
BEGIN
TRUNCATE TABLE master..databaseTables
END
*/
DELETE master..databaseTables
WHERE DATEDIFF(DAY, currentdate, GETDATE()) > 7
DECLARE @db VARCHAR(60)
DECLARE @sql VARCHAR(8000)
DECLARE icr_getDatabases CURSOR FOR
SELECT top 1 name FROM master..sysdatabases where name <> 'tempdb'
OPEN icr_getDatabases
FETCH icr_getDatabases INTO @db
WHILE @@fetch_status = 0
BEGIN
SET @sql = 'USE [' + @db + ']
DECLARE @table_name VARCHAR(60)
DECLARE @cursor VARCHAR(8000)
DECLARE icr_getTables cursor for
SELECT table_name from information_schema.tables
WHERE table_type = ''base table''
AND table_schema = ''dbo''
AND table_name NOT LIKE ''dbo.%''
OPEN icr_getTables
FETCH NEXT FROM icr_getTables into @table_name
WHILE @@fetch_status = 0
BEGIN
INSERT master..TablesTemp
EXEC sp_spaceused @table_name
FETCH NEXT FROM icr_getTables INTO @table_name
END
CLOSE icr_getTables
DEALLOCATE icr_getTables'
EXEC (@sql)
FETCH NEXT FROM icr_getDatabases INTO @db
END
CLOSE icr_getDatabases
DEALLOCATE icr_getDatabases
INSERT master..DatabaseTables
SELECT *, GETDATE() FROM master..TablesTemp
-- TRUNCATE table DatabaseTables
-- SELECT * from master..DatabaseTables
DROP TABLE master..TablesTemp
=============================
http://www.sqlserverstudy.com
View 15 Replies
ADVERTISEMENT
Oct 2, 2007
Hello Everyone:
I am using the Import/Export wizard to import data from an ODBC data source. This can only be done from a query to specify the data to transfer.
When I try to create the tables, for the query, I am getting the following error:
Msg 2714, Level 16, State 4, Line 12
There is already an object named 'UserID' in the database.
Msg 1750, Level 16, State 0, Line 12
Could not create constraint. See previous errors.
I have duplicated this error with the following script:
USE [testing]
IF OBJECT_ID ('[testing].[dbo].[users1]', 'U') IS NOT NULL
DROP TABLE [testing].[dbo].[users1]
CREATE TABLE [testing].[dbo].[users1] (
[UserID] bigint NOT NULL,
[Name] nvarchar(25) NULL,
CONSTRAINT [UserID] PRIMARY KEY (UserID)
)
IF OBJECT_ID ('[testing].[dbo].[users2]', 'U') IS NOT NULL
DROP TABLE [testing].[dbo].[users2]
CREATE TABLE [testing].[dbo].[users2] (
[UserID] bigint NOT NULL,
[Name] nvarchar(25) NULL,
CONSTRAINT [UserID] PRIMARY KEY (UserID)
)
IF OBJECT_ID ('[testing].[dbo].[users3]', 'U') IS NOT NULL
DROP TABLE [testing].[dbo].[users3]
CREATE TABLE [testing].[dbo].[users3] (
[UserID] bigint NOT NULL,
[Name] nvarchar(25) NULL,
CONSTRAINT [UserID] PRIMARY KEY (UserID)
)
I have searched the "2714 duplicate error msg," but have found references to duplicate table names, rather than multiple field names or column name duplicate errors, within a database.
I think that the schema is only allowing a single UserID primary key.
How do I fix this?
TIA
View 4 Replies
View Related
Oct 1, 2007
Existing database (upgrade to SS2k5) has four tables with same primary key columns (UserID).
Using CREATE TABLE with a specified [databasename].[dbo].[table1] schema is giving the following error message:
Msg 2714, Level 16, State 4, Line 12
There is already an object named 'UserID' in the database.
Msg 1750, Level 16, State 0, Line 12
Could not create constraint. See previous errors.
I have duplicated the error with the following script:
USE [testing]
IF OBJECT_ID ('[testing].[dbo].[users1]', 'U') IS NOT NULL
DROP TABLE [testing].[dbo].[users1]
CREATE TABLE [testing].[dbo].[users1] (
[UserID] bigint NOT NULL,
[Name] nvarchar(25) NULL,
CONSTRAINT [UserID] PRIMARY KEY (UserID)
)
IF OBJECT_ID ('[testing].[dbo].[users2]', 'U') IS NOT NULL
DROP TABLE [testing].[dbo].[users2]
CREATE TABLE [testing].[dbo].[users2] (
[UserID] bigint NOT NULL,
[Name] nvarchar(25) NULL,
CONSTRAINT [UserID] PRIMARY KEY (UserID)
)
IF OBJECT_ID ('[testing].[dbo].[users3]', 'U') IS NOT NULL
DROP TABLE [testing].[dbo].[users3]
CREATE TABLE [testing].[dbo].[users3] (
[UserID] bigint NOT NULL,
[Name] nvarchar(25) NULL,
CONSTRAINT [UserID] PRIMARY KEY (UserID)
)
I have searched the "2714 duplicate error msg," but have found references to duplicate table names, rather than multiple field names or column name duplicate errors within a database.
I think that the schema is only allowing a single UserID primary key.
How do I fix this?
TIA
View 5 Replies
View Related
Mar 22, 2006
HI ,
This is a problem I encountered when I had to detach a database file (type .mdf):
1) I went to the MS SQL Management Server Studi and detached my database file successfully from a connection called Workhorse.
2) I needed to place the .mdf database file into a zip file in order to put it on a remote server. I did this using Shared Portal. This was also successful
3) However when I tried reattaching the database file, I got this error:
CREATE FILE encountered operating system error 5A(Access denied.) while attempting to open or create the physical file "CProgram FilesMSSQL ServerMSSQLData<databasename>.mdf'
Q) The database file and log file (ldf) exist in the correct directory so I don't know what happened. Can any one help?
Thanks much
Tonante
View 42 Replies
View Related
Oct 2, 2007
I am using SQL express and Visual web developer on windows Vista.
When I try to create a new database the following message appears.
CREATE DATABASE permission denied in database master (error 262)
I log on to my computer as an administrator.
Help appreciated
Prontonet
View 4 Replies
View Related
Nov 27, 2004
hi every one
when i want to create a stored procedure that contain character " with a ado component , i receive this error message :
'Parameter object is improperly defined. inconsistent or incomplete information was provided.'
but if i create this procedure from query analyzer , this sp creates successfuly.
whyyyyyyyyyyyyyyyy? :mad:
View 2 Replies
View Related
Oct 21, 2004
I have the following
CREATE TRIGGER dbo.tgrCacheCustomers
ON dbo.Customers
FOR INSERT, UPDATE, DELETE
AS
EXEC sp_makewebtask 'C:DependencyFile.txt','SELECT top 1 CustomerId FROM customers'
and I get the following error that I dont understand:
Error 21037: [SQL-DMO] The name specified in the Text property's 'CREATE ...' statement must match the Name property, and must be followed by valid TSQL statements.
Any ideas someone?
View 2 Replies
View Related
Mar 14, 2003
Dear All,
I was trying to create a table with many columns. However, I got the following error. Have anyone seen this error before?
>>>>>
Warning: The table 'PDMS_USER' has been created but its maximum row size (9118) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.
<<<<<
Thanks.
View 3 Replies
View Related
Dec 11, 2004
Hi
I've been looking at scripting some create tables, but want to know if the table created successfully. I've been doing the following:
DECLARE @ERRCODE INT
CREATE TABLE x
SET @ERRCODE = @@ERROR
This works ok, if there is no erroor. However if I run this again, then obviously I get the error "This object already exists" and the script stops executing.
Is there a way that I can capture the error using @@ERROR and still let the script run ?
Thanks in advance
Mickster
View 2 Replies
View Related
Feb 23, 2007
hi. i'm trying to create a stored procedure but it keeps messing up and i have absolutely no clue why. here is what i have:
CREATE PROCEDURE sp_OfficeReportStats AS
------------------------------------------------------------
--NEW CASE
------------------------------------------------------------
--NC2
CREATE TABLE TempWorkDB
(
ProsAtty SMALLINT, Stat INT
)
GO
INSERT INTO TempWorkDB (ProsAtty, Stat)
SELECT DefendantCase.ProsAtty, COUNT(DefendantCase.ProsAtty) AS CountOfProsAtty FROM DefendantCase LEFT JOIN DefendantEventPros ON DefendantCase.VBKey = DefendantEventPros.VBKey WHERE DefendantEventPros.EventID=2 AND DefendantEventPros.EventDate BETWEEN DATEADD(MONTH,-2,GETDATE()) AND GETDATE() GROUP BY DefendantCase.ProsAtty
GO
UPDATE OfficeReport SET NC2=TempWorkDB.Stat FROM TempWorkDB WHERE TempWorkDB.Prosatty=OfficeReport.ProsAtty
GO
UPDATE OfficeReport SET NC2=0 WHERE NC2 IS NULL
GO
DROP TABLE TempWorkDB
GO
this code works in query analyzer just fine but it says i have an error at TempWorkDB. I do not have a TempWorkDB in my database currently. Waht am I doing wrong? thanks for you help!
View 7 Replies
View Related
Dec 27, 2006
Hi,
I ran the following in the management studio:
CREATE ASSEMBLY MyCLRAssembly from 'c: empMyCLRAssembly.dll'
WITH PERMISSION_SET = SAFE
Go
For some reason I get the following error:
Msg 6517, Level 16, State 1, Line 1
Failed to create AppDomain 'AdventureWorks.dbo[ddl].22'.
I tried to google this error, but couldn't find it...
I would appreciate it if someone can tell me what I'm doing wrong.
Ohad.
View 3 Replies
View Related
Jan 29, 2007
I am trying to get the create script fot a function, but it's giving me the following , how can i get the script by overcoming this error.
error:===================================
Script failed for UserDefinedFunction 'dbo.test_decrypt_KEY'. (Microsoft.SqlServer.Smo)
------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Script+UserDefinedFunction&LinkId=20476
------------------------------
Program Location:
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(DependencyCollection depList, SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(Urn[] urns, SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Scripter.Script(Urn[] urns, SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Scripter.Script(Urn[] urns)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ScriptGenerator.ScriptCreate(Server server, Urn[] urns, SqlScriptOptions options)
at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ScriptMenuHelper.OnScriptToNewWindow(Object sender, EventArgs args)
===================================
Property TextHeader is not available for UserDefinedFunction '[dbo].[test_decrypt_KEY]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. The text is encrypted. (Microsoft.SqlServer.Smo)
View 9 Replies
View Related
Feb 19, 2007
Hi
Working with SQL Server 2005
I am trying to create a table with the following code
create table department
(dept_id smallint unsigned not null auto_increment,
name varchar(20) not null,
constraint pk_department primary key (dept_id)
)
but keep coming up with an error. I suspect that I am trying to use mysql (which I don't want to use!) instead of sql, but can't find the changes I need to make.
Thank you in advance
View 2 Replies
View Related
Jun 18, 2007
CREATE PROCEDURE dbo.spCreateObBabyEpisodeArchive AS
DECLARE @TableName as varchar(400)
DECLARE @SQL as varchar(8000)
SET @TableName = 'ObBabyEpisode' + CONVERT(varchar,REPLACE (CONVERT(VARCHAR, GETDATE(), 106) , ' ', ''))
SET @SQL = 'CREATE TABLE ' + @TableName + '
(
AdmitSource INT NOT NULL DEFAULT 0,
Anaesthesia3rdINT NOT NULL DEFAULT 0,
Anaesthetist3rdINT NOT NULL DEFAULT 0,
Apgar1INT NOT NULL DEFAULT 0,
Apgar10INT NOT NULL DEFAULT 99,
Apgar5INT NOT NULL DEFAULT 0,
ApgarOtherVARCHAR(20) NOT NULL DEFAULT '' '',
AttAccoucherVARCHAR(30) NOT NULL DEFAULT '' '',
AttAccoucherRankVARCHAR(30) NOT NULL DEFAULT '' '',
AttMidwifeVARCHAR(30) NOT NULL DEFAULT '' '',
AttMidwifeRankVARCHAR(30) NOT NULL DEFAULT '' '',
AttOthersVARCHAR(30) NOT NULL DEFAULT '' '',
AttOthersRankVARCHAR(30) NOT NULL DEFAULT '' '',
AugmentationVARCHAR(30) NOT NULL DEFAULT '' '',
BabyAdmitDrINT NOT NULL DEFAULT 0,
BabyDisDateVARCHAR(12) NOT NULL DEFAULT '' '',
BabyDisDestINT NOT NULL DEFAULT 0,
BabyDisFeedINT NOT NULL DEFAULT 0,
BabyDisHospINT NOT NULL DEFAULT 0,
BabyDisStaffINT NOT NULL DEFAULT 0,
BabyDisTimeVARCHAR(7) NOT NULL DEFAULT '' '',
BabyEddVARCHAR(12) NOT NULL DEFAULT '' '',
BabyGenderVARCHAR(20) NOT NULL DEFAULT '' '',
BabyLosINT NOT NULL DEFAULT 0,
BabyNumINT NOT NULL DEFAULT 0,
BabyPostMedsVARCHAR(30) NOT NULL DEFAULT '' '',
BabyRecStatusVARCHAR(50) NOT NULL DEFAULT '' '',
BabyRegStaffINT NOT NULL DEFAULT 0,
BabyReqMandatoryFieldsVARCHAR(250) NOT NULL DEFAULT '' '',
BabyScnNicuVARCHAR(6) NOT NULL DEFAULT '' '',
BabyTreatmentVARCHAR(80) NOT NULL DEFAULT '' '',
BabyUrnoVARCHAR(20) NOT NULL DEFAULT '' '',
BabyWardINT NOT NULL DEFAULT 0,
BirthAnaesVARCHAR(30) NOT NULL DEFAULT '' '',
BirthDateVARCHAR(12) NOT NULL DEFAULT '' '',
BirthDefectVARCHAR(80) NOT NULL DEFAULT '' '',
BirthLengthDECIMAL NOT NULL DEFAULT 0,
BirthModeINT NOT NULL DEFAULT 0,
BirthPlaceINT NOT NULL DEFAULT 0,
BirthStatusVARCHAR(55) NOT NULL DEFAULT '' '',
BirthTimeVARCHAR(7) NOT NULL DEFAULT '' '',
BirthTraumaVARCHAR(30) NOT NULL DEFAULT '' '',
BirthTypeINT NOT NULL DEFAULT 0,
BirthWeightVARCHAR(10) NOT NULL DEFAULT '' '',
CaesarTypeVARCHAR(20) NOT NULL DEFAULT '' '',
CmpAccPaidDECIMAL NOT NULL DEFAULT 0,
CmpAccRcvdDECIMAL NOT NULL DEFAULT 0,
CmpCategoryINT NOT NULL DEFAULT 0,
CmpDisDateVARCHAR(12) NOT NULL DEFAULT '' '',
CmpDisFeedINT NOT NULL DEFAULT 0,
CmpFeedChangeVARCHAR(6) NOT NULL DEFAULT '' '',
CmpFeedReasonINT NOT NULL DEFAULT 0,
CmphomeConsultINT NOT NULL DEFAULT 0,
CmpHospConsultINT NOT NULL DEFAULT 0,
CmpNotHomeINT NOT NULL DEFAULT 0,
CmpOutPhoneINT NOT NULL DEFAULT 0,
CmpOutreachTotINT NOT NULL DEFAULT 0,
CmpPhoneConsultINT NOT NULL DEFAULT 0,
CmpProblemINT NOT NULL DEFAULT 0,
CmpProviderINT NOT NULL DEFAULT 0,
CmpReadmitBabyINT NOT NULL DEFAULT 0,
CmpReadmitMotherINT NOT NULL DEFAULT 0,
CmpReferBabyINT NOT NULL DEFAULT 0,
CmpReferMotherINT NOT NULL DEFAULT 0,
CmpVisitTotINT NOT NULL DEFAULT 0,
CordAnalysisTimevarchar(25) NOT NULL DEFAULT '' '',
CordBaseExcessvarchar(6) NOT NULL DEFAULT '' '',
CordBloodVARCHAR(6) NOT NULL DEFAULT '' '',
CordCompsVARCHAR(55) NOT NULL DEFAULT '' '',
CordInsertionVARCHAR(55) NOT NULL DEFAULT '' '',
CordLactateVARCHAR(6) NOT NULL DEFAULT '' '',
CordPhVARCHAR(6) NOT NULL DEFAULT '' '',
CordStemBloodVARCHAR(6) NOT NULL DEFAULT '' '',
CordVesselsINT NOT NULL DEFAULT 0,
DischWeightvarchar(10) NOT NULL DEFAULT '' '',
DisFeedReasonINT NOT NULL DEFAULT 0,
EndDate3VARCHAR(12) NOT NULL DEFAULT '' '',
EndTime3VARCHAR(6) NOT NULL DEFAULT '' '',
EpisodeIDINT NOT NULL ,
EstGestDECIMAL NOT NULL DEFAULT 0,
EstRespsINT NOT NULL DEFAULT 0,
ExclusiveBFVARCHAR(6) NOT NULL DEFAULT '' '',
FirstFeedDateVARCHAR(12) NOT NULL DEFAULT '' '',
FirstFeedModeINT,
FirstFeedTimeVARCHAR(6) NOT NULL DEFAULT '' '',
FoetMonVARCHAR(30) NOT NULL DEFAULT '' '',
ForcepTypeVARCHAR(100) NOT NULL DEFAULT '' '',
HeadCircmDECIMAL,
HearTestDateVARCHAR(12) NOT NULL DEFAULT '' '',
HearTestResultVARCHAR(20) NOT NULL DEFAULT '' '',
HepBvDateVARCHAR(12) NOT NULL DEFAULT '' '',
HepBvTimeVARCHAR(6) NOT NULL DEFAULT '' '',
HindleakDateVARCHAR(55) NOT NULL DEFAULT '' '',
HindleakTimeVARCHAR(6) NOT NULL DEFAULT '' '',
ID INT NOT NULL ,
ImmGnDateVARCHAR(12) NOT NULL DEFAULT '' '',
ImmGnTimeVARCHAR(6) NOT NULL DEFAULT '' '',
InductionDateVARCHAR(12) NOT NULL DEFAULT '' '',
InductionTimeVARCHAR(6) NOT NULL DEFAULT '' '',
InductMainINT,
InductModeVARCHAR(30) NOT NULL DEFAULT '' '',
InductOtherVARCHAR(250) NOT NULL DEFAULT '' '',
IntendedChangedVARCHAR(55) NOT NULL DEFAULT '' '',
IntendedPlaceVARCHAR(30) NOT NULL DEFAULT '' '',
IntendedSpecifyVARCHAR(55) NOT NULL DEFAULT '' '',
IntendedYnVARCHAR(6) NOT NULL DEFAULT '' '',
KonakDateVARCHAR(12) NOT NULL DEFAULT '' '',
KonakRouteVARCHAR(10) NOT NULL DEFAULT '' '',
LabAnalgesiaVARCHAR(30) NOT NULL DEFAULT '' '',
LabCompsVARCHAR(60) NOT NULL DEFAULT '' '',
LabDrugsVARCHAR(30) NOT NULL DEFAULT '' '',
LabourTime1VARCHAR(6) NOT NULL DEFAULT '' '',
LabourTime2VARCHAR(6) NOT NULL DEFAULT '' '',
LabourTime3VARCHAR(6) NOT NULL DEFAULT '' '',
LastUpdateVARCHAR(55) NOT NULL DEFAULT getdate(),
LiquorINT NOT NULL DEFAULT 0,
MembDateVARCHAR(30) NOT NULL DEFAULT '' '',
MembRuptureVARCHAR(55) NOT NULL DEFAULT '' '',
MembTimeVARCHAR(6) NOT NULL DEFAULT '' '',
NeoMorbVARCHAR(80) NOT NULL DEFAULT '' '',
NewBornScrVARCHAR(12) NOT NULL DEFAULT '' '',
ObsAccClassVARCHAR(10) NOT NULL DEFAULT '' '',
ObsAdmitDateVARCHAR(12) NOT NULL DEFAULT '' '',
ObsAdmitTimeVARCHAR(6) NOT NULL DEFAULT '' '',
OnsetDate1VARCHAR(12) NOT NULL DEFAULT '' '',
OnsetDate2VARCHAR(12) NOT NULL DEFAULT '' '',
OnsetLabVARCHAR(30) NOT NULL DEFAULT '' '',
OnsetTime1VARCHAR(6) NOT NULL DEFAULT '' '',
OnsetTime2VARCHAR(6) NOT NULL DEFAULT '' '',
OpdelAnaesthetist INT NOT NULL DEFAULT 0,
OpdelDilationDECIMAL NOT NULL DEFAULT 0,
OpdelMainINT NOT NULL DEFAULT 0,
OpdelNatureVARCHAR(40) NOT NULL DEFAULT '' '',
OpdelOtherVARCHAR(30) NOT NULL DEFAULT '' '',
Oxytocic3VARCHAR(30) NOT NULL DEFAULT '' '',
PassedMecVARCHAR(6) NOT NULL DEFAULT '' '',
PassedUrineVARCHAR(6) NOT NULL DEFAULT '' '',
PdcuBatchErrorVARCHAR(250) NOT NULL DEFAULT '' '',
PdcuBatchIDINT NOT NULL DEFAULT '' '',
PeriAnaesINT NOT NULL DEFAULT '' '',
PeriStatusINT NOT NULL DEFAULT '' '',
PeriSuturedByINT NOT NULL DEFAULT '' '',
PlacentaAbnormVARCHAR(100) NOT NULL DEFAULT '' '',
PlacentaDelModeVARCHAR(55) NOT NULL DEFAULT '' '',
PlacentaMemVARCHAR(55) NOT NULL DEFAULT '' '',
PositionVARCHAR(40) NOT NULL DEFAULT '' '',
PresentationINT NOT NULL DEFAULT '' '',
RefHospitalINT NOT NULL DEFAULT '' '',
RegistrarFlagINT NOT NULL DEFAULT '' '',
ResusVARCHAR(60) NOT NULL DEFAULT '' '',
ScalpLactateDateVARCHAR(50) NOT NULL DEFAULT '' '',
ScalpLactateTime VARCHAR(30) NOT NULL DEFAULT '' '',
ScalpLactateValue VARCHAR(30) NOT NULL DEFAULT '' '',
SkinContactVARCHAR(6) NOT NULL DEFAULT '' '',
SkinContactDateVARCHAR(12) NOT NULL DEFAULT '' '',
SkinContactReasonGT30INT NOT NULL DEFAULT '' '',
SkinContactTimeVARCHAR(6) NOT NULL DEFAULT '' '',
TotLabourTimeVARCHAR(6) NOT NULL DEFAULT '' '',
UrNoVARCHAR(20) NOT NULL,
VCordBaseExcessVARCHAR(6) NOT NULL DEFAULT '' '',
VCordLactate VARCHAR(6) NOT NULL DEFAULT '' '',
VCordPhVARCHAR(6) NOT NULL DEFAULT '' ''
)'
EXEC @SQL
GO
When I run the query, I get this error
Server: Msg 203, Level 16, State 2, Line 172
The name 'CREATE TABLE ObBabyEpisode18Jun2007
(
AdmitSource INT NOT NULL DEFAULT 0,
Anaesthesia3rdINT NOT NULL DEFAULT 0,
Anaesthetist3rdINT NOT NULL DEFAULT 0,
Apgar1INT NOT NULL DEFAULT 0,
Apgar10INT NOT NULL DEFAULT 99,
Apgar5INT NOT NULL DEFAULT 0,
ApgarOtherVARCHAR(20) NOT NULL DEFAULT ' ',
AttAccoucherVARCHAR(30) NOT NULL DEFAULT ' ',
AttAccoucherRankVARCHAR...
Line 172 Points to EXEC @SQL
I cannot understand what is the error. Any clues?
View 3 Replies
View Related
Feb 25, 2008
My website host allows me to create DB and DB users from its control panel and then I am able to use SQL server Management studio to Manage My DB.
Therefore I create My DB (TBC20) and create a user for it(Tony) from Host Panel.
When I want to Export My Local copy DB data to the remote DB using Import/Export wizard and set the It won’t Generate any DB objects. Even When I use aspnet_regsql Command I encounter Following error:
SQL error number is 262 and the SqlException message is: CREATE DATABASE permiss
ion denied in database 'master'.
Creating the TBC20 database...
------------------------------------------------------
When I View permissions in Database properties window No Permission is Grant for user: Tony. Only some permission Grant for Grantor: dbo. When I check Boxes to Grant Permission for user Tony None of permissions will be grant to this user.
How could I allow this user ti take ownership of DB and create DB objects
View 3 Replies
View Related
Mar 25, 2008
IF NOT EXISTS (SELECT 1 FROM Sys.Schemas WHERE [Name] = N'HR4')
CREATE SCHEMA HR4 AUTHORIZATION [dbo]
The above statements gives me an error saying "Incorrect syntax near schema". But the following code works fine.
DECLARE @sql varchar(100)
set @sql='CREATE SCHEMA HR4 AUTHORIZATION [dbo]'
IF NOT EXISTS (SELECT 1 FROM Sys.Schemas WHERE [Name] = N'HR4')
exec(@sql)
Any ideas on what is causing this error?
Thanks!
View 1 Replies
View Related
May 16, 2007
Hi.I have a procedure with this in it (there are no other references toasset_number_bak_tmp_pk in the procedure and it calls nothing else written byme, just system calls or normal dml).create table #asset_bak(asset_number varchar(60) not null,asset_desc varchar(100) null,location varchar(40) null,constraint asset_number_bak_tmp_pk primary key clustered (asset_number))When I run the procedure, I get this message:(1 row(s) affected)Msg 2714, Level 16, State 4, Procedure updatenavharrierdb, Line 19There is already an object named 'asset_number_bak_tmp_pk' in the database.Msg 1750, Level 16, State 0, Procedure updatenavharrierdb, Line 19Could not create constraint. See previous errors.How can I find where else the system thinks this constraint exists?I tried this but it only finds it in one place (one row in the result set),i.e. my procedure:select sysobjects.name, syscomments.textfrom sysobjects, syscommentswhere sysobjects.id = syscomments.id and((lower(sysobjects.name) like '%asset_number_bak_tmp_pk%') or(lower(syscomments.text) like '%asset_number_bak_tmp_pk%'))Is this somehow a case where I need to do something dynamically, or purge someinformation? I thought temp tables and their crony constraints disappearedafter the procedure exited.thanksJeff Kish
View 2 Replies
View Related
Mar 13, 2008
Hi all,
I am using SQL Server BI development studio to create a model. I get the error message when I run the report model wizard:
"Arithmetic overflow error converting expression to data type smalldatetime."
Please help.
Best regards,
View 1 Replies
View Related
Jan 30, 2006
I have just managed to have JDBC working, but I am getting an error that the user does not exist. I have read in the MSDN help that I need to set the sqlExpress to accept SQL server authentication and not windows authentication. So when I am trying to create a new User using Microsoft SQL server management studio express I get the following error.
TITLE: Microsoft SQL Server Management Studio Express
------------------------------
Create failed for Login 'adam'. (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Login&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)
------------------------------
The MUST_CHANGE option is not supported by this version of Microsoft Windows. (Microsoft SQL Server, Error: 15195)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.1399&EvtSrc=MSSQLServer&EvtID=15195&LinkId=20476
View 5 Replies
View Related
Nov 1, 2007
Hello there,
i have the following problem.
I need to get some .dll's into MS SQL-Server 2005, that i need to get a own made .dll installed.
When i try to:
Code Block
CREATE ASSEMBLY SystemWeb
FROM 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.Web.dll'
WITH PERMISSION_SET = UNSAFE;
i get the following message:
Code Block
Warning: The Microsoft .Net frameworks assembly 'system.web, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=x86.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The Microsoft .Net frameworks assembly 'system.enterpriseservices, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=x86.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The Microsoft .Net frameworks assembly 'system.runtime.remoting, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The Microsoft .Net frameworks assembly 'system.design, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Msg 701, Level 17, State 13, Line 1
There is insufficient system memory to run this query.
When i try to create one of the another assemblies ( system.enterpriseservices, system.runtime.remoting, system.design ) i get the same message.
I looked for this Error and found only this BUG-report:
BUG#: 58267 (SQLBUG_70)
Article ID: 274030
http://support.microsoft.com/kb/274030/en-us
But this does not solve my problem.
As far as i know we use MS SQL-Server 2005 without any Service-Packs.
Question:
is there any Table/View to find out the Versionnumber/Service-Pack
In the moment i am waiting for our admin to install SP2 for SQL-Server,
hoping that this will fix the problem.
Greetings
View 10 Replies
View Related
Jun 1, 2008
Hi
I am new to SQL and unable to create a new database since I do not have enough priviliedges (error 262).
I do not understand this since the login username came from the hosting i am with.
How do I set my username login to allow me the ability to create a new database?
Replies are very gratefully received since i am going steadily nuts trying to solve this - thanks, Lister
View 3 Replies
View Related
Jan 27, 2008
I'll ask for patience cause am new to this....but I am trying to create a new connection while trying to add a new Data Source in Visual Studios, and I keep getting the error "Login failed for user 'Mohaminho-PCMohaminho'." I have tried several things that my little knowledge knows, but no success.
Any ideas anyone?
View 7 Replies
View Related
Aug 1, 2007
I am using this code to create dll : Execute.cs
using System;
using Microsoft.SqlServer.Dts.Runtime;
public class Execute
{
public static void Package(string dtsxPath)
{
try
{
Package pkg;
Application app;
DTSExecResult pkgResults;
app = new Application();
pkg = app.LoadPackage(dtsxPath, null);
pkgResults = pkg.Execute();
}
catch (System.Exception ex)
{
throw ex;
}
}
}
Then this
c:Program FilesMicrosoft Visual Studio 8VC>csc /target:library C:SSISSSISE
xecute.cs /reference:C:SSISSSISMicrosoft.SqlServer.ManagedDTS.dll
It creates Execute.dll
but when I run this is sql server
CREATE ASSEMBLY ssid from 'c:Program FilesMicrosoft Visual Studio 8VCExecute.dll'
WITH PERMISSION_SET = UNSAFE
I am getting Error
Warning: The SQL Server client assembly 'microsoft.sqlserver.manageddts, version=9.0.242.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The SQL Server client assembly 'microsoft.sqlserver.dtsruntimewrap, version=9.0.242.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Msg 10301, Level 16, State 1, Line 1
Assembly 'Execute' references assembly 'system.windows.forms, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request.
I don't see any place I am using System.window.forms
Any idea why? Thanks - Ashok
---------------------------------------------------------
I changed my location to to CSC
C:WINNTMicrosoft.NETFrameworkv2.0.50727>
Now I get this error
Warning: The SQL Server client assembly 'microsoft.sqlserver.manageddts, version=9.0.242.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The SQL Server client assembly 'microsoft.sqlserver.dtsruntimewrap, version=9.0.242.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The Microsoft .Net frameworks assembly 'system.windows.forms, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The Microsoft .Net frameworks assembly 'system.drawing, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The Microsoft .Net frameworks assembly 'accessibility, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Warning: The Microsoft .Net frameworks assembly 'system.runtime.serialization.formatters.soap, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a, processorarchitecture=msil.' you are registering is not fully tested in SQL Server hosted environment.
Msg 10301, Level 16, State 1, Line 1
Assembly 'Execute1' references assembly 'microsoft.sqlserver.msxml6_interop, version=6.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request.
---------------------------------------------
I managed to found this DLL Microsoft.SQLServer.msxml6_interop.dll so I copied to same location
Now It's looking for
microsoft.sqlserver.sqltdiagm - Which I am not able to find any place .......................
View 6 Replies
View Related
Nov 13, 2007
Hi everybody,
I'm working with a SQL Server 2000 Database and I need to write a procedure that creates a file .log in which it has to write some potential errors occurred in other procedures.
I'm quite totally newbie to T-SQL language and its procedures, so I don't know which procedure or function creates and closes the file and which one writes something in it.
Thanks for your help.
View 7 Replies
View Related
May 14, 2006
I am trying to create a database in my application's installation folder and it will not create because the folder does not have the permissions for the service account added as full control. I can't figure out how to get the service account name in my program so that I can add it to the folder permissions. The service name is a long name and has the computer name and the SQL server name included in it. For example: SQLServer2005MSSQLUser$<Ccmputer Name>$SQLEXPRESS. I'm assuming this pattern is always followed. I guess my question is can I query the database for this information and then use it to add the appropriate permissions to my application's install folder?
View 1 Replies
View Related
Jan 19, 2006
Brand new at this !
I'm running VB 2005 express edition installed from full MS download which included the SQL2005 express server V9.00.1116
Have used the Video tutorial (video 8 & 9) to create a database and have followed instructiions faithfully
Problem.
From the Data / Add New Datasource menu everything proceeds ok - that is a "dataset.xsd" file is created but then I get an error message
" Could not get type information for .........myfilename dataset "
and so the process is not completed properly and a datasource is not created.
I'm unsure what the type information is and have been unsuccesful turning up anything from the help files or forum so hoping someone can maybe tell me whats happening and how to fix this.
Thanks
View 3 Replies
View Related
Mar 13, 2008
Hi,Just recently I am getting the following error when trying to connect to an SQL DB: Exception has been thrown by target of an invocation. This happens even if I create a new website/solution. Procedure I use:open server explorer and click on create a new connectionchoose SQL server from the listenter my IP address and credentials, click on test and everything is fine. When I go to select the DB the dropdown box is empty, if I type in my database name and click on ok I get the following message:Exception has been thrown by target of an invocationI know it is nothing to do with SQL or credentials as I can create a datasource to my SQL server using my colleagues computer!I have removed VS 2005 from my computer and reinstalled only to be met with the same problem.reinstalling my computer is a last resort!Any ideas?Cheers, Ps, I can connect to my DB using VB code behind.
View 3 Replies
View Related
Apr 28, 2004
Hi,
I have installed MS SQL server and I'm trying to create a database using the Web Matrix Project. I'm doing the following:
1. Click the Data tab in the Workspace pane.
2. Click on "Add Database Connection"
3. Select "SQL Server/MSDE Database" and click OK
4. Enter the following information:
server=localhost
Windows authentication is on
Database=somename
Click Ok
After I do all this, I get the following error:
Unable to connect to the database
SQL server does not exist or access denied.
ConnectionOpen (Connect()).
The SQL Service Manager is running with the option "Distributed Transaction Coordinator" displaying on Services. (I'm new to SQL server).
What could be causing this to happen?
Thanks a lot.
View 2 Replies
View Related
Jul 1, 2003
When running the create publication wizard, I get:
"Error 14294 - Supply either @Job_id or @Job_Name to identify the job"
I had pubs & subs set up, but things were erroring, so I tried deleting everything and wanted to start from scratch, but the last step in the wizard gets me stuck.
Is it ok to clear the tables in the Distribution database that have info from earlier attempts at setting things up ?
Is there a way to delete the distribution database & really start from scratch ?
View 2 Replies
View Related
Jan 11, 2005
Does anybody know the significance of 3 in the following error message?
"CREATE UNIQUE INDEX terminated because a duplicate key was found for index ID 3. "
Thank you
View 3 Replies
View Related
Jul 25, 2007
I'm trying to run a stored proc on a SQL 2005 SP1 box to return info to a SQL 2000 SP4 box, as a linked server. Both boxes have the latest service packs, and run Windows 2003 Server, again with the latest service packs. The error I get is: OLE DB provider "SQLNCLI" for linked server "192.168.0.126" returned message "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".Msg 16955, Level 16, State 2, Line 1Could not create an acceptable cursor. The full script I am running is: CREATE procedure [dbo].[proc_AuditServer] as /* ** Auditing Script for SQL Servers. ** ** D Maxwell, June 2007 ** ** This script takes configuration and job status information ** and writes it to a designated logging server. I'll describe ** each section in detail, below. We write to the local box first, ** Then upload everything to the logging server. ** ** This is the SQL 2005 version. */ /* ** We want to know exactly what server this is, so ** we get the server name, instance name, as well as ** SQL Version, Edition, and Service Pack level. */ truncate table admin.dbo.sql_servers insert into admin.dbo.sql_servers select convert(varchar(15), serverproperty('ServerName')), convert(varchar(25), serverproperty('InstanceName')), convert(char(9), serverproperty('ProductVersion')), convert(varchar(4), serverproperty('ProductLevel')), convert(varchar(20), serverproperty('Edition')), getdate() /* ** Now, having that, we get the list of databases, ** as well as thier creation dates and file names. */ truncate table admin.dbo.databases insert into admin.dbo.databases select convert(varchar(15), serverproperty('ServerName')), dbid, name, crdate, filename from master..sysdatabases where dbid > 4 order by dbid /* ** We need to know how the server is configured, so we ** can compare it to a list of preferred configuration ** values, as well as the defaults. I cut this out of ** sp_configure. */ truncate table admin.dbo.server_config insert into admin.dbo.server_config select convert(varchar(15), serverproperty('ServerName')), name, config_value = c.value, run_value = master.dbo.syscurconfigs.value from master.dbo.spt_values, master.dbo.sysconfigures c, master.dbo.syscurconfigs where type = 'C' and number = c.config and number = master.dbo.syscurconfigs.config and ((c.status & 2 <> 0 ) OR (c.status & 2 = 0) ) order by lower(name) /* ** The next configuration item we want to get is the ** list of jobs that run on the server. We're looking ** specifically for backup and other maintenance jobs. ** (Which will hopefully be named appropriately...) ** We use Neil Boyle's job report script for this. ** My comments and changes prefaced by a 'DM:' */ truncate table admin.dbo.jobs insert into admin.dbo.jobs select convert(varchar(15), serverproperty('ServerName')), --DM: Needed since we'll have lots of servers reporting j.job_id, -- DM: More unique than a name. convert(varchar(22), j.name) as job_name, case freq_type -- Daily, weekly, Monthly when 1 then 'Once' when 4 then 'Daily' when 8 then 'Wk ' -- For weekly, add in the days of the week + case freq_interval & 2 when 2 then 'M' else '' end -- Monday + case freq_interval & 4 when 4 then 'Tu' else '' end -- Tuesday + case freq_interval & 8 when 8 then 'W' else '' end -- etc + case freq_interval & 16 when 16 then 'Th' else '' end + case freq_interval & 32 when 32 then 'F' else '' end + case freq_interval & 64 when 64 then 'Sa' else '' end + case freq_interval & 1 when 1 then 'Su' else '' end when 16 then 'Mthly on day ' + convert(varchar(2), freq_interval) -- Monthly on a particular day when 32 then 'Mthly ' -- The most complicated one, "every third Friday of the month" for example + case freq_relative_interval when 1 then 'Every First ' when 2 then 'Every Second ' when 4 then 'Every Third ' when 8 then 'Every Fourth ' when 16 then 'Every Last ' end + case freq_interval when 1 then 'Sunday' when 2 then 'Monday' when 3 then 'Tuesday' when 4 then 'Wednesday' when 5 then 'Thursday' when 6 then 'Friday' when 7 then 'Saturday' when 8 then 'Day' when 9 then 'Week day' when 10 then 'Weekend day' end when 64 then 'Startup' -- When SQL Server starts when 128 then 'Idle' -- Whenever SQL Server gets bored else 'Err' -- This should never happen end as schedule , case freq_subday_type -- FOr when a job funs every few seconds, minutes or hours when 1 then 'Runs once at:' when 2 then 'every ' + convert(varchar(3), freq_subday_interval) + ' seconds' when 4 then 'every ' + convert(varchar(3), freq_subday_interval) + ' minutes' when 8 then 'every ' + convert(varchar(3), freq_subday_interval) + ' hours' end as frequency -- All the subsrings are because the times are stored as an integer with no leading zeroes -- i.e. 0 means midnight, 13000 means half past one in the morning (01:30:00) , substring (right (stuff (' ', 1, 1, '000000') + convert(varchar(6),active_start_time), 6), 1, 2) + ':' + substring ( right (stuff (' ', 1, 1, '000000') + convert(varchar(6), active_start_time), 6) ,3 ,2) + ':' + substring ( right (stuff (' ', 1, 1, '000000') + convert(varchar(6),active_start_time), 6) ,5 ,2) as start_at ,case freq_subday_type when 1 then NULL -- Ignore the end time if not a recurring job else substring (right (stuff (' ', 1, 1, '000000') + convert(varchar(6), active_end_time), 6), 1, 2) + ':' + substring ( right (stuff (' ', 1, 1, '000000') + convert(varchar(6), active_end_time), 6) ,3 ,2) + ':' + substring ( right (stuff (' ', 1, 1, '000000') + convert(varchar(6), active_end_time), 6) ,5 ,2) end as end_at from msdb.dbo.sysjobs j, msdb.dbo.sysJobSchedules s, msdb.dbo.sysschedules c where j.job_id = s.job_id and s.schedule_id = c.schedule_id order by j.name, start_at /* ** Now that we know what jobs we have, let's find out ** how they did recently. */ truncate table job_status insert into job_status select convert(varchar(15), serverproperty('ServerName')), job_id, run_status, run_date, run_time, run_duration from msdb..sysjobhistory where step_name = '(job outcome)' -- The last 90 days' worth. and run_date > (select replace(convert(varchar(10), (getdate() - 90), 120), '-', '')) order by run_date desc /* ** If this server is already known to the audit server, ** we need to remove the existing data from the audit ** tables. */ declare @known bit set @known = (select count(*) from [192.168.0.126].AUDITDB.dbo.sql_servers where server_name = (select convert(varchar(15), serverproperty('servername')))) /* ** Now we remove the existing information from the audit tables, ** if need be. */ if @known = 1 begin delete from [192.168.0.126].AUDITDB.dbo.sql_servers where server_name = (select convert(varchar(15), serverproperty('ServerName'))) delete from [192.168.0.126].AUDITDB.dbo.databases where server_name = (select convert(varchar(15), serverproperty('ServerName'))) delete from [192.168.0.126].AUDITDB.dbo.server_config where server_name = (select convert(varchar(15), serverproperty('ServerName'))) delete from [192.168.0.126].AUDITDB.dbo.jobs where server_name = (select convert(varchar(15), serverproperty('ServerName'))) delete from [192.168.0.126].AUDITDB.dbo.job_status where server_name = (select convert(varchar(15), serverproperty('ServerName'))) end /* ** Finally, we upload the new info from here to the audit server. */ insert into [192.168.0.126].AUDITDB.dbo.sql_servers select * from admin.dbo.sql_servers insert into [192.168.0.126].AUDITDB.dbo.server_config select * from admin.dbo.server_config insert into [192.168.0.126].AUDITDB.dbo.databases select * from admin.dbo.databases insert into [192.168.0.126].AUDITDB.dbo.jobs select * from admin.dbo.jobs insert into [192.168.0.126].AUDITDB.dbo.job_status select * from admin.dbo.job_status This works fine for other boxes of the same service pack levels. I've already read KB302477, which doesn't appear to apply, since I'm already several revisions beyond that. I'm unable to duplicate this in test. Any ideas as to what I should look at next? Thanks. -D.
View 2 Replies
View Related
Jun 1, 2008
Hi
I am a complete newbie here. I have spent hours trying to create a database - (even installed on XP and Vista) and I seem to not be able to create a database - it tells me that:
Create Database permission denied in database master - Microsoft SQL Server Error 262.
How to I enable these priviledges?
Do i need to regsiter the Server with the Enterprise Manager and how do I do that?
All help VERY gratefully received thanks Lister
View 2 Replies
View Related
Sep 1, 2006
I am trying to create a database and I manage to get the code right for dropping the database if it already exists and then createing the data file and log file. After this I try to set some options for the database with the following code
ALTER DATABASE MyDataWarehouse
SET RECOVERY SIMPLE,
ANSI_NULLS ON,
ANSI_PADDING ON,
ANSI_WARNINGS ON,
ARITHABORT ON,
CONCAT_NULL_YIELDS_NULL ON,
QUOTED_IDENTIFIER ON,
NUMERIC_ROUNDABORT OFF,
PAGE_VERIFY CHECKSUM,
ALLOW_SNAPSHOT_ISOLATION ON;
GO
But I get an error saying Incorrect syntax near 'CHECKSUM'.
View 4 Replies
View Related