Forum Replies Created

Viewing 15 posts - 31 through 45 (of 533 total)

  • RE: Running out of Identity values

    Are the records in the tables in question ever updated or just inserted?

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Multipe letters into one

    Jeff Moden (10/1/2012)


    Actually, I don't recommend handling this at all. It will break properly spelled names.

    +1

    Just because you can do something doesn't mean you should. Doing this sort...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Get multiple rows of data based on one condition and grouping

    Is someone a loyalty customer because they have an entry with PurchaseDetails of 'Loyalty Customers' on a particular day, or is that designation inherent to the customer himself/herself?

    I think you...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: query window in ssms

    I believe that any generated scripts will not prompt for a save. Anything you modify at all should prompt you.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Regular expression in T-sql

    Microsoft invested a huge amount of effort/time/money into CLR to give us tremendous capabilities. I have been told by someone close to the SQL dev team at MS that...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Consolidate Overlapping Date Periods

    The first solution I posted above (the first reply to Phil) is a clean "islands" style approach that I don't believe is improved upon by the other similar approaches. ...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Possible to Obtain 2012 SSIS Project (or Package) From the Deployment Server?

    Thank you my friend.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Consolidate Overlapping Date Periods

    Yeah, Mark's is much better. I went to lunch and realized that the much cleaner query had eluded me.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: require database with table adn row count with space used.

    Do a web search on "sp_msforeachdb".

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Consolidate Overlapping Date Periods

    This solution uses a numbers table in [master].

    selectdt.HotelId

    ,dt.RoomTypeId

    ,BeginRange = dateadd(dd, min(dt.N), '20000101')

    ,EndRange = dateadd(dd, max(dt.N), '20000101')

    from

    (

    selectdistinct

    rd.HotelId

    ,rd.RoomTypeId

    ,n.N

    ,grp = n.N - dense_rank() over(order by rd.HotelId, rd.RoomTypeId, n.N)

    from #RoomDates as rd

    join [master].dbo.Nums as...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: CLR Integration in SQL

    I don't think that the argument should be that string evaluation and manipulation cannot be done in t-sql, it's that they cannot be done nearly as efficiently as they can...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Merge Statement - Capturing Insert, Update & Delete Counts

    I may be misunderstanding what you're asking, but in the 2nd article you link he gives a nice example of what will be returned by $action in different situations in...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: merge join

    I believe it would be possible but it really wouldn't make sense. There is an overhead to parallelism: the work has to be divided between CPU's and then the...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: WHERE Date Range

    Jeff, I'm a bit confused. Are you saying that parameter sniffing is more likely with dynamic sql? I don't understand that to be the case (and I would...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Automatic Task to rearrange data from one table into another (SQL or VBS?)

    I appreciate that you're new to SQL Server and please don't take what I have to say as anything other than me trying to help you learn some things. ...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 31 through 45 (of 533 total)