Forum Replies Created

Viewing 15 posts - 3,121 through 3,135 (of 7,636 total)

  • RE: how to replace uncounted multiple commas into one comma

    Padam Kumar Tripathi (3/31/2009)


    01008,03072,0045,R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-17

    01008,03072,0046,R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,311

    01008,03072,0048,R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,12336

    01008,03072,0049,R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,986

    01008,03072,0056,C,,,,,,,-1057

    01008,03072,0057,R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,5320

    01008,03072,0069,C,,,,,,,-4109

    01008,03072,0071,R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2180

    01008,03072,0078,R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,1

    Like this:

    Replace(Replace(Replace(Replace(strCol, ',,,,,,,', ','), ',,,,,', ','), ',,,', ','), ',,', ',')

  • RE: Are the posted questions getting worse?

    Jeff Moden (3/31/2009)


    ... does anyone know what "sleep" means? :hehe:

    Oh, definitely a bad idea. I discovered that if you let it become a habit then the hallucinations start to...

  • RE: Matching employee application log ins to log outs

    Bruce W Cassidy (3/29/2009)


    The issue is that I have been matching the logon to the logoff based on the employee number and the logon time/logoff time. I match the...

  • RE: Dynamic sorting via parameters to procs

    OK, in that case I would recommend two things: first when there are multiple values for the same potential ordering key, they should be combined. And secondly, when you...

  • RE: Dynamic sorting via parameters to procs

    Yes, that is OK.

  • RE: Dynamic sorting via parameters to procs

    torpkev (3/31/2009)


    I'm sure this isn't the best way.. but you could build your sql into a string and pass the sort type (ASC or DESC) as a parameter and then...

  • RE: Dynamic sorting via parameters to procs

    Santiago E. Perez (3/31/2009)


    I've been able to handle dynamic sorting with something similar to this in the past.

    order by

    Case when @SortBy = 'roadway' then roadtobeclosed_Name End,

    CAse...

  • RE: Who should own the database?

    What you need to watch out for here are DB settings like TRUSTWORTHY and CROSS-CHAINING. These will allow (to some extenet) the database principals (users & schemas) to assume...

  • RE: Store Excel File in SQL

    ExcelMonkey (3/31/2009)


    Thanks for the response. When you say it would take weeks to do, why is this? Where is the time being consumed? Is this assuming many files...

  • RE: Database Access Error

    Hmm, there should be more to that error message.

  • RE: Code Formatting

    Have you disabled macros or javascript?

  • RE: Code Formatting

    Looks good to me. I am using Firefox 3.0.8.

  • RE: Store Excel File in SQL

    Second thoughts: I am not sure if the XL automation technique can extract the macros or not. I've never tried that.

  • RE: Store Excel File in SQL

    If you can get the uncompressed XML format of the Excel file, then you can import and shred that.

    Alternatively, you can use Excel automation outside of SQL Server to open...

  • RE: Code Formatting

    Derek Dongray (3/31/2009)


    RBarryYoung (3/30/2009)


    Here's what I have so far that works:

    [ code ] for SQL,

    [ code="csharp" ] for C#

    [ code="vb" ] for VB.net

    [ code="xml" ] for XML

    bit i still have...

Viewing 15 posts - 3,121 through 3,135 (of 7,636 total)