Solved

SQL Server Script Prompt

Posted on 2010-08-14
3
400 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 250 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 250 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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 the fundamental information of how to create a table.

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now