Added getJustRODb and not all of it's children.
This commit is contained in:
parent
e29c6121f0
commit
c6e18d4fe7
@ -6177,6 +6177,39 @@ IF (@@Error = 0) PRINT 'Procedure Creation: getItemsByContentID Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getItemsByContentID Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getJustRODb] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getJustRODb]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getJustRODb];
|
||||
GO
|
||||
|
||||
CREATE PROCEDURE [dbo].[getJustRODb]
|
||||
|
||||
(
|
||||
@RODbID int
|
||||
)
|
||||
WITH EXECUTE AS OWNER
|
||||
AS
|
||||
SELECT
|
||||
[RODbID],
|
||||
[ROName],
|
||||
[FolderPath],
|
||||
[DBConnectionString],
|
||||
[Config],
|
||||
[DTS],
|
||||
[UserID],
|
||||
[LastChanged],
|
||||
(SELECT COUNT(*) FROM [ROFsts] WHERE [ROFsts].[RODbID]=[RODbs].[RODbID]) [ROFstCount],
|
||||
(SELECT COUNT(*) FROM [ROImages] WHERE [ROImages].[RODbID]=[RODbs].[RODbID]) [ROImageCount],
|
||||
(SELECT COUNT(*) FROM [RoUsages] WHERE [RoUsages].[RODbID]=[RODbs].[RODbID]) [RoUsageCount]
|
||||
FROM [RODbs]
|
||||
WHERE [RODbID]=@RODbID
|
||||
RETURN
|
||||
GO
|
||||
-- Display the status of Proc creation
|
||||
IF (@@Error = 0) PRINT 'Procedure Creation: getJustRODb Succeeded'
|
||||
ELSE PRINT 'Procedure Creation: getJustRODb Error on Creation'
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [getLibraryDocuments] ******/
|
||||
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[getLibraryDocuments]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
|
||||
DROP PROCEDURE [getLibraryDocuments];
|
||||
|
Loading…
x
Reference in New Issue
Block a user