Re: Using MS SQL Function in VB.Net 2003
- From: "Alex" <samalex@xxxxxxxxx>
- Date: Wed, 12 Sep 2007 08:22:11 -0500
Hi Nick,
Thanks for the reply, but my question was exactly what you assume I already
know... I'm new to Visual Basic coding, and though I have a number of books
and resources at hand, often times a simple problem like this eludes me.
What I'm looking for is a snippet or example of code showing how to execute
a SQL command in a class, then store the output in a variable. In this
instance I am using a function which returns a single integer, but you're
correct in staying the same snippet would work with any SQL statement which
only returned one value. This is the missing piece I need... I don't know
how to do this, and any assistance from you or anyone else would be much
appriciated.
Thanks again, and take care --
Alex
"Nick Chan" <zzzxtreme@xxxxxxxxx> wrote in message
news:1189566214.910908.315550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi alex, i do not know the 'expert' way
i call the function using "SELECT dbo.RetrieveGroupID(44)"
im sure u know the way to retrieve Selects
On Sep 12, 6:32 am, "Alex" <sama...@xxxxxxxxx> wrote:
Hi...
I'm rather new to VB.Net, so please forgive the elementary question. I'm
trying to use an MS SQL 2005 Function from within my VB.Net 2003 code,
and
as simple as might be, I'm unable to find any snippet of code that shows
me
how to do this.
The function is this 'RetrieveGroupID(@UserID)' and if for example
someone
uses 'RetrieveGroupID(44)' it will return the GroupID for User Number 44.
This application is using web forms, and the UserID is stored in the
session, so I have this already. My problem is I'm not sure how to
actually
run the Function then store the output as a variable.
Can someone point me to examples or a how-to showing this?
Thanks --
Alex
.
- Follow-Ups:
- Re: Using MS SQL Function in VB.Net 2003
- From: Mark Rae [MVP]
- Re: Using MS SQL Function in VB.Net 2003
- References:
- Using MS SQL Function in VB.Net 2003
- From: Alex
- Re: Using MS SQL Function in VB.Net 2003
- From: Nick Chan
- Using MS SQL Function in VB.Net 2003
- Prev by Date: Re: Visual Studio 2005 The breakpoint will not currently be hit... PLEASE HELP.
- Next by Date: RE: vb vs cs gridview header question
- Previous by thread: Re: Using MS SQL Function in VB.Net 2003
- Next by thread: Re: Using MS SQL Function in VB.Net 2003
- Index(es):
Relevant Pages
|