Forum Replies Created

Viewing 15 posts - 1,411 through 1,425 (of 2,038 total)

  • RE: to find Duplicates

    Thanks for the feedback! Glad to help you.

    Have a nice day

    Flo

  • RE: getting logical drives from server

    RBarryYoung (4/13/2009)


    hmm, why two backslashes ("\\"), Florian? Or is that just a C# thing?

    It's a C(#) thing. Like in C or C++ you can specify special characters in strings....

  • RE: select query modification

    BTW: Is your database SQL Server or MySQL?

  • RE: select query modification

    Could you please post your SELECT statement?

    Greets

    Flo

  • RE: User ID

    Hi

    You can specify DEFAULT values for table columns and you can define a scalar function as DEFAULT value of a column. You can create a table with your users and...

  • RE: to find Duplicates

    Hi

    Try this:

    SELECT AutoId, COUNT(*) Duplicates

    FROM YOURTABLE

    GROUP BY AutoId

    HAVING COUNT(*) > 1

    Greets

    Flo

  • RE: select query modification

    You use the correct function, just swap your parameters and it works 😉

    ISNULL(STATE, 'all')

    Greets

    Flo

  • RE: Performance issue with tally solution

    Jeff Moden (4/13/2009)


    I'm thinking that the hey-day of the Tally table have finally been replaced by faster methods.

    Don't say that. There might be actually two business cases where the tally...

  • RE: Performance issue with tally solution

    aktikt (4/13/2009)


    Say it ain't so. This is the first I've heard a set based solution losing to RBAR.

    I don't have the desire to check right now, but what about using...

  • RE: select query modification

    The INSERT was just for some sample data. I'm not sure if you want to eliminate the NULL values within your SELECT or on client side. If you want to...

  • RE: getting logical drives from server

    RBarryYoung (4/13/2009)


    I apologize, but unfortunately, because of conflicts between VS 2005/.net 2.0 and VS 2008/.net 3.5, my SMO dev environment is down right now so I cannot effectively test anything.

    Hi...

  • RE: select query modification

    Hi

    I'm not sure if your "mysql" was a typo... If you mean mssql try this:

    DECLARE @t TABLE (txt VARCHAR(30))

    INSERT INTO @t

    ...

  • RE: User ID

    I agree with arun.sas's approach. Maybe just consider to use an own user id instead of the system user_id to avoid problems when you move your remove/add users. You can...

  • RE: Performance issue with tally solution

    Paul White (4/13/2009)


    Flo,

    More great stuff from you again...!

    I hope your internet connection is fixed soon.

    Off to bed now, but thanks for the XML CLR solution - neat (though I am...

  • RE: Performance issue with tally solution

    Hey Paul again!

    Sorry! Didn't see your new post...

    I did not know that CLR functions can return IEnumerable. Thanks for that!

    I tested your function against mine:

    Start clr xml solution

    Milliseconds: 790 |...

Viewing 15 posts - 1,411 through 1,425 (of 2,038 total)