473,402 Members | 2,050 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,402 software developers and data experts.

Passing field valuse to stored procedure

Trying to create a complex stored-procedure.

After I execute a Select statment I want to pass the value of a field
to another sp for each record in that table.

ie:
Select field1, field2 from MyTable
exec rValue = MyStoredProc 'SomeParam', field2

What I find is that field2 is passed as a literal string 'field2' and
not the value of field2

What am I doing wrong ?

Thanks
Sid .
Nov 12 '05 #1
1 1211
Lyle Fairfield <Mi************@Invalid.Com> wrote in
news:9e******************************@remailer.fre ll.eu.org:
Eli Sidwell wrote:
Trying to create a complex stored-procedure.

After I execute a Select statment I want to pass the value of a field
to another sp for each record in that table.

ie:
Select field1, field2 from MyTable
exec rValue = MyStoredProc 'SomeParam', field2

What I find is that field2 is passed as a literal string 'field2' and
not the value of field2

What am I doing wrong ?

Thanks
Sid .


it should be written ^+\\field2//+^


I did not write the answer given above.
I have no idea if the suggestion is useful, benign or destructive.
As you note, what you want to do is somewhat complex. It probably requires
a loop in your SPROC. I try never to use "EXEC" in SPROCS, preferring to
write or rewrite the script. This may help with String recognition.

As for you, Don ...
You have a very fine mind; your general knowledge is extensive; your
language is exemplary; in short you are educated. Why waste these qualities
in this destructive and compelling pursuit which seems to be consuming you?
Is it so ethical to out-savage the savages?
Is it so rewarding to attack everyone, regardless of their previous
interaction with you?
You could come back and patiently, as you have done before, (perhaps not SO
patiently), point out the errors and hubris of the de facto owners of the
group. You could help return the group to a state where intelligent
discussion is common.
Now, you are only destructive. Is this the epitaph you want,
"I destroyed Comp Databases MS-Access"?
Picture it chiselled on some granite slab in a high plains graveyard, Don.
Will it make your ghost feel good?

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: WGW | last post by:
Though I am a novice to MS SQL server (2000 I believe), I can do almost! everything I need. Maybe not efficiently, but usefully. However, I have a problem -- a complex query problem... I can...
2
by: Bob | last post by:
I'm new to Access projects and SQL server and am not a veteran VB programmer. There's a cry for help! I'm attempting to print the current form on screen by using a command button which the user...
1
by: David Shorthouse | last post by:
Hey folks, I am attempting to pass null as the input value from a series of textboxes if the user does not input a value prior to submit. To try and do this, I am using a vbscript function on...
14
by: jehugaleahsa | last post by:
Hello: I am working with Oracle .NET Stored Procedures. I would like to know how to return the results of a SELECT statement. I have tried returning a OracleRefCursor and a DataTable, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.