Forum Replies Created

Viewing 15 posts - 3,751 through 3,765 (of 7,614 total)

  • RE: Concatenate sp_MSForeachdb results


    IF OBJECT_ID('tempdb.dbo.#index_info') IS NOT NULL
        DROP TABLE #index_info;

    SELECT TOP (0)
    dbschemas.[name] AS schema_name,db_name() AS db_name,
    dbtables.[name] AS table_name ,
    dbindexes.[name] AS index_name ,

  • RE: Mortgage amortization table

    Along similar lines, I've noticed that many brokerage firms use decimal places for fractional stock holdings, although they display only 3 or 4.  Thus, it's often impossible to get an...

  • RE: Mortgage amortization table

    sgmunson - Monday, September 18, 2017 10:51 AM

    ScottPletcher - Monday, September 18, 2017 10:00 AM

  • RE: Mortgage amortization table

    TomThomson - Monday, September 18, 2017 10:52 AM

    ScottPletcher - Monday, September 18, 2017 10:00 AM

  • RE: Mortgage amortization table

    I don't think this is really an issue, as a practical matter.  Interest is computed daily, down to the cent (or, worst case, to hundredths of cents), how much the interest is....

  • RE: Fill Factor on Clustered Index

    UPDATEs can indeed cause page splits, in particular if lengthening the value of a varchar column, which is quite common.  Often the resulting potential page split issues get overlooked in that...

  • RE: Temporal tables and table triggers

    Yes.  Set a control value using sp_set_session_context; you can test it inside the trigger using SESSION_CONTEXT.

  • RE: Date Causing Problem

    As an aside, I suggest you use >= and < for all date/time/datetime comparisons rather than between.  That also gets rid of the need for the "tricky" use of -1...

  • RE: Creating a table from existing table.


    SET IDENTITY_INSERT [Marketo].[EmailActivity_Temp] ON;
    INSERT INTO [Marketo].[EmailActivity_Temp] (
      [id], [leadId], [activityTypeId], [primaryAttributeValueId], [activityDate],
      [DateAdded], [ProcessedInd], [primaryAttributeValue], [CampaignID], [EmailActivityKey],
      [NextPageToken], [LinkClicked], [ProgramName], [Attribute], [AssetName]
     ...

  • RE: best data modeling tool

    Erwin is a great modeling tool, the best I've used, although it wasn't cheap the last time I was able to use it.

  • RE: Determining Memory Pressure

    Jeff Moden - Wednesday, September 13, 2017 6:33 AM

    Arsh - Wednesday, September 13, 2017 5:33 AM

    September 13, 2017 at 10:27 am

    #1959287

  • RE: Query Help - Slow Performance

    Assuming you have multiple CountyDistrict values, and the table isn't clustered already, try clustering the tables:

    CREATE CLUSTERED INDEX DistrictTeachers__CL ON dbo.DistrictTeachers ( CountyDistrict, TeacherId ) WITH ( FILLFACTOR...

  • RE: EXCEPT in a trigger

    Joie Andrew - Sunday, September 10, 2017 3:05 AM

    Yep, you cannot use EXCEPT on a 2005 instance. The feature wasn't introduced until...

  • RE: How to encrypt Credit Card numbers?

    For credit card info specifically, you'll need to make sure you follow relevant laws on handling that data.  Just SQL-based encryption methods is not enough, as I understand it, but...

  • RE: Determine Monday of next month and Monday of next week

    jcelko212 32090 - Thursday, September 7, 2017 1:40 PM

    Jeff Moden - Tuesday, September 5, 2017 1:41 PM

Viewing 15 posts - 3,751 through 3,765 (of 7,614 total)