Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Adding Data to MS SQL 2005 Table

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Re-appearing SQL Server Agent jobs 7 29
how to just get time from a date 6 32
RAISERROR WITH NOWAIT 2 16
HTML <font style="color:red"> 9 31
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

861 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