schema insert not working as planned schema as tablename

  • I have a script that is building dynamic sql.

    It generates this statement

    SELECT * into [Feeds].ABC.aTabletemp

    FROM [Staging].Legacy.aTable

    What it builds in the Feeds database is

    ABC.ABC.aTabletemp

    I have tried qualifiying the schema and table name and about everything else I can think of and still getting a duplicate schema name as part of the table name, any ideas.

  • Kinda hard for anyone to have any idea without seeing the script.



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • Why would this statement not recognize the schema name as the schema and utilize it as part of the table name, the table name is ABC.aTabletemp

  • John1.5.nlt (5/16/2016)


    Why would this statement not recognize the schema name as the schema and utilize it as part of the table name, the table name is ABC.aTabletemp

    Don't expect answers without showing us the script! All you're gonna get is guesses!



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • I have shown you the sql and I have shown you the results.. the script is irrelevant, I can execute the sql and get the same results.

    So why dont you stop trolling and find something better to do.

  • John1.5.nlt (5/16/2016)


    I have shown you the sql and I have shown you the results.. the script is irrelevant, I can execute the sql and get the same results.

    So why dont you stop trolling and find something better to do.

    Suit yourself. You won't get much help with that attitude!



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply