You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
2.8 KiB
52 lines
2.8 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_validateloginparams] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[dt_validateloginparams]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[dt_validateloginparams] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER OFF
|
|
GO
|
|
create proc [dbo].[dt_validateloginparams]
|
|
@vchLoginName varchar(255),
|
|
@vchPassword varchar(255)
|
|
as
|
|
|
|
set nocount on
|
|
|
|
declare @iReturn int
|
|
declare @iObjectId int
|
|
select @iObjectId =0
|
|
|
|
declare @VSSGUID varchar(100)
|
|
select @VSSGUID = 'SQLVersionControl.VCS_SQL'
|
|
|
|
declare @iPropertyObjectId int
|
|
select @iPropertyObjectId = (select objectid from dbo.dtproperties where property = 'VCSProjectID')
|
|
|
|
declare @vchSourceSafeINI varchar(255)
|
|
exec dbo.dt_getpropertiesbyid_vcs @iPropertyObjectId, 'VCSSourceSafeINI', @vchSourceSafeINI OUT
|
|
|
|
exec @iReturn = master.dbo.sp_OACreate @VSSGUID, @iObjectId OUT
|
|
if @iReturn <> 0 GOTO E_OAError
|
|
|
|
exec @iReturn = master.dbo.sp_OAMethod @iObjectId,
|
|
'ValidateLoginParams',
|
|
NULL,
|
|
@sSourceSafeINI = @vchSourceSafeINI,
|
|
@sLoginName = @vchLoginName,
|
|
@sPassword = @vchPassword
|
|
if @iReturn <> 0 GOTO E_OAError
|
|
|
|
CleanUp:
|
|
return
|
|
|
|
E_OAError:
|
|
exec dbo.dt_displayoaerror @iObjectId, @iReturn
|
|
GOTO CleanUp
|
|
|
|
|
|
|
|
GO
|