Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CommandBuilder vs Stored Proc for updating
Message
De
26/01/2010 21:33:32
 
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01445437
Message ID:
01446101
Vues:
44
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'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform