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

Answer Posted / sandeep modapathi

replicate('0',3-len(field_name))+field_name

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a function call a stored procedure in sql server?

609


how would you troubleshoot blocking? : Sql server database administration

621


What are the database objects? : SQL Server Architecture

624


Explain “not null constraint” in sql server?

636


How do I make a resultset scrollable?

615






Can we insert data into a view?

698


Write a sql query to sort on different column name according to the parameters passed in the function?

612


How to concatenate two strings in SQL Server.

675


How to change the data type of an existing column with "alter table" statements in ms sql server?

620


What are basics of policy management?

724


What are the ways available in sql server to execute sql statements?

677


what are the three command line utilities and what are their primary functions?

113


how to trace the traffic hitting a sql server? : Sql server database administration

1274


How to create a large table with random data for index testing in ms sql server?

628


Can a stored procedure call itself or a recursive stored procedure? How many levels of sp nesting is possible?

664