473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Why does this sp only return an integer

Hi am using vs2008 writing asp.net.vb app. My stored proc should return a single name, well in theory at least

Expand|Select|Wrap|Line Numbers
  1. ALTER PROCEDURE [dbo].[getusername]
  2.  
  3.     (
  4.     @email varchar ,
  5. @retvalue nvarchar (10)output
  6.     )
  7.  
  8. AS
  9.  
  10.  /*SET NOCOUNT ON */
  11.  
  12.  
  13.  
  14.      SELECT        myemailaddress
  15.      FROM            newtable
  16.      WHERE        (myemailaddress = @email)
  17.  
can someone please explaoin what I need to do to get it to return the single name that I want.
Many thanks
Nov 4 '10 #1
2 1546
Well I have solved it, so please mark this as done. Ty
Nov 5 '10 #2
You have done sp with single column and where condition meet it will return only that record.
Feb 3 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mark Jones | last post by:
I need a little hlep. Can anyone show me how to use RNGCryptoServiceProvider to return an integer value within a specified range using vb.net? The function would look something like this ...
1
by: GMG | last post by:
Null fields are missing, how can I prevent this and return all fields in the dataset. I am using the XML returned from a DOTNET XML webservice with a data island in Internet Explorer. The error...
17
by: Yogi_Bear_79 | last post by:
I have the following code: sscanf(line, "%d", n_ptr) !=1 || n_ptr <=0; It only partially works. If the user types a character other than 0-9 to start the string it fails. However as long as...
11
by: Jeff | last post by:
Using V Web 2005: I have checkbox on a page. I want to store either 0 if the box is not checked or 1 if it is (as integers - because the sql table will ultimately be used by other software that...
4
by: arnuld | last post by:
1.) we usually say /return 0/ indicates success e.g #include <iostream> int main() { int i=3; std::cout << i << std::endl; return 0;
4
by: d3vkit | last post by:
I have a form on my page, and some javascript which uses ajax to submit the form, and then opens the new page in a div using ajax so there is no refresh. This works fine. But the problem is this: all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.