Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5
This is the forum to discuss the Wrox book Expert SQL Server 2005 Integration Services by Brian Knight, Erik Veerman; ISBN: 9780470134115
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 28th, 2009, 04:24 AM
bex bex is offline
Friend of Wrox
 
Join Date: Aug 2008
Location: london, , United Kingdom.
Posts: 154
Thanks: 7
Thanked 1 Time in 1 Post
Default How to drop the first 4 digits from an insert statment

Hi there, i need to insert records from an excel file to a sql database,
On excel i have a column with this number format:
44556612345677, i need to insert into sql2005 only the 12345677, i dont need this:445566;
and another column in excel has this format:
1234567, and i need to insert in sql like this:00001234567

i tryed to use the SSIS and this function with derived columns but not working.

this is the expression i tryed:
right([Connecting Phone Number] , LENGTH([Connecting Phone Number] ) - 6) '0000' + right([Current Phone Number], LENGTH([Current Phone Number]) - 6) as [Current Phone Number]





thanks
__________________
bx
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
insert & update statment problem (sql express) abdrabaa C# 2 July 15th, 2007 05:54 AM
problem with this insert statment in vba method Access VBA 1 June 22nd, 2005 12:26 PM
PROBLEM WITH INSERT STATMENT sanjeet General .NET 1 February 4th, 2005 08:39 AM
insert values into a MySQL DB from a drop down men crmpicco Classic ASP Basics 26 January 24th, 2005 07:10 AM
Number of Digits Colonel Angus Javascript How-To 3 December 1st, 2004 08:12 AM



All times are GMT -4. The time now is 07:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.