Forum Replies Created

Viewing 15 posts - 5,311 through 5,325 (of 26,490 total)

  • RE: SQL Server licensing on VMWare

    kevaburg (5/6/2015)


    Hi Folks,

    does anyone have any good resources or links regarding licensing SQL Server 2008 on a VMWare ESXi Server?

    The problem is that at the moment we have 20 SQL...

  • RE: Need some help with this query

    New Born DBA (5/6/2015)


    So COL_CORE_Audit_Data is a view? Need to see the DDL for the view and the underlying tables and the indexes on the tables.

    Index 1:CREATE NONCLUSTERED INDEX [I387_6_1]...

  • RE: Need some help with this query

    New Born DBA (5/6/2015)


    Lynn Pettis (5/6/2015)


    New Born DBA (5/6/2015)


    See the issue is that I don't even know why SQL Server uses this Index? This Index is useless in this situation...

  • RE: Need some help with this query

    New Born DBA (5/6/2015)


    See the issue is that I don't even know why SQL Server uses this Index? This Index is useless in this situation because column C1 is ID...

  • RE: Need some help with this query

    New Born DBA (5/6/2015)


    New Born DBA (5/6/2015)


    Query returns all data modified in the past 31 days.

    Without seeing the indexes defined on the table, not much more can be done.

    Index Info.

    /******...

  • RE: Need some help with this query

    New Born DBA (5/6/2015)


    Lynn Pettis (5/6/2015)

    Looks like you are storing date information as seconds since midnight 1970-01-01, correct?

    Yes, that is correct.

    So, what is the where clause attempting to filter?

    Sorry, but...

  • RE: Curious use of % on where Clause

    luissantos (5/5/2015)


    Hello comunity

    I found a code snippet that use the curious following sintax on the creation of View:

    CREATE VIEW [dbo].[vw_EvenValues]

    AS

    SELECT [TestColumn]

    FROM [dbo].[TestTable]

    WHERE [TestColumn] % 2 = 1

    I...

  • RE: Need some help with this query

    New Born DBA (5/6/2015)


    I have this query which runs every night pulls 800,000+ records. I just wanted to know if there is a way to make it run better.

    SELECT...

  • RE: Archieving Data

    ramana3327 (5/6/2015)


    We are using Sql 20082 Standard edition. Data drive has enough free space but that table stores the errors that we don't required to store more than 3 months.

    To...

  • RE: Delete script help!!

    Dan121 (5/5/2015)


    Thanks Lynn,

    I was practicing delete million rows in small batch to prevent log size getting big.

    Okay, then you also need to incorporate t-log backups if the database is not...

  • RE: Are the posted questions getting worse?

    jasona.work (5/5/2015)


    Bloody heck I hate dealing with DISA STIGs!

    I'm also surprised that (in my quick Googleing) there aren't more discussions / blog post / articles around the web on applying...

  • RE: Delete script help!!

    Dan121 (5/5/2015)


    Hi SQL Gurus,

    I am trying to delete thru small chunk from [AdventureWork].[Sales].[SalesOrderDetail]. I like to delete 10000 at a time where 'SalesOrderDetailID' > 50000. Another word I like to...

  • RE: t-sql 2012 return number with 2 leading zeroes

    Perhaps something like this:

    declare @MyValue float = 0.2;

    select right('000' + ltrim(str(@MyValue,10,2)),6);

  • RE: Start Date

    sharonsql2013 (5/4/2015)


    Thanks. Tweaked it a bit to get different columns

    declare @ThisDate datetime;

    set @ThisDate = GETDATE();

    with ThreeWeek as (select rn from (values (0),(1),(2))dt(rn))

    select distinct dateadd(wk, datediff(wk, 0, @ThisDate) +...

  • RE: Update takes too long

    Charles Kincaid (5/4/2015)


    TheSQLGuru (4/30/2015)


    Hmm. Wouldn't adding a meaningful index to a table cause "affected" plans to recompile? Bit tired at the moment so could be confuzzled ... :w00t:

    That would be...

Viewing 15 posts - 5,311 through 5,325 (of 26,490 total)