Viewing 7 posts - 1 through 7 (of 7 total)
pdanes (7/18/2012)
Thanks for that. I got it working. See my previous reply.
July 18, 2012 at 6:04 am
I finally got it working.
My problem was the bug with Recordset and StoredProcedures
You need to set
rs.CursorLocation = adUseClient
otherwise RecordCount, BOF and...
July 17, 2012 at 9:52 am
OK, thanks for that. My procedure got "complicated" as I was trying to "fix" it...
I've tested the procedure in the Query Analyzer
use printing
go
exec GetPrintersByType 8
and got the expected 13 records.
I...
July 16, 2012 at 9:27 am
OK, sorry...
CREATE PROCEDURE [dbo].[GetPrintersByType]
@PrinterType INT
AS
DECLARE @sqlquery NVARCHAR(500)
SET @sqlquery = 'SELECT * FROM parameters WHERE printer_type & @PrinterType=@PrinterType'
July 16, 2012 at 8:41 am
Now I've "fixed" the SQL. I've got a problem using it.
If I execute the SQL in Query Analyzer, I get 13 records
select * from parameters where printer_type & 8 =...
July 16, 2012 at 8:34 am
Thanks for the suggestions.
July 16, 2012 at 7:43 am
I figured out what I was doing wrong:
CREATE PROCEDURE [dbo].[GetPrintersByType]
@PrinterType INT
AS
DECLARE @sqlquery NVARCHAR(500)
SET @sqlquery = 'SELECT * FROM parameters WHERE printer_type &...
July 16, 2012 at 7:32 am
Viewing 7 posts - 1 through 7 (of 7 total)