Solved

Adding Data to MS SQL 2005 Table

Posted on 2007-03-21
2
770 Views
Last Modified: 2008-02-26
Hello,

I have a table in MS SQL 2005 with a column called "itemnumbers". I would like to add to each item number in that column 00 so that it takes an item number like 12345 and makes it 0012345. Can someone let me know what SQL syntax I should use for this? I am just getting started with MS SQL and not sure how to do this. I appreciate your time in advance.

Thank you,
conquerdev
0
Comment
Question by:conquerdev
2 Comments
 
LVL 3

Accepted Solution

by:
cognos79 earned 500 total points
ID: 18766473
when you are doing the insert into the table append 00 to that field value and do the insert.
0
 

Author Comment

by:conquerdev
ID: 18766880
Thank you!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SqlDataBase 7 46
sql server computed columns 11 29
[SQL server / powershell] bulk delete table from CSV 8 30
Passing Parameter to Stored Procedure 4 23
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question