Forum Replies Created

Viewing 15 posts - 3,766 through 3,780 (of 7,619 total)

  • RE: Determining Memory Pressure

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

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

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • 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...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • 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...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • 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...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • 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

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

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

    I think the q/problem is:
    given a date, if that date is before/on the first Monday of the current month, use the current month's first Monday,
    else, use the first...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Index Seek not possible if you want every row of table, correct?

    If I want EVERY row from the table (customers) then... I will always have to do a table SCAN, yes?

    Not necessarily.  It depends at least on:

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: SQL Server retrieval unit

    Minimum disk read would be 8K, the size of a single SQL page.  SQL does indeed organize 8 8K pages into 64K extents, but I don't believe SQL has to...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: using calculated column to calculate another column in the same view simplified way

    Most often you can use CROSS APPLY to assign an alias name to a calculated value, which you can then use in the main query or in another CROSS APPLY,...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: How to do incremental loading without date filters

    First I'd suggest looking into "Change Tracking".  That would accurately identity any/all rows that have been modified since a certain date, and it wouldn't limit you to 4 days, you...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: How to reduce the space /shrink SQL Server 2008 R2 Data file (MDF) and Log file (LDF)

    You also need to verify that the log is in status to be shrunk, like so:

    SELECT log_reuse_wait_desc, *
    FROM sys.databases
    WHERE name = '<your_db_name>'

    If the...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Best Approach For Junction Table Mainrenace

    It would be more efficient to UPDATE existing rows and only add new rows, but if the number of rows is not too large just deleting and adding probably wouldn't...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Difference in row-size between what was expected and what was — can anyone explain please?

    GilaMonster - Thursday, August 10, 2017 7:51 AM

    ScottPletcher - Thursday, August 10, 2017 7:45 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: Difference in row-size between what was expected and what was — can anyone explain please?

    ben.brugman - Thursday, August 10, 2017 6:03 AM

    ScottPletcher - Tuesday, August 8, 2017 9:38 AM

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

  • RE: INFORMATION_SCHEMA views

    I believe the I_S views are ANSI/ISO standard.  MS themselves were pushing them at one time. But they are too out of sync with the actual system catalog, i.e., too...

    SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

Viewing 15 posts - 3,766 through 3,780 (of 7,619 total)