Forum Replies Created

Viewing 15 posts - 751 through 765 (of 6,394 total)

  • Reply To: show data for today only

    DECLARE @CardSwipes TABLE (Initials VARCHAR(5), RFID INT, SwipeTime DATETIME, Flag TINYINT)

    INSERT INTO @CardSwipes VALUES
    ('GA',4321,'2021-09-01 09:00',1),
    ('AG',1234,'2021-09-07 08:00',1),
    ('AG',1234,'2021-09-07 09:00',2),
    ('AG',1234,'2021-09-07 10:00',1),
    ('JS',5678,'2021-09-07 20:00',1)

    ;WITH CardSwipeCTE AS (
    SELECT ROW_NUMBER() OVER (PARTITION BY RFID...
  • Reply To: CU25 cant install because of SSRS

    Try patching SSRS first, download the latest 2017 SSRS installer and run that over the top, there was something in Feb 2020 about a a release for it then so...

  • Reply To: the owner of BAK files

    Speak to fellow DBA's / send a mass mail around asking, there is no way to know without going asking people in the business what they where kept around for.

  • Reply To: show data for today only

    That would be up to the application which is inserting the data, it is sending the wrong date to SQL to store so it needs to be tackled at the...

  • Reply To: show data for today only

    declare @datetable2 table (somedate datetime)
    insert into @datetable2 values ('2021-03-09'),('2021-06-09')
    select datename(month,somedate), somedate from @datetable2

    date_formats

  • Reply To: show data for today only

    Thats a negative I'm afraid, those dates are March and June, the way SQL formats dates in the output is always YMD, not YDM as you can see from this...

  • Reply To: show data for today only

    You have no data for today in the screenshot you have provided.

    The script Des gave will give you data for today only, since you have none you get a empty...

  • Reply To: Query to show who is still checked in.

    Only the time?  Do you not have the date also?

    What happens at the end of the day, does the table wipe itself and start again?

    How do you differentiate a swipe...

  • Reply To: Sql dialog box is so small

    Increase your screen resolution.

    The server properties window cannot be shrunk past a certain size, so if its to small on screen you need to change your resolution.

    This is as small...

  • Reply To: SQL Server Active/Passive with DR License

    Speak to your licensing provider, they will know all the T&C's with your agreement to Microsoft as to what you do need to pay for or not as each agreement...

  • Reply To: Availability Group Listener

    Yes all replicas in the full subnet need to have their IP changed to the new subnet.

    Issues would be routing, firewalls, any application reconfiguration you need to do.

    Usual stuff for...

  • Reply To: Availability Group Listener

    Yeah the listener configuration needs to be in the same subnet as the nodes

  • Reply To: Using Secondary Replica to perform a Copy-Only Backup

    You need to set the backup preference and backup priority of the availability group so that the secondary is higher than primary, then Ola's scripts will see the preferred replica...

  • Reply To: Last Run Date on a Stored Procedure with parameter values

    Last execution time - Yes - look at sys.dm_exec_procedure_stats

    Last executed parameters - No - you will need to create extended event sessions to capture that information

  • Reply To: db permission problem

    alanwats wrote:

    However I am using only Windows Authentication to login  in SSMS.

    doesn’t matter on the authentication type, the exact same principals of logins/users/permissions still apply.

    Although for ease of management...

Viewing 15 posts - 751 through 765 (of 6,394 total)