🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2289

BCB6 & MSSQL & Stored Procedures

#2289
From: Bo Sundahl
Date: Mon, 04 Aug 2003 21:08
26 lines
1875 bytes
Hi

I'am trying to get a Stored Procedure work with MS SQL Server 7, but I keep
getting the following error (from SQL Monitor)

3000    22:47:07  SQL Prepare: MSSQL - DBO.DEMO_ADD :1,
3001    22:47:07  SQL Misc: MSSQL - Set stored procedure on or off
3002    22:47:07  SQL Data In: MSSQL - Param = 1, Name = P_EVENT_MSEC, Type
= fldINT32, Precision = 0, Scale = 0, Data = 765
3003    22:47:07  SQL Misc: MSSQL - Set statement type
3004    22:47:07  SQL Execute: MSSQL - DBO.DEMO_ADD :P_EVENT_MSEC,
3005    22:47:07  SQL Error: MSSQL -
3006    22:47:07  SQL Error: MSSQL - Unmapped SQL Error Code: 0
3007    22:47:07  SQL Stmt: MSSQL - Reset
3008    22:47:07  SQL Stmt: MSSQL - Close

If I call Stored Procedures without parameters it works fine.
But when I add parameters I get the listed error.
I have tried with both MS SQL Server 7 and 2000 with the same result.

The same code works fine with Oracle 8

Any suggestions ?

Thanks in advance
Bo Sundahl
Technical Details
Message-ID: <3f2ecb9c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,1c4e2735eab8559,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-08-04 14:11:27 PST
From: "Bo Sundahl" <innovate@get2net.dk>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: BCB6 & MSSQL & Stored Procedures
Date: Mon, 4 Aug 2003 23:08:56 +0200
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.62.76.214
Message-ID: <3f2ecb9c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060031388 80.62.76.214 (4 Aug 2003 14:09:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail