Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL Server Script Prompt

Posted on 2010-08-14
3
Medium Priority
?
422 Views
Last Modified: 2012-05-10
In my SQL query i am using the following parameters for users to input values

userid= 'N[&1]' , something like this customercode= 'N[&2]'  

Is there any other way for user to get prompt to input values ??

should work in MS SQL and T-SQL

'[%0]' SOMETHING LIKE THIS
0
Comment
Question by:DESAIY
3 Comments
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 1000 total points
ID: 33439944
This depends entirely on your development environment.
In Sql Server Management Studio, there is no such thing as a parameter prompt like the one Access has.
0
 
LVL 13

Assisted Solution

by:p_nuts
p_nuts earned 1000 total points
ID: 33440712
in reporting services it's done through @varname.

in most other programming languages you have to build the interaction..
0
 

Author Comment

by:DESAIY
ID: 33441743
Thank you guys for your response. much appreciated.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question