I am using SQLEXPRESS 2005 and I want to call my function() from my Class.vb file into the stored procedure.

Like I made this

public function amount(Unit as double, Price as double)
dim GetValue as double
GetValue=Unit * Price
return GetValue
end function

You can't call method from SP, but verse is correct.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.