Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 28th, 2009, 04:24 AM
bex bex is offline
Friend of Wrox
 
Join Date: Aug 2008
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





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 09:39 AM
insert values into a MySQL DB from a drop down men crmpicco Classic ASP Basics 26 January 24th, 2005 08:10 AM
Number of Digits Colonel Angus Javascript How-To 3 December 1st, 2004 09:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.