473,387 Members | 1,579 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,387 software developers and data experts.

Prompt for User Input

I want to create a Stored Procedure or a view and ask for user input.

Example: Select name from partner where code = 'User Input'.

Could you help please?
Jan 3 '08 #1
2 10178
ck9663
2,878 Expert 2GB
I want to create a Stored Procedure or a view and ask for user input.

Example: Select name from partner where code = 'User Input'.

Could you help please?
SQL-Server is primarily designed to be used as back-end storage of your data. Your requirement can be easily be resolve by using a Graphical User Interface (GUI) created by any front-end tool. You can create a form of some sort that can prompt user for input, then connect to your sql-server db. You have to create a stored proc that accepts the user input as a parameter and you can use it's value inside the stored proc. If you need to return a value, you might want to use function. In some cases (ie ASP), stored proc can return a value as recordset.

Hope this helps.

-- CK
Jan 3 '08 #2
SQL-Server is primarily designed to be used as back-end storage of your data. Your requirement can be easily be resolve by using a Graphical User Interface (GUI) created by any front-end tool. You can create a form of some sort that can prompt user for input, then connect to your sql-server db. You have to create a stored proc that accepts the user input as a parameter and you can use it's value inside the stored proc. If you need to return a value, you might want to use function. In some cases (ie ASP), stored proc can return a value as recordset.

Hope this helps.

-- CK

Thx, I tought so. Will look at a work around then.
Regards
Jan 3 '08 #3

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

Similar topics

13
by: JSE | last post by:
Hello everyone. here's what we have in an html file. <form ..... <input type=button name="comment" onclick=" prompt('enter comment',' ' )" > Is there anyway to get the value...
7
by: Petesman | last post by:
I am trying to make a prompt that will ask the user for some input... If I just use var input = prompt("dafa") everything works fine but the box is put in the top left corner of the window. I need...
3
by: J.P. Cummins | last post by:
In my ASP.NET application, I wish to have a page for administrators to edit items in a list. Preferably, I would like to use the javascript prompt for the 'rename' function, and a javascript alert...
8
by: lisaj | last post by:
I'm having huge difficulties producing a script for this: Write a javascript programme that will prompt for, and accept from the user, an input string which contains at least 8 characters. It...
11
by: gert365 | last post by:
I'm working on a scirpt to be used on a windows machine and I need to automate a user's input on the command prompt. For example I'm using os.system('mycommand') to excute the commands I want. ...
3
by: Steven | last post by:
I am using VC++ 6.0 to build a windows based application, however, my application allows user to input command arguments in the dos prompt windows. I want to have a warning message for user if they...
1
by: viswasai2k | last post by:
I have created a example.exe. And i am running this example.exe in the command prompt. when the example.exe is running i have to give a string input and coming next line another user input to...
17
by: psbasha | last post by:
HI, I have a Samplescript.When I run this Script,it should pop up message saying that whether to run Batch or Interactive I/P: SampleScript.py or SampleScript.pyc >>> SampleScript.py -->...
3
by: sigkill9 | last post by:
I've been working on this script all weekend and am almost done with it accept for one last detail; implementing a "process another number?" prompt after a user input is processed. The script...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.