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

What do you mean by an execution plan? How would you view it?

491


What are the types of stored procedures in an sql server?

470


how many clustered indexes can be created on a table? : Sql server database administration

561


Explain the etl (extraction, transformation, and loading)?

556


What is difference between order by and group by?

571






What is a trace frag?

635


What factors you will consider calculating the storage requirement for that view?

537


What is the difference between function and stored procedure in sql server?

480


What is transaction server distributed transaction?

553


What are the properties and different types of sub-queries?

558


How to bind a view to the schema of the underlying tables?

582


How do I shrink an ldf file?

559


Explain table valued parameters in sql server? Why tvp used?

553


What is transact-sql ddl trigger?

628


Can We Use Data-grids For Our Report In Ssrs?

147