Click here to Skip to main content
15,905,508 members
Home / Discussions / Database
   

Database

 
GeneralRe: tell me some idea Pin
Dave Kreskowiak25-Jun-04 7:43
mveDave Kreskowiak25-Jun-04 7:43 
GeneralRe: tell me some idea Pin
Dave Kreskowiak25-Jun-04 7:45
mveDave Kreskowiak25-Jun-04 7:45 
GeneralRe: tell me some idea Pin
Christian Graus27-Jun-04 11:16
protectorChristian Graus27-Jun-04 11:16 
GeneralOracle GUID support Pin
Michael Wolski23-Jun-04 4:46
Michael Wolski23-Jun-04 4:46 
GeneralJET download Pin
RChin23-Jun-04 0:56
RChin23-Jun-04 0:56 
GeneralRe: JET download Pin
Dave Kreskowiak25-Jun-04 7:48
mveDave Kreskowiak25-Jun-04 7:48 
GeneralRe: JET download Pin
Graham Bradshaw26-Jun-04 14:16
Graham Bradshaw26-Jun-04 14:16 
GeneralSQLXML & Default parameters Pin
RichardGrimmer22-Jun-04 22:30
RichardGrimmer22-Jun-04 22:30 
Hi there,

Have an app which uses SQLXML to provide a webservice interface to my SQLServer DB.

Have a stored procedure declared:

<br />
CREATE PROCEDURE GetSurveyCompanies<br />
<br />
@SurveyCompanyID integer = 1<br />
<br />
AS<br />
<br />
Declare @SQL NVARCHAR (4000)<br />
<br />
set @SQL = 'SELECT * FROM SurveyorCompany WHERE IDSurveyorCompany='<br />
<br />
set @sql = @sql + CAST (@SurveyCompanyID as VARCHAR(2)) + ' FOR XML AUTO'<br />
<br />
exec sp_executesql @sql<br />
<br />


And am calling it using the SOAP toolkit from VB6 using the following...

<br />
oClient.GetSurveyCompanies(1)<br />

(Have omitted the rest of the setup - sure it's OK)

When calling speciying the param, everything is OK (apart from the XML coming back garbled, but think that's a different issue!), but when I attempt to use the default param value specified in the sproc, am getting Invalid procedure call - the SOAP CLient is reporting that "incorrect number of parameters supplied" (predictably!)

Question is, how do I use the default value - have tried passing in NULL (type mismatch), Nothing (same error), and even 'NULL', but nothing seems to work - any ideas anyone?



"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
GeneralSql Server does not exists or acces denied Pin
pdnitin22-Jun-04 21:09
pdnitin22-Jun-04 21:09 
GeneralRe: Sql Server does not exists or acces denied Pin
Thea Burger22-Jun-04 21:16
Thea Burger22-Jun-04 21:16 
Generalcheck for the duplicate data Pin
viviansm21-Jun-04 20:06
viviansm21-Jun-04 20:06 
GeneralRe: check for the duplicate data Pin
Wilbur J. Pereira21-Jun-04 22:11
Wilbur J. Pereira21-Jun-04 22:11 
GeneralRe: check for the duplicate data Pin
VenkatFor.NET22-Jun-04 3:06
VenkatFor.NET22-Jun-04 3:06 
GeneralPulling the SECOND latest readings for ALL properties in a table! Pin
lostsheep00721-Jun-04 19:48
lostsheep00721-Jun-04 19:48 
GeneralRe: Pulling the SECOND latest readings for ALL properties in a table! Pin
Michael Potter22-Jun-04 6:16
Michael Potter22-Jun-04 6:16 
GeneralPassword protection and Access Pin
Guinness4Strength21-Jun-04 14:21
Guinness4Strength21-Jun-04 14:21 
GeneralRe: Password protection and Access Pin
Mike Ellison21-Jun-04 14:27
Mike Ellison21-Jun-04 14:27 
GeneralRe: Password protection and Access Pin
Guinness4Strength21-Jun-04 16:27
Guinness4Strength21-Jun-04 16:27 
GeneralRe: Password protection and Access Pin
Guinness4Strength21-Jun-04 16:30
Guinness4Strength21-Jun-04 16:30 
GeneralRe: Password protection and Access Pin
Mike Ellison22-Jun-04 5:45
Mike Ellison22-Jun-04 5:45 
Generalvariables in sql statement Pin
Member 54508121-Jun-04 8:13
Member 54508121-Jun-04 8:13 
GeneralQuestion on updating multiple tables thru DataGrid Pin
Flack21-Jun-04 7:02
Flack21-Jun-04 7:02 
Generaltable name as a string Pin
si_6921-Jun-04 1:14
si_6921-Jun-04 1:14 
GeneralRe: table name as a string Pin
Steven Campbell21-Jun-04 2:57
Steven Campbell21-Jun-04 2:57 
GeneralRe: table name as a string Pin
VenkatFor.NET21-Jun-04 3:01
VenkatFor.NET21-Jun-04 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.