How to compare SSIS Variable and Column In the table!!.

Hi Folks,
My Requirement IS :
1<sup>st</sup>run: if the record does not exist
in the table insert the record (file_name, last_modified_file_date) and create a copy in the archive folder with file_name_currentdate.csv
 Daily run:
retrieve the last_modified_file_date from the input file and check if the retrieved date is greater than the last_modified_file_date in the table:
If true:
create a copy of the input file in the archive folder and update the last_modified_file_date in the table with the retrieved date
If false don’t do nothing because the file has been archived in one of the previous runs.
I have already retrieving the modified date and File Nae iserting into Filename Table: (That table has 2 columns which are FileName and FileDate) so In script task everytime the variable getting Modified date(retrieve the last_modified_file_date
from the input file) could yu please give me idea after that how I can Compre the existing table record and variable. I have already
imported the all Filenames and Modified into table like below.
Could you please give your ideas friends.

Try this:
       1) Execute SQL Task (In the Parameter mapping, pass filename and fileLastModified date retrieved from the file - your SSIS Variable)
       2) In the ‘SQL statement’, Write a TSQL like this:
--declare these variables before the use
SET @filename=?
SET @fileLastModifieddate=?
--declare @MaxLastTblDate and @flag=0
select @MaxLastTblDate = Max(last_modified_file_date) from Table T1
If (@fileLastModifieddate>@MaxLastTblDate)
--Do your insert here
--Update the variable with @flag (say 1)
3) Set the value of @flag in the Result set of Execute SQL (another SSIS variable)
4) In the next control flow component, do the file archiving.
5) Between these two components, check the value of the @flag variable in the precedence constraints (whether to copy the file for archiving or not)
Hope this helps.

Similar Messages

  • How to compare index names and columns from different user?

    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
                       cnt
               FROM (  SELECT index_owner,
                              index_name,
                              listagg (column_name, ',')
                                 WITHIN GROUP (ORDER BY column_position)
                                 indexed_cols
                         FROM dba_ind_columns
                        WHERE index_name='XPKTBL_A'
                     GROUP BY index_owner, index_name))
    SELECT CASE
              WHEN cnt > 1 THEN 'Indexes are different'
              WHEN cnt = 0 THEN 'Indexes dont exist'
              WHEN cnt > 1 THEN 'Indexes are identical'
           END
              commnt
      FROM t
    Result:
    Indexes are different
    but Actually if you check below they are same After when I run this query:
    SELECT index_owner,
             index_name,
             listagg (column_name, ',') WITHIN GROUP (ORDER BY column_position)
                indexed_cols
        FROM dba_ind_columns
       WHERE index_name='XPKTBL_A'
    GROUP BY index_owner, index_name;
    Result:
    Index_owner
    Index_name
    Index_cols
    USER1
    XPKTBL_A
    FIELD_A1
    USER2
    XPKTBL_A
    FIELD_A1

    Hi,
    Erhan_toronto wrote:
    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
    So index_owner is 'USER1' in one case, and 'USER2' in the other; right?
    A string that starts with 'USER1' will be distinct from a string that starts with 'USER2', no matter what the rest of the string contains.  Maybe you don't want to compare the owners, or maybe you meant to use some other column (such as table_name) instead of index_owner).
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE, CREATE INDEX and CONNECT statements), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to compare 2 NVARCHAR(MAX) columns in same table ?

    I have 2 strings i am trying to compare them ,If user changes some data then insert should happen to change log table .
    here is the condition i am using it
    If dbo.RemoveMultipleSpacesItr(@ProgBusSolPrev) <> dbo.RemoveMultipleSpacesItr(@ProgBusSol)
    begin
    Insert into ptt_pmt_import_ch(ProgramID,ColumnName,Prev_Value,New_Value,UpdatedBy) values(@Programid,'Solution to Problem',@ProgBusSolPrev,@ProgBusSol,@UpdatedBy)
    end
    My Scalar Function to compare 2 strings and replace spaces in strings.
    CREATE FUNCTION dbo.RemoveMultipleSpacesItr(@str NVARCHAR(MAX))
    RETURNS NVARCHAR(MAX)
    AS
    BEGIN
    WHILE CHARINDEX(' ', @str) > 0
    SET @str = REPLACE(@str, ' ', '');
    RETURN @str;
    END
    If my Input values for
    @ProgDescriptionPrev='These issues are creating missed appointments and unnecessary scheduling techs on appt that are not needed. This impacts areas that are in an overbooking situation. Potentially overbooks appts during specific time of day, and increases Appt misses. Potentially decreasing Appts met by .3%, which has potential customer services impacts of 10K per year. This impacts Load Supervisors as they have to manually calculate worksteam percentage allocations. Estimating 20 users a day * 30mins= 50hrs week =1.1 Supervisor HC= 90K year. IT HelpDesk Tickets (sometimes duplicate) are also opened by front-line agents and are unable to be resolved. So this is a total of about 100k+ a year in cost savings/avoidance.'
    @ProgDescription='These issues are creating missed appointments and unnecessary scheduling techs on appt that are not needed. This impacts areas that are in an overbooking situation. Potentially overbooks appts during specific time of day, and increases Appt misses. Potentially decreasing Appts met by .3%, which has potential customer services impacts of 10K per year. This impacts Load Supervisors as they have to manually calculate worksteam percentage allocations. Estimating 20 users a day * 30mins= 50hrs week =1.1 Supervisor HC= 90K year. IT HelpDesk Tickets (sometimes duplicate) are also opened by front-line agents and are unable to be resolved. So this is a total of about 100k+ a year in cost savings/avoidance.'
    Only difference in strings is space(' ')
    if there is no difference in strings avoiding spaces in strings, i need to insert into change log. But using above query even there is no change in string values it inserts in to change log table.Please help on this,i need solution for this
    sonali malla

    Hi,,,
    Are you lecturing my dynamic script? Thither is a solution for this problem - we can convert all column values to nvarchar(max) first - most common types can be converted to nvarchar(max) and only some exotic types cannot be converted.
    Here is the script using nvarchar(max):
    CREATE TABLE Test1(id INT,col2 INT,col3 INT, col4 int, col5 varchar(10), col6 date)
    CREATE TABLE Test2(id INT,col2 INT,col3 INT, col4 int, col5 varchar(10), col6 date)
    INSERT INTO Test1 VALUES (1,2,3,9,'q', '20120101'),(4,5,6,10,'z','20120404')
    INSERT INTO Test2 VALUES (1,2,7,8, 'm','19990101'),(4,8,6,12, 'dd','20110505')
    declare @sql nvarchar(max), @Cols nvarchar(max)
    select @Cols = stuff((select ',(cast(' + QUOTENAME(column_name) + ' as nvarchar(max)),' +
    QUOTENAME(column_name,'''') + ')' from Information_schema.columns C
    where C.TABLE_SCHEMA = 'dbo' and c.TABLE_NAME = 'Test1' and c.COLUMN_NAME <> 'id'
    order by c.COLUMN_NAME for XML path('')),1,1,'')
    set @sql = 'SELECT t1.c as [Column Name] , t1.col as [Expected Value], t2.col as [Actual Value]
    FROM (select id, c, col from Test1 cross apply (values' + @Cols + ' ) d(col, c) ) t1
    INNER JOIN
    (select id, c, col from Test2 cross apply (values' + @Cols+ ' ) d(col, c) ) t2
    ON t1.id=t2.id AND t1.c=t2.c
    WHERE t1.col<>t2.col
    Order by t1.c'
    print @sql
    execute (@sql)
    If Any other Concern, let me know.
    Thanks :-)

  • How to display records dynamically by columns of the table?

    hi to all,
    i'm trying to figure out quite a long time now. is it possible to populate html table with records via columns? (because most of us are familiar with rows up to the last record) i do have a pseudocode below:
    print ('<table>');
    while (!eof) {
    if (cnt % 4 == 0)
    // breakline w/c means let's have another row since
    // we displayed the records 4x now so we need
    // another row to continue
    else
    // continue column generation
    cnt++
    print ('</table>');
    i don't know if this is quite clear... but i do hope you know what my goal is... i have an app that i need to display (like live.com in searching images) to display all the searched items (and then onmouseover it will get big some sort)... but since the records i have are the ff:
    CREATE TABLE "ERA_DB"."PARTS"
    (     "PARTID" VARCHAR2(15 BYTE) NOT NULL ENABLE,
         "PARTNAME" VARCHAR2(75 BYTE) NOT NULL ENABLE,
         "RETAILPRICE" NUMBER NOT NULL ENABLE,
         "COSTPRICE" NUMBER NOT NULL ENABLE,
         "ACTIVE" NUMBER DEFAULT 1,
         "CATEGORY" VARCHAR2(2 BYTE) DEFAULT 'NA',
         "DESCRIPTION" VARCHAR2(255 BYTE),
         "TYPE" NUMBER DEFAULT 1 NOT NULL ENABLE,
         CONSTRAINT "PARTS_PK" PRIMARY KEY ("PARTID") ENABLE
    i need to display like the ff:
    partname
    partid
    image
    description
    price
    these are inside a box w/ borders (the concept is like live.com in their image search)
    thanks so much!

    This was written for pear::db but I think it should go pretty similar for ADODB.
    $result = $db->query ("SELECT PRODUCT FROM INVENTORY WHERE COMPANY='$_SESSION[company]'");
    while ($data1 = $result->fetchRow(DB_FETCHMODE_ASSOC))
    $data2 = $result->fetchRow(DB_FETCHMODE_ASSOC);
    $data3 = $result->fetchRow(DB_FETCHMODE_ASSOC);
    $data4 = $result->fetchRow(DB_FETCHMODE_ASSOC);
    $rows .= " <tr>\n";
    $rows .= " <td width=150 align=right>".$data1[PRODUCT]."</td>\n";
    $rows .= " <td width=150 align=right>".$data2[PRODUCT]."</td>\n";
    $rows .= ' <td width=150 align=right>".$data3[PRODUCT]."</td>\n";
    $rows .= " <td width=150 align=right>".$data4[PRODUCT]."</td>\n";
    $rows .= " </td>\n";
    $rows .= " </tr>\n";
    }

  • JTable fixed Row and Column in the same window

    Hi
    Could anyone tip me how to make fixed row and column in the same table(s).
    I know how to make column fixed and row, tried to combine them but it didnt look pretty.
    Can anyone give me a tip?
    Thanks! :)

    Got it to work!
    heres the kod.. nothing beautiful, didnt clean it up.
    * NewClass.java
    * Created on den 29 november 2007, 12:51
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package tablevectortest;
    * @author Sockan
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    public class FixedRowCol extends JFrame {
      Object[][] data;
      Object[] column;
      JTable fixedTable,table,fixedColTable,fixedTopmodelTable;
      private int FIXED_NUM = 16;
      public FixedRowCol() {
        super( "Fixed Row Example" );
        data =  new Object[][]{
            {      "","A","A","A","",""},
            {      "a","b","","","",""},
            {      "a","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","","","","","f"},
            {      "","b","","","",""},
            {      "","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","b","","","",""},
            {      "","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","","","","","f"},
            {      "I","","W","G","A",""}};
        column = new Object[]{"A","B","C","D","E","F"};
        AbstractTableModel fixedColModel = new AbstractTableModel() {
          public int getColumnCount() {
            return 1;
          public int getRowCount() {
            return data.length;
          public String getColumnName(int col) {
            return (String) column[col];
          public Object getValueAt(int row, int col) {
            return data[row][col];
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel    model = new AbstractTableModel() {
          public int getColumnCount() { return column.length-2; }
          public int getRowCount() { return data.length - FIXED_NUM; }
          public String getColumnName(int col) {
           return (String)column[col+1];
          public Object getValueAt(int row, int col) {
            return data[row][col+1];
          public void setValueAt(Object obj, int row, int col) {
            data[row][col+1] = obj;
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel fixedTopModel = new AbstractTableModel() {
          public int getColumnCount() { return 1; }
          public int getRowCount() { return data.length - FIXED_NUM; }
          public String getColumnName(int col) {
           return (String)column[col];
          public Object getValueAt(int row, int col) {
            return data[row][col];
          public void setValueAt(Object obj, int row, int col) {
            data[row][col] = obj;
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel fixedModel = new AbstractTableModel() {     
          public int getColumnCount() { return column.length-2; }
          public int getRowCount() { return FIXED_NUM; }
          public Object getValueAt(int row, int col) {
            return data[row + (data.length - FIXED_NUM)][col+1];
        table = new JTable( model );
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        fixedTable = new JTable( fixedModel );
        fixedTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        fixedColTable= new JTable(fixedColModel);
        fixedColTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedColTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        fixedTopmodelTable = new JTable(fixedTopModel);
        fixedTopmodelTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedTopmodelTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);   
        JScrollPane scroll      = new JScrollPane( table );
         scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        JScrollPane fixedScroll = new JScrollPane( fixedTable ) {
          public void setColumnHeaderView(Component view) {}
        fixedScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        fixedScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
        JScrollBar bar = scroll.getVerticalScrollBar();
        JScrollBar dummyBar = new JScrollBar() {
          public void paint(Graphics g) {}
        dummyBar.setPreferredSize(bar.getPreferredSize());
        scroll.setVerticalScrollBar(dummyBar);
        final JScrollBar bar1 = scroll.getHorizontalScrollBar();
        JScrollBar bar2 = fixedScroll.getHorizontalScrollBar();
        bar2.addAdjustmentListener(new AdjustmentListener() {
          public void adjustmentValueChanged(AdjustmentEvent e) {
            bar1.setValue(e.getValue());
        JViewport viewport = new JViewport();
        viewport.setView(fixedColTable);
        viewport.setPreferredSize(fixedColTable.getPreferredSize());
        fixedScroll.setRowHeaderView(viewport);
        fixedScroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, fixedColTable
            .getTableHeader());   
        JViewport viewport2 = new JViewport();
        viewport2.setView(fixedTopmodelTable);
        viewport2.setPreferredSize(fixedTopmodelTable.getPreferredSize());
        scroll.setRowHeaderView(viewport2);
        scroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, fixedTopmodelTable
            .getTableHeader()); 
        scroll.setPreferredSize(new Dimension(600, 19));
        fixedScroll.setPreferredSize(new Dimension(600, 100)); 
        getContentPane().add(     scroll, BorderLayout.NORTH);
        getContentPane().add(fixedScroll, BorderLayout.CENTER);   
      public static void main(String[] args) {
        FixedRowCol frame = new FixedRowCol();
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent e ) {
            System.exit(0);
        frame.pack();
        frame.setVisible(true);
    }

  • How to provide Link to Column in  the Table

    Hi
    please let me know how to provide link to one column in the table.
    i have two views
    in one view i will dispaly emp id and emp dept in a table
    i have to provide link to the emp id column table
    when i click emp id column then it will fire other view and display remaining details of emp.
    so please let me know how to provide link to column in the table.
    Solution is urgent
    regards
    mmukesh

    Hi Mukesh,
       You can insert LinkToAction column in table.you can have two cattributes in Valuenode one is of type boolean and other is of type string(empno)
    you can create eventhander in that you can fire plug to seconf view where you can displays the emp details
    With Regards
    Naidu

  • How can I preserve row and column addresses on multiple cells at once in Numbers?

    How can I preserve row and column addresses on multiple cells at once in Numbers 3.2.2? I do a lot of rearranging and sorting and want to reference cells in other sheets. After entering the formulas (example: '=Sheet1::Table 1::H126') I will sort the table and the formulas will not move with the sort.  I think I can fix this by going cell by cell checking the 'preserve row' and 'preserve column' boxes when editing the formula.  I want to avoid having to go one by one.  I know that checking the boxes creates a formula like this: '=Sheet1::Table 1::$H$126'  I have also tried entering this manually and filling down but it doesn't include the preservations (the $$) in the autofill.  If there is another way to remedy my sorting problem that would also be welcomed!
    THANKS!!

    The title of the post is this
    How can I preserve row and column addresses on multiple cells at once in Numbers?
    I restated the Question as follows
    Can "Preserve Row" an / or "Preserve Column" be set on multiple cells at the same time.
    In both cases it is not asked if multiple cells can be set to....
    That is a given.
    Step back a second...  It is like selecting multiple cells and setting the text color of the currently selected cells to red. This can be done. More than one cell at a time modified because they are currently selected.
    Whats is being asked is:  if more than one cell is selected at the same time can the settings "Preserve Row" an / or "Preserve Column" be applied. No table I put up will help with that question.
    YES or NO
    If YES how?

  • How to find index name with primarykey and column on a table?

    Hi,
    how to find index name with primarykey and column on a table?
    please help me.
    Thankyou.

      1  select ac.table_name, ac.index_name, aic.column_name
      2  from user_constraints ac, user_ind_columns aic
      3  where ac.constraint_type = 'P'
      4   and  ac.index_name = aic.index_name
      5* order by 1,2,3
    SQL> /
    TABLE_NAME                 INDEX_NAME                COLUMN_NAME
    ACTION_TABLE                 SYS_C0011033                NESTED_TABLE_ID
    ACTION_TABLE                 SYS_C0011033                SYS_NC_ARRAY_INDEX$
    CATEGORIES_TAB                 SYS_C0011038                CATEGORY_ID
    CUSTOMERS                 CUSTOMERS_PK                CUSTOMER_ID
    INVENTORIES                 INVENTORY_IX                PRODUCT_ID
    INVENTORIES                 INVENTORY_IX                WAREHOUSE_ID
    LINEITEM_TABLE                 SYS_C0011034                NESTED_TABLE_ID
    LINEITEM_TABLE                 SYS_C0011034                SYS_NC_ARRAY_INDEX$
    ORDERS                      ORDER_PK                 ORDER_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                LINE_ITEM_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                ORDER_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                LANGUAGE_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                PRODUCT_ID
    PRODUCT_INFORMATION            PRODUCT_INFORMATION_PK           PRODUCT_ID
    PROMOTIONS                 PROMO_ID_PK                PROMO_ID
    WAREHOUSES                 WAREHOUSES_PK                WAREHOUSE_ID
    16 rows selected.

  • How do I create variables and store them?

    How do I create variables and store them?

    As someone already said, we need to know a little more about what you want to do with these variables, but in general, APEX Items are probably what you want. You can create APEX Items at the Application or Page level. Once you set the value of an item, you can reference it anywhere else in the application. So, if you have an item on page 1 called P1_ENAME, you can reference it on page 32 using bind variable syntax :P1_ENAME. If you just want to store but not display some information, you can use either a hidden page item or an Application Level item. Take a look at the 2 Day Developers Guide for more info.
    Tyler

  • Need to compare values in two columns of one table against values in two columns in another table

    Hi, as the title reads, I'm looking for an approach that will allow me to compare values in two columns of one table against values in two columns in another table.
    Say, for instance, here are my tables:
    Table1:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SEAN
    FEDCBA,SHAWN
    Table2:
    Server,Login
    ABCDEF,JOHN
    ABCDEF,JANE
    FEDCBA,SHAWN
    In comparing the two tables, I'd like my query to report the rows in table1 NOT found in table2. In this case, it'll be the 3rd row of table one:
    Server,Login
    FEDCBA,SEAN
    Thanks.

    create table Table1([Server] varchar(50), Login varchar(50))
    Insert into Table1 values ('ABCDEF','JOHN'),('ABCDEF','JANE'),('FEDCBA','SEAN'),('FEDCBA','SHAWN')
    create table Table2([Server] varchar(50), Login varchar(50))
    Insert into Table2 values ('ABCDEF','JOHN'),('ABCDEF','JANE'), ('FEDCBA','SHAWN')
    select [Server] ,Login from Table1
    Except
    select [Server] ,Login from Table2
    select [Server] ,Login from Table1 t1
    where not exists(Select 1 from Table2 where t1.[Server] = t1.[Server] AND Login=t1.Login)
    drop table Table1,Table2

  • How do i start video and audio at the same time in ios

    How do i start video and audio at the same time in ios?
    I have tried a lot of different ways but i cant figure it out?
    I can get the sound and animation (timeline) to start playing.
    There is no problem to start the video and the animation at the same time.
    But i cant get both the video and the audio to start playing when i press a button.
    It works great in OSX and on windows?
    Here is an example:
    // insert code for mouse click here
    // Play an audio track
    sym.$("_1")[0].play();
    // Play a video track
    sym.$("host")[0].play();
    // Play the timeline at a label or specific time. For example:
    // sym.play(500); or sym.play("myLabel");
    sym.play("marker1");

    If the game has sound in it (and possibly even if it doesn't) it may be overriding the Music app and causing it to stop playing - in which case there is nothing that you can do about it.

  • How do I type Hebrew and English on the same page

    How do I type Hebrew and English on the same page in Indesign?

    What version of InDesign are you using? And on what operating system? Switching keyboard ("input methods") is in your OS, not in InDesign. InDesign has had the capability to display right-to-left languages since CS4, but only the Middle East edition has the abilities to actually manipulate Hebrew text. If you're trying to do a bilingual, bidirectional document, you'll need the ME edition. If you are a CC subscriber, it comes with your subscription; if you are not, you'll need to buy another version of ID, or a plugin that will allow you to access those RTL features.

  • How do I combine text and photos on the same page in iPhoto using photobook

    How do I combine text and photos on the same page in iPhoto using photobook?

    You mean while creating a book in iPhoto?  Click on the layout button while viewing a page and select the layout that includes both text and photos.  Most themes will have those options.
    OT

  • I have a 17" Mac Book Pro and a 13" Mac Book Pro...both use the same Apple ID. My wife now wants to change the Apple ID on the 13" to her Apple ID.  How do I do this and not loose the information on that computer?

    I have a 17" Mac Book Pro and a 13" Mac Book Pro...both use the same Apple ID. My wife uses the 13" and now wants to change the Apple ID on the 13" to her Apple ID.  How do I do this and not loose the information on that computer?

    Hello Teddy53149 and welcome to Apple Support Communities,
    Follow this procedure:
    Change your OS X account name and home directory name - Apple Support
    As they recommend and as always when you're messing with administrator accounts back everything up first.

  • I bought the iPad and got it home and when I turned it on, all I see is the iTunes logo w/ a usb connector and arrow. How do I clear that and go to the home screen??? HELP!

    i bought the iPad and got it home and when I turned it on, all I see is the iTunes logo w/ a usb connector and arrow. How do I clear that and go to the home screen??? HELP!

    You need to Set Up the iPad... Connect it to iTunes...
    See here for Getting Started...
    http://www.apple.com/support/ipad/
    and here...
    iPad User Guide iOS 5
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

Maybe you are looking for