Forum Replies Created

Viewing 15 posts - 76 through 90 (of 268 total)

  • RE: Please help with xp_cmdshell

    ZZartin - Monday, December 11, 2017 9:09 AM

    Jeff Moden - Monday, December 11, 2017 9:07 AM

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Please help with xp_cmdshell

    When I run as a proc I now get this for table list output.

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Please help with xp_cmdshell

    John Mitchell-245523 - Monday, December 11, 2017 8:51 AM

    Are any of the file names longer than the 30 characters you've allowed for...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Please help with xp_cmdshell

    Bert-701015 - Monday, December 11, 2017 8:37 AM

    Have you considered using xp_dirtree instead of xp_cmdshell.  It carries less risk.  To your question/error,...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Really odd problem executing a dynamic SQL statement that inserts data.

    Thanks for the message.

    First let me say this is a commercial software package, I DID NOT DESIGN THE DB.

    Yes the WHERE clause represents the index (there is another...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Really odd problem executing a dynamic SQL statement that inserts data.

    I added the alias as you suggested, same exact result. While it certainly should be aliased I had a feeling doing so would not result in a different outcome. There...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Really odd problem executing a dynamic SQL statement that inserts data.

    Hmm. Are you certain? All the other tables move data ok. They all have the same exact rules. The statements are generated by a dynamic system I have been writing...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Help with a query runs forever but returns nothing.

    Tried this same result.

    The NOT EXISTS option seems to have worked. I am working out a couple other things.

    Thank you everyone.

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Help with a query runs forever but returns nothing.

    Would love to. In fact I would kind of like to see it too!! 🙂 I could likely fix this if I did.

    The query just runs indefinitely so the...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Help with a query runs forever but returns nothing.

    Why do the JOIN clauses seem weird and most useless?

    And thank you for the suggestion I am about to test this. The statements are dynamically generated so this will take...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Help with a query runs forever but returns nothing.

    Can you give an example please? This is a NOT IN and the cast / convert is present because the two columns together are a unique index.

    A join would...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Help with a query runs forever but returns nothing.

    I commented the actual list of columns for testing. It is not SELECT * in principal / production.

    INSERT INTO [addb20].[Target_MergeAMD4_WithData].[dbo].[ConfigOption] ([Active], [ConfigOptionGUID], [ConfigOptionTypePropertyId], [ConfigOptionValue], [FKGUID] ,ImportIdentity, GUIDIdentity)

    SELECT st.[Active],...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: TSQL Formatting tool?

    Have used the tool for years. Strange name I will give you that but it works great and has every option you can imagine.

    http://www.dpriver.com/pp/sqlformat.htm

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Help with dynamic join with case statement

    Solved in thank you thou.

    + ' AND (' + @Alias + '.SourceID <> ' + @Alias + '.DestinationID AND EXISTS (SELECT 1 FROM ETLCorrelation WHERE DestinationTable = ''' + @PKTableName...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

  • RE: Help with dynamic join with case statement

    I will give it a try thank you. AND I don't have to count I just need to know if the result is greater than 0. Basically true /...

    <hr noshade size=1 width=250 color=#BBC8E5> Regards,Jeffery Williams http://www.linkedin.com/in/jwilliamsoh

Viewing 15 posts - 76 through 90 (of 268 total)