Solved

Adding Data to MS SQL 2005 Table

Posted on 2007-03-21
2
766 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now