RE: parameter name problem

From: Stephen Giles (Giles_at_discussions.microsoft.com)
Date: 10/08/04


Date: Fri, 8 Oct 2004 08:33:07 -0700

Hi.

Although is it not an elegant solution, you can pass parameters into a
stored procedure positionally.

For example, if you have a proc with two parameters you can call it as:

exec MyProc @parm1 = "x', @parm2 = 'y'

or you can simply call

exec MyProc 'x', 'y' .

If you choose this method you must supply a value for all parameters (or the
NULL operator if you don't have a value) in the same order as you parameters.

I can't remember of PL/SQL will also allow for positional value calls of its
stored procedures.

I hope this helps.

Steve

"Amish Manubhai Shah" wrote:

> I am developing crystal report on both database oracle and sql server
> When I migrate my report from oracle to sql server
> My problem is that in store proc we have to add @ before parameter name in
> sql server and in oracle it is a simple string , so how can I define
> parameter without @.
>
> This is helpful to me because i have to redefine all parameter in
> crystal report after migrating from oracle to sql server
>
>
>
> --
> Thanks And Reagrds
> Amish Manubhai Shah (Intra Action Software)
>
>
>



Relevant Pages

  • Re: Can you use the OleDb classes for SQL Server?
    ... No. Oracle uses different syntax, data flow and other methodologies in their ... that uses the OracleClient .NET data provider to access Oracle. ... Hitchhiker's Guide to Visual Studio and SQL Server ... I agree that it would be neat to just call a stored procedure for the ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Custom Procedure Replication Error with Oracle Subscriber
    ... The reason we were drawn to the custom procedure is that we have long column ... We are trying to handle the mapping in the custom stored procedure in Oracle ... since there is no way to do this in SQL Server that we could come up with. ...
    (microsoft.public.sqlserver.replication)
  • Re: Insert Error: Column name or number of supplied values does not match table definition.
    ... I ported this to a stored procedure and I still get the same error message ... procedure from SQL Server Management Studio just fine. ... I created a separate proc to drop the temp table if it exists and call it ... You need to learn about parameterised statements. ...
    (microsoft.public.data.oledb)
  • Strange Problem. Unable to run stored procedure:
    ... I am running a .NET 2003 Windows service against Oracle 9i. ... When it calls the proc it gets the following error. ... "Unable to run stored procedure: ...
    (microsoft.public.dotnet.framework.adonet)
  • Anyone seen this before.
    ... I am running a .NET 2003 Windows service against Oracle 9i. ... When it calls the proc it gets the following error. ... "Unable to run stored procedure: ...
    (microsoft.public.dotnet.general)

Quantcast