Forum Replies Created

Viewing 15 posts - 2,581 through 2,595 (of 2,647 total)

  • RE: SQL 2008 SP2 Version 10.0.4064

    It is probably a specific hotfix applied after SP2.

    Thanks,

    Jared

  • RE: XQuery in Sql Server 2008

    I am not very familiar with xml, but have you tried this?

    declare @Filt XML='<Filter>

    <List>

    <Node1>100</Node1>

    <Node2>10</Node2>

    </List>

    <List>

    <Node1>200</Node1>

    <Node2>1</Node2>

    </List>

    <List>

    <Node1>200</Node1>

    <Node2>2</Node2>

    </List>

    <List>

    <Node1>200</Node1>

    <Node2>3</Node2>

    </List>

    </Filter>'

    Thanks,

    Jared

  • RE: XQuery in Sql Server 2008

    Can you please be more specific with a question?

    Thanks,

    Jared

  • RE: variable in SQL output of SSIS

    You can declare a variable in SQL by using DECLARE @variableName INT and then SET @variableName = SELECT 2 (or pass it in in a stored procedure. Then you...

  • RE: get number of days from two dates

    I think that in this case the RBAR is okay. This is a small query and is only doing the select and inserts. Although I agree it is...

  • RE: Intellisense not working only on specific stored procedure/table combo

    Other issues I have seen is if I am accessing a 2005 database or with the compatibility level of the database being 90. That could be throwing it off as...

  • RE: Intellisense not working only on specific stored procedure/table combo

    Try closing out of your SSMS and going back in. That usually does it for me as I believe the data needs to be loaded into cache.

    Thanks,

    Jared

  • RE: get number of days from two dates

    SQLRNNR (9/8/2011)


    Here's a script that should work for you.

    SET DATEFORMAT DMY

    DECLARE @StartDateDATE = '05/06/2011'

    ,@EndDateDATE = '31/08/2012'

    ;

    WITH getmonths AS (

    SELECT cast(Convert(varchar,'01/' + cast(MonthNum as varchar) + '/' + cast(yr.yr as varchar))...

  • RE: get number of days from two dates

    Ok, here's what I got that can be put into a stored proc format if needed:

    DECLARE @StartDate DATETIME

    DECLARE @EndDate DATETIME

    DECLARE @numMonths TINYINT

    DECLARE @calendarTable TABLE (monthNum TINYINT, monthDays TINYINT)

    SET @StartDate =...

  • RE: get number of days from two dates

    Start at this page: http://www32.brinkster.com/srisamp/sqlArticles/article_5.htm

    The main way for a given month is this: SELECT DAY(DATEADD (m, 1, DATEADD (d, 1 - DAY(GETDATE()), GETDATE())) - 1)

    That will give you the amount...

  • RE: Maintenance Plan Not Working

    Ok, this would have no bearing on the size of the database backup (as was previously mentioned you probably appended instead of overwrote)... However, you should add log backups to...

  • RE: Maintenance Plan Not Working

    Ninja's_RGR'us (9/8/2011)


    troe_atl (9/8/2011)


    I scheduled the maintenance plan for 8:00 pm. However, I deleted the maintenance plan yesterday and recreated it and it ran last night. The only problem I have...

  • RE: Maintenance Plan Not Working

    Am I mistaken, or do I not see any backup even starting in the logs? What time, exactly, is the backup scheduled for. The shutdown may be unrelated,...

  • RE: script out a database

    So, my guess is that you are generating a user for the database in your scripts that does not exist on your local machine.

    Run each statement separately until you...

  • RE: script out a database

    jared-709193 (9/7/2011)


    In SSMS, right-click on the database, goto Tasks, then Generate Scripts 🙂

    Thanks,

    Jared

    Sorry... I should learn to read everything first... Give me a minute or 2 and I will post...

Viewing 15 posts - 2,581 through 2,595 (of 2,647 total)