Input parameter in sql

Shahad g

We have a field 'RegCode' that we need to make as an input parameter from the end user and since most of the RegCode records starts with "JB01." we want it to be applied by default and the input parameter will be entered by the end user as a number for example: end user will enter 7001078315 it will captured as "JB01.7001078315". your help is highly appreciated !

Dzanan Begovic

If you have an input parameter for a SQL procedure, for example @RegCode NVARCHAR(128), then you can SET it to a new value at the beginning of the SQL procedure code:

SET @RegCode = 'JB01.' + @RegCode

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How can code User input parameter from first date to last date (SQL query manager)

From Dev

Define the name of the input parameter

From Dev

pass list of values as input parameter to PL/SQL procedure

From Dev

dynamic sql in stored procedure with column name as input parameter

From Dev

Func<void> as input parameter

From Dev

Input parameter for report in SQL

From Dev

Calling from classic ASP to a SQL Server stored procedure that has a binary datatype input parameter

From Dev

@parameter = @parameter syntax (SQL Server)

From Dev

Single SQL query with input tvp parameter when tvp doesn't contain any row

From Dev

Pass $sSymbol an input parameter to a Class

From Dev

How to change input parameter in Moq?

From Dev

Spark SQL UDF with complex input parameter

From Dev

Is it possible to write a function in SQL Server 2000 accepting input parameter as a table?

From Dev

Search records in SQL Server using CASE based on one Input Parameter in Where clause

From Dev

How to provide input parameter for SQL script?

From Dev

Func<void> as input parameter

From Dev

How to use a SQL Server Parameter Input from Command Line?

From Dev

SQL query with encoded input parameter returns empty result in MySQL

From Dev

SQL stored procedure; using input parameter to call another stored proc

From Dev

Can you pass table input parameter to SQL Server from Python

From Dev

Constraining the generic input parameter

From Dev

Oracle JDBC call PL/SQL procedure with input parameter a table of records

From Dev

How to get input and output parameter to the all stored procedures in T-SQL

From Dev

SQL Agent job to select a value from table and pass the values as input parameter to execute stored procedure

From Dev

SQL ORDER BY CSV input parameter

From Dev

Display SQL parameter in Input Values prompt

From Dev

Create input parameter box

From Dev

Update, if not exists Insert using XML input parameter in SQL Server

From Dev

SSRS Deactive Input Parameter

Related Related

  1. 1

    How can code User input parameter from first date to last date (SQL query manager)

  2. 2

    Define the name of the input parameter

  3. 3

    pass list of values as input parameter to PL/SQL procedure

  4. 4

    dynamic sql in stored procedure with column name as input parameter

  5. 5

    Func<void> as input parameter

  6. 6

    Input parameter for report in SQL

  7. 7

    Calling from classic ASP to a SQL Server stored procedure that has a binary datatype input parameter

  8. 8

    @parameter = @parameter syntax (SQL Server)

  9. 9

    Single SQL query with input tvp parameter when tvp doesn't contain any row

  10. 10

    Pass $sSymbol an input parameter to a Class

  11. 11

    How to change input parameter in Moq?

  12. 12

    Spark SQL UDF with complex input parameter

  13. 13

    Is it possible to write a function in SQL Server 2000 accepting input parameter as a table?

  14. 14

    Search records in SQL Server using CASE based on one Input Parameter in Where clause

  15. 15

    How to provide input parameter for SQL script?

  16. 16

    Func<void> as input parameter

  17. 17

    How to use a SQL Server Parameter Input from Command Line?

  18. 18

    SQL query with encoded input parameter returns empty result in MySQL

  19. 19

    SQL stored procedure; using input parameter to call another stored proc

  20. 20

    Can you pass table input parameter to SQL Server from Python

  21. 21

    Constraining the generic input parameter

  22. 22

    Oracle JDBC call PL/SQL procedure with input parameter a table of records

  23. 23

    How to get input and output parameter to the all stored procedures in T-SQL

  24. 24

    SQL Agent job to select a value from table and pass the values as input parameter to execute stored procedure

  25. 25

    SQL ORDER BY CSV input parameter

  26. 26

    Display SQL parameter in Input Values prompt

  27. 27

    Create input parameter box

  28. 28

    Update, if not exists Insert using XML input parameter in SQL Server

  29. 29

    SSRS Deactive Input Parameter

HotTag

Archive