adspace


how we can store the value like that 001,003,023 etc in sql
server 2005

Answer Posted / laxman r

UPDATE [APPPARAM] SET [APPPARAM_VALUE] = Replicate('0', 3 -
Len(convert(varchar, (@DATABASE_IDENTITY_NO + 1)))) +
convert(varchar, (@DATABASE_IDENTITY_NO + 1)) FROM
[APPPARAM] a WHERE a.[APPPARAM_KEY] = @AppParamKey

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create a trace in sql server?

1125


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1079


How to convert numeric expression data types using the cast() function?

1157


What is subquery? Explain the properties of a subquery?

1067


How do I start sql server 2017?

1021


What are the different SQL Server Versions you have worked on?

1084


How can you append an identity column to a temporary table?

1074


What kind of problems occurs if we do not implement proper locking strategy?

1508


What are the source of constraints?

1015


What is the difference between upgrade and migration in sql server?

1190


What is normalization and what are the advantages of it?

1065


How do I find query history in sql server?

1032


How to remove duplicate rows from table except one?

1096


do you know how to configure db2 side of the application? : Sql server database administration

1131


How to enter binary string literals in ms sql server?

1253