Hi............
How can i pass and access the array variable in Stored Procedures
show us your code... tnx
Here is my code..
CREATE PROC SP_GetList
@SNo[10] INT
AS
DECLARE @i INT
BEGIN
WHILE @i <> @SNo
BEGIN
SELECT * FROM LIST WHERE SNo=@SNo
@i=@i+1
END
END
dt = New DataTable
SQLCmd = New SqlCommand
With SQLCmd
.Parameters.AddWithValue("@SNo", ObjectSNo)
.Connection = YourConnection
.CommandType = CommandType.StoredProcedure
.CommandText = "YourStoredProcedureName"
dr = .ExecuteReader
dt.Load(dr)
End With
YourConnection.Close()
YourConnection.Dispose()
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.