Forum Replies Created

Viewing 15 posts - 331 through 345 (of 372 total)

  • RE: Converting UTC time in GETDATE clause

    Okay here is a simpler query that i need Central time and date but it is in UTC format;

    select ServerName, Heading, UTCOccurrenceDateTime

    from dbo.Alerts where Heading like '%fail%'

    AND (UTCOccurrenceDateTime >=...

    MCSE SQL Server 2012\2014\2016

  • RE: Converting UTC time in GETDATE clause

    oh and the timedatestamp is

    YYYY-MM-DD HH:MM:SS:MMM

    Someone help me please, so confused and it so easy....

    MCSE SQL Server 2012\2014\2016

  • RE: Converting UTC time in GETDATE clause

    Lowell,

    Here a query that returns count without the date and time convertion

    SELECT Column1, COUNT(*) AS [Count], Column3, Column4

    FROM ...

    MCSE SQL Server 2012\2014\2016

  • RE: Converting UTC time in GETDATE clause

    I have thought of that ALZDBA, ah can't wait to spring forward...

    MCSE SQL Server 2012\2014\2016

  • RE: Converting UTC time in GETDATE clause

    Thanks Lowell but it still came back with UTC time, Basically I am trying to convert the time and then count Column1, Column3, and Column4, and order it by Column1...

    MCSE SQL Server 2012\2014\2016

  • RE: Need to exclude indexes from query

    Thank you Gail, I have perople breathing down my neck, really overwhelmed at the moment...Thank you!:-D

    MCSE SQL Server 2012\2014\2016

  • RE: Need to exclude indexes from query

    Can anybody cut the exclude and paste it in here. That script is a little overwhelming to me.

    MCSE SQL Server 2012\2014\2016

  • RE: Need to exclude indexes from query

    The DB is crazy. In orde to get the index to rebuild we are going to have to exclude about 10 and place them into another job. The other job...

    MCSE SQL Server 2012\2014\2016

  • RE: Log Shipping

    Thanks, I figured it out and I am using Red Gate! Good Luck if you ever have an issue!

    MCSE SQL Server 2012\2014\2016

  • RE: Log Shipping

    Anybody have any ideas?

    I removed log shipping and put it back in place noe will it not copy over the *.trn file but now if I set off the LSCopy...

    MCSE SQL Server 2012\2014\2016

  • RE: Admin account kicked off a SQL Trace

    Found it!

    select SessionLoginName, * from FN_TRACE_GETTABLE ('C:\Program Files\Microsoft SQL server\MSSQL.1\MSSQL\LOG\LOG_382.trc',default)

    MCSE SQL Server 2012\2014\2016

  • RE: Pls help me in SQL 2005 Migration

    you need at least sp3 on sql 2005. If you click on a shorcut and it goes down, sounds like a hardware spec issue. Was the hardware ready in spec...

    MCSE SQL Server 2012\2014\2016

  • RE: Distributor DB deleted need to attach files?????

    Okay I got it back online and this is what I did.

    1. sp_get_distributor

    2. delete from msdb.dbo.MSdistpublishers

    delete from msdb.dbo.MSdistributiondbs

    3. sp_adddistributiondb 'distribution'

    4. Created a new publication and enabled it

    5. created...

    MCSE SQL Server 2012\2014\2016

  • RE: Error on Log Agent

    I got it to work thanks!

    MCSE SQL Server 2012\2014\2016

  • RE: Error on Log Agent

    Mike,

    This is what I get, can you help me out?

    Msg 21110, Level 16, State 1, Procedure sp_browsereplcmds, Line 48

    @xact_seqno_start and @publisher_database_id must be specified if @command_id is specified.

    MCSE SQL Server 2012\2014\2016

Viewing 15 posts - 331 through 345 (of 372 total)