Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. HoustonGuy

    What is [sys].[sp_columns_100_rowset] used for?

    It appears [sys].[sp_columns_100_rowset] simply returns schema data for a DB, or table. I see it being called in a trace I have on a DB, but I'm not sure why a process would use this system SP. It's being called via RPC by VS2013 application. (Either manually, or automated - I can't tell.) Any...
  2. HoustonGuy

    Need to pivot semi-colon separated names

    To be more specific, I need to create a column populated with names that are semi-colon delimited. I do have this, but would like to insert into separate rows into a single column. DECLARE @TestString varchar(max), @NewString varchar(max) SET @TestString...
  3. HoustonGuy

    Need to pivot semi-colon separated names

    I have this list: Name1;Name2;Name3; etc. And need to write code to pivot it to this: Name1 Name2 Name3 Any suggestions?
  4. HoustonGuy

    Best way to flatten a table without Math functions

    I'm afraid my example was too simple. Your example does work - If the values were the same. (And I appreciate the response.) This is a better example of my resultset: Column1 Column2 column3 Column4 Column5 etc... John Attended John Unattended John...
  5. HoustonGuy

    Best way to flatten a table without Math functions

    I have a table that spills out this way: Column1 Column2 column3 Column4 Column5 etc... John Attended John Attended John Attended Tom Attended Tom...
  6. HoustonGuy

    Opening a checked-out RDL and making a copy

    Thanks Jefferson! This is a quick and easy way of adding a copy! I appreciate your answer. :-)
  7. HoustonGuy

    Syntax for Excel in an Execute SQL Task to drop a specific cell

    Thanks for everyone's input. I never found the syntax for my approach, but I did find an alternative using conditional split. https://www.simple-talk.com/sql/ssis/moving-data-from-excel-to-sql-server---10-steps-to-follow/ Thanks again!
  8. HoustonGuy

    Syntax for Excel in an Execute SQL Task to drop a specific cell

    Yes, I was already aware of that from my testing. thanks for your input, however. :-)
  9. HoustonGuy

    Syntax for Excel in an Execute SQL Task to drop a specific cell

    Yes i'm aware that drop table drops the table, however from the link I provided it was suggested a cell range could be dropped. If it cant, it cant, but if I'm on the right track I'm asking for syntax help. Th sheet name length is irrelevant to my issue.
  10. HoustonGuy

    Syntax for Excel in an Execute SQL Task to drop a specific cell

    I'm trying to delete two specific cells in a ss. (A32 and A33) I'm using an Exxecute SQL task to do this. I've seen examples online that show this syntax: Drop Table ['My Sheet Summ$A32:A33'] - The name of my sheet is ['Agent Summary Report-Agent Summ$'] This doesn't work, since it can't find...
  11. HoustonGuy

    Syntax for Excel in an Execute SQL Task to drop a specific cell

    I'm trying to delete two specific cells in a ss. (A32 and A33) I'm using an Exxecute SQL task to do this. I've seen examples online that show this syntax: Drop Table ['My Sheet Summ$A32:A33'] - The name of my sheet is ['Agent Summary Report-Agent Summ$'] This doesn't work, since it can't find...
  12. HoustonGuy

    Opening a checked-out RDL and making a copy

    I have a report I checked-out and I want to simply open the rdl (Not in XML) and save it as a new name in my file system. (Make a copy as a new template.) I can't seem to open the rdl after I check it out. It defaults to the XML view. What am I doing wrong? VS 2008 is what I build reports in.
  13. HoustonGuy

    Silverlight4 - Unhandled Exception in the XAML Designer

    I'm getting an unhandled exception error for the designer when starting a NEW Silverlight application: System.NullReferenceException Object reference not set to an instance of an object. at...
  14. HoustonGuy

    How to check if all of the characters are the same in a field

    That's very clever PWise! Thanks for that option!
  15. HoustonGuy

    How to check if all of the characters are the same in a field

    I appreciate ALL feedback! :-) Olaf, I'm not INSISTING there should be a function. I'm simply ASKING. :-) Borislave - that is very cool! Much appreciated!
  16. HoustonGuy

    How to check if all of the characters are the same in a field

    That is certainly creative - however I'm not sure that it would be a better option than comparing two substrings. :-)
  17. HoustonGuy

    How to check if all of the characters are the same in a field

    Is there a function that will help me check a field for a repetition of characters in a single field? Such as: Field1 ------- AAAAAAAA 00000000 44444444 Currently I use substring to check to see if the first four characters = the last four characters. If substring(Field1, 1, 4) =...
  18. HoustonGuy

    Tips on optizming my sql Code

    Thanks fredericofonseca - I did fail to show the set value. :-) The table is highly denormalized, yes. It's a proprietary format for a flat file creation. I don't control the table design. I'll test case suggestion. Thanks everyone!
  19. HoustonGuy

    Tips on optizming my sql Code

    I feel like I have a lot of code that could definitely be written better. Here is one example: I have 20 fields that need updating from a temp table (#Final) that has a numeric counter field (MyCount). Currently I have 20 sets of updates for each field. UPDATE MainTable SET Field1 FROM...

Part and Inventory Search

Back
Top