Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CommandBuilder vs Stored Proc for updating
Message
From
26/01/2010 21:33:32
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01445437
Message ID:
01446101
Views:
45
I don't know what "named parameters" and "positional parameters" are and how I (as a developer) have control over these. I will have to find something to read on that.

Dmitry,

Here's another way to look at it....in SQL Server, suppose you have a stored procedure like the following...
CREATE PROCEDURE dbo.GetOrders
@CustomerID int, @StartDate date, @EndDate date
as
     select * from Orders where CustomerID = @CustomerID AND OrderDate BETWEEN @StartDate AND @EndDate
GO
If I used name parameters to call the proc, I can pass in the parms in any order.....such as...
EXEC dbo.GetOrders @StartDate = '1-1-1999', @EndDate = '1-31-1999', @CustomerID = 101
However, if I simply pass in values without referring to the parms by name, I have to pass them in, in the original order specified in the proc
EXEC dbo.GetOrders    101, '1-1-1999',   '1-31-1999'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform