Hi,
When trying to pass the multiple parameter to my stored procedure the report remains empty.
I've used method 1 to pass an arry from this website
http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm
here's my proc:
CREATE PROCEDURE dbo.Qry_MSSRS_Myproc
@Begindate smalldatetime,
@Einddate smalldatetime,
@Line varchar(100),
@Empno varchar(100)
AS
SELECT *, { fn MONTHNAME(DATUM) } AS Maand,
YEAR(DATUM) AS jaar
FROM dbo.mytable
WHERE myfield=1 And
Datum>=@begindate And Datum<=@enddate And
line in (' + @Line + ') And
empno in (' + @empno + ')
GO
Fields line and empno are numeric fields
MSSQL 2005 finally has the option to pass multiple parameters. Defining multiple parameters within a query defined in the report is quite simple.
I do not use queries in the report because from an administrative point of view it's not as managable as stored procedures.
Thx
When trying to pass the multiple parameter to my stored procedure the report remains empty.
I've used method 1 to pass an arry from this website
http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm
here's my proc:
CREATE PROCEDURE dbo.Qry_MSSRS_Myproc
@Begindate smalldatetime,
@Einddate smalldatetime,
@Line varchar(100),
@Empno varchar(100)
AS
SELECT *, { fn MONTHNAME(DATUM) } AS Maand,
YEAR(DATUM) AS jaar
FROM dbo.mytable
WHERE myfield=1 And
Datum>=@begindate And Datum<=@enddate And
line in (' + @Line + ') And
empno in (' + @empno + ')
GO
Fields line and empno are numeric fields
MSSQL 2005 finally has the option to pass multiple parameters. Defining multiple parameters within a query defined in the report is quite simple.
I do not use queries in the report because from an administrative point of view it's not as managable as stored procedures.
Thx