Forum Replies Created

Viewing 15 posts - 1,906 through 1,920 (of 5,109 total)

  • RE: SUM(CASE(CASE(SUM()))) ?

    I realise this isn't an answer to your question, however, why are you using the nolock query hint on every table? Also, please learn how to Alias objects in a...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Violation of Primary Key Contraint

    Also, I noticed you haven't responded on my comment in  regards to NOLOCK. What's your reasoning for using it?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Violation of Primary Key Contraint

    chad.m.holmes - Thursday, June 21, 2018 7:03 AM

    When ever I run the statement again the "duplicate key value" just goes up...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Any better way of querying multiple tables based on a column value?

    kramaswamy - Thursday, June 21, 2018 6:57 AM

    Thom A - Thursday, June 21, 2018 6:50 AM

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Violation of Primary Key Contraint

    Something a bit more readable (again):
    USE [campus_reporting];
    GO

    CREATE TABLE [dbo].[CmEvent] ([StartDate] [datetime] NULL,
              [EndDate] [datetime] NULL,
              [RemindDate] [datetime] NULL,
              [DueDate] [datetime] NULL,
              [Comments] [text] NOT NULL,
              [Subject]...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Any better way of querying multiple tables based on a column value?

    Ideally, you need to change your data set up. Is that something you're open to?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Only half a table is displayed unless printing

    Have you checked the "Keep together on one page if possible" checkbox?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Violation of Primary Key Contraint

    Query that is a (little more) readable (white space remove courtesy of SSC's broken text editor) and with the syntax errors removed:
    WITH
    #ExList AS
      (SELECT DISTINCT
        st.SystudentID,
        CASE...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: query performance

    Hadrian - Wednesday, June 20, 2018 6:55 AM

    Hi,

    also this query  had run few minutes in sql 2012 and now run hours in...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: can we connect the two sql server management studio using client (like oracle client)

    Perhapsyyou mean can you use SSMS to connect to 2 (or more) servers at the same time? If so, then yes.

    Like Phil said, however , this question is...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Lock on SQL data rows

    ralu_k_17 - Wednesday, June 20, 2018 6:34 AM

    An object can be locked at different levels, using hints, for example: 
    select column
    from...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Lock on SQL data rows

    KGNH - Wednesday, June 20, 2018 5:53 AM

    Hi Thom,

    Thanks for your reply. My requirement is like some thing like support system. From...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Lock on SQL data rows

    What do you mean by editting? As in, someone in an application is viewing the record? You'll need to implement your own "locked" system. For example, add a column (maybe...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: how to change Default Code Colors in sql SSMS 2016?

    "disturbing" is an odd choice of word. 🙂

    Have you considered using the Dark Theme?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: How to attach database after uninstalling sql server

    And what do the error and event logs say?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 1,906 through 1,920 (of 5,109 total)