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 to link tables in sql server?

660


Can you explain what are commit and rollback in sql?

684


Does full backup break log chain?

733


Describe the left outer join & right outer join. : sql server database administration

755


What is surrogate key? : sql server analysis services, ssas

867






How to delete exactly duplicate records from a table?

805


What command do we use to rename a database?

772


What is a transact-sql statement?

709


what is sql server? : Sql server database administration

699


what is the system function to get the current user's user id? : Sql server database administration

734


How to connect to a sql server using odbc_connect()?

836


How to list all dsn entries on your local machine using odbc_data_source()?

755


What’s the distinction between dropping a info and taking a info offline?

806


Can we use having clause without group by?

734


What is table-valued sub query?

736