Forum Replies Created

Viewing 15 posts - 121 through 135 (of 5,109 total)

  • Reply To: Read data based on date-range in huge table is slow

    oRBIT wrote:

    If "Time" were the first in order in the index, that would be much better?

    Like Jo said, I wouldn't just go changing your clustered index without considering the effect...

    • This reply was modified 3 years, 4 months ago by Thom A.

    Thom~

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

  • Reply To: Read data based on date-range in huge table is slow

    oRBIT wrote:

    "Time" is part of the clustered index, but the clustered index, as stated in the first post, consists of total of 4 columns (bigint, int, varchar(255), datetime, in that...

    Thom~

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

  • Reply To: Read data based on date-range in huge table is slow

    So do you have index on Time ? Does it contain any other columns and INCLUDE the rest of the columns in the SELECT? Without the query, DDL of the...

    Thom~

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

  • Reply To: Read data based on date-range in huge table is slow

    Are you able to share the execution plan (Paste the Plan)? This'll help us understand what the RDBMS is up to, and see if there are any helpful indexes....

    Thom~

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

  • Reply To: SQL bug

    fenm wrote:

    how can i change the language setting of the login/user?

    ALTER LOGIN YourLogin WITH DEFAULT_LANGUAGE = BRITISH;

    Obviously changing the name of the LOGIN and language you need...

    Thom~

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

  • Reply To: SQL bug

    Phil Parkin wrote:

    Thom A wrote:

    Have you tried using an unambiguous date format? '2021-11-01 00:00:00.000' is ambiguous with datetime. Try '2021-11-01T00:00:00.000' or just '20211101'.

    Well spotted!

    Not being American teaches you quickly that the format...

    Thom~

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

  • Reply To: SQL bug

    Have you tried using an unambiguous date format? '2021-11-01 00:00:00.000' is ambiguous with datetime. Try '2021-11-01T00:00:00.000' or just '20211101'.

    Thom~

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

  • Reply To: how to use Space or Tab :b Matches either space or tab characters.

    The documentation you've link is for the Find (and Replace) tool, is that what you are using? I admit, :b does not work for me for tabs or spaces either,...

    Thom~

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

  • Reply To: [solved] host-based authentication possible?

    mh wrote:

    Thanks!

    Thom A wrote:

     but I'm not a massive fan of such things.

    Can you please specify? Are there any pitfalls when I use it

    Pitfuls? A couple would be how to maintain it...

    Thom~

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

  • Reply To: [solved] host-based authentication possible?

    Not natively. You could use something like server-level triggers that occur on a Logon event, but I'm not a massive fan of such things.

    Thom~

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

  • Reply To: Question on SSMS backward compatibility

    I haven't used SSMS 18 against any 2008 instances, but I still use it against a 2012 instance (which should be getting switched off later this year) and never had...

    Thom~

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

  • Reply To: Is SSIS really that bad?

    James Collett wrote:

    SSIS is not "really that bad". It is worse.

    The error messages are often incomplete or misleading. Or non-existent.

    I find this untrue, if i am honest. The errors messages often...

    Thom~

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

  • Reply To: passing string literal to stored proc from execute sql task

    Have you tried as shown in the above? Are you sure it's the EXEC that's actually failing and not the statement(s) inside the procedure?

    Thom~

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

  • Reply To: passing string literal to stored proc from execute sql task

    Pass a list of strings to a stored procedure SELECT. User.fields_i_want. FROM User. WHERE. User_id IN (SELECT User_id FROM Group_member WHERE Group_id IN (@Search_param)) ORDER BY User_id ASC. EXEC...

    • This reply was modified 3 years, 10 months ago by Thom A.

    Thom~

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

  • Reply To: passing string literal to stored proc from execute sql task

    Using single quotes around the literally should be all your need:

    EXEC dbo.Integration_RetrieveMessageToProcess ?, ?, 'Billed';

    If you do try this, as Ed asked, what error do you get?...

    Thom~

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

Viewing 15 posts - 121 through 135 (of 5,109 total)