Forum Replies Created

Viewing 15 posts - 481 through 495 (of 8,416 total)

  • RE: identity gaps

    shilpaprele (5/30/2012)


    so how do we monitor/maintain identity jumps sql 2008 R2?

    What do you mean exactly? Describe the scenario you are concerned about. There is nothing analogous to identity_gap,...

  • RE: identity gaps

    There is no equivalent in SQL Server 2008 R2. The cache size for IDENTITY is undocumented and not guaranteed. In SQL Server 2012, it is the CACHE option...

  • RE: How to increase performance of the query

    Very hard to say from the information given. An execution plan with runtime statistics (an 'actual' execution plan) would be very useful, as would definitions for the tables and...

  • RE: Proc Optimization

    sqlnaive (5/29/2012)


    Gail, though I know it is useful to have the execution plan but it looks difficult to get as it comes very randomly and at very unusual time (at...

  • RE: Need Stored procedure for getting all dates falling on saturday for the given year

    You could use a calendar table for this. First two links from a search on "calendar table" using the search box on this page shown below.

    http://www.sqlservercentral.com/articles/70482/

    http://www.sqlservercentral.com/scripts/Date/68389/

  • RE: Perfomance issue with storeprocedure

    pallavi.unde (5/30/2012)


    select top 20 cast(college_id as int)as college_id,substream_name,cast(substream_id as int)as substream_id,[streamgroup_name],cast([course_id] as int)as [course_id],cast([streamgroup_id] as int)as [streamgroup_id],[college_logo],[college_name],[course_name],[universityid],cast([degree_id] as int)as [degree_id],cast(city_id as int) as city_id,[degree_name],[populer_stream],CityName as city_name FROM View_College_Search_Details where course_id=@courseid

    Why...

  • RE: Are the posted questions getting worse?

    Revenant (5/29/2012)


    L'esprit de l'escalier

    Oh I wish I'd thought of that...:w00t:

  • RE: Clustered Indexes

    opc.three (5/29/2012)


    I mean that fragmentation reported in column sys.dm_db_index_physical_stats.avg_fragmentation_in_percent can increase after running ALTER TABLE ... REBUILD.

    I suppose it might, it's not something I've ever noticed though. I just...

  • RE: SQL not working as expected - Deleting duplicates from dataset

    The references to oe_po_no and item_no do not have an alias to the outer table, so they are bound to the columns of the table inside the EXISTS clause (alias...

  • RE: Column with UNIQUE values but multiple NULL values

    sql server developer (5/29/2012)


    Thanks so much. I'm on SQL Server 2008 and decided to use Filtered Index on that column. However the issue i'm having is that i would like...

  • RE: Column with UNIQUE values but multiple NULL values

    Sean Lange (5/29/2012)


    You are trying to create a foreign key relationship on a column that is neither the primary key nor unique in the original table. By definition this...

  • RE: Clustered Indexes

    opc.three (5/29/2012)


    Using ALTER TABLE ... REBUILD can actually make things worse in terms of fragmentation depending on the heap's DDL.

    What do you mean?

  • RE: Do we need separate drive for Page file for SQL Server 2008 R2?

    Perry Whittle (5/29/2012)


    Were they Windows server MVPs?

    No, SQL Server MVPs. The discussion was limited to properly configured x64 SQL Server on large memory systems (where 'properly configured' includes accounting...

  • RE: Conditional Aggregation

    sridhar_kola (5/29/2012)


    I think you have not understood the requirement. Your CTE will give the difference between previous and current time. But the requirement is to get the time difference from...

  • RE: Conditional Aggregation

    This is the first solution that springs to mind. Better ones are surely possible, I'll have another think about it shortly.

    DECLARE @Example AS TABLE

    (

    MID ...

Viewing 15 posts - 481 through 495 (of 8,416 total)