我想知道是否有人通过SSMS命令调用存储的proc并传入字符串值中包含空格的字符串参数的示例?
我有兴趣将字符串值传递给的proc标头示例:
ALTER PROCEDURE dbo.P427007ImportAHSAHospitalDetails
@Path VARCHAR(255),
@FileName VARCHAR(255),
@OperatorID VARCHAR(10),
@BranchID VARCHAR(10),
@TillID VARCHAR(10)
AS
BEGIN
SET ANSI_WARNINGS ON
SET ANSI_PADDING ON
{etc}
实际上我现在已经解决了..
例如根据以下示例调用:
exec [dbo].[P427007ImportAHSAHospitalDetails] @Path='\\SHD-D-EDIAPP01\H2FileRepository\DEV\CommonDev\Import Files\Provider Import\', @FileName='HospitalDetails-0005-20180529.XML', @OperatorID='hslafo', @BranchID='HO', @TillID='HOBO'
存储的过程是根据:
ALTER PROCEDURE dbo.P427007ImportAHSAHospitalDetails
@Path VARCHAR(255),
@FileName VARCHAR(255),
@OperatorID VARCHAR(10),
@BranchID VARCHAR(10),
@TillID VARCHAR(10)
AS
BEGIN
SET ANSI_WARNINGS ON
SET ANSI_PADDING ON
{etc}