Forum Replies Created

Viewing 15 posts - 706 through 720 (of 3,232 total)

  • RE: How to set and reset a connection dynamically

    You'll need the following tasks:

    1. ExecuteSQL task - this is the first task in your control flow. This should query your table and return the results into a variable...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: query syntax question/help

    Some of this depends on how you want to summarize and display the data. Let's rewind a bit.

    Can you provide an example of how you want your final result...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: query syntax question/help

    You mean a count and sum of only negative variances?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: loading data

    nikki123 (1/20/2010)


    insert into dbo.Billing

    select * from [112.64.104.210,3824 ].fttpreports.dbo.Billing

    Check your table DDL. The error tells you exactly what to look at.....number of columns (including order) and data types.

    Your...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: query syntax question/help

    SQL_NuB (1/20/2010)


    not sure if this the best way but i did this.

    (RequiredCompletionDays - DATEDIFF(dd, COALESCE(tbl1.Opendate,tbl?.YourOtherDateColumn) , tbl1.ClosedDate)) as variance

    and it returned my correct number.

    Yep, that's exactly how you have to...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: query syntax question/help

    SQL Server does not recognize when you use a column alias within the same query. You have to fully define NumberOfDays in your calculated column.

    SELECT DATEDIFF(dd, COALESCE(tbl1.Opendate,tbl?.YourOtherDateColumn) , tbl1.ClosedDate)...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Need rows BETWEEN, but not really

    If so, try this:

    DECLARE @Table TABLE (W int, X int, Sequence int, Z varchar(10))

    INSERT INTO @Table

    SELECT 1,1,1,'text' UNION ALL

    SELECT 1,1,2,'><' UNION ALL

    SELECT 1,1,3,'text' UNION ALL

    SELECT 1,1,4,'text' UNION ALL

    SELECT 1,1,5,'><'...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Need rows BETWEEN, but not really

    In order for you to know what is between the values, you must specify how they are ordered. Is it safe to say that each WX value is ordered...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: query syntax question/help

    Do you mean that your NumberofDays calc needs to test for OpenDate being NULL?

    If so, use COALESCE. Since you have not specified where that second date column comes from, I...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Today's Random Word!

    Kit G (1/20/2010)


    Sober

    Huh, kind of ironic, but this was your 420th post......

    For the record, I am not pointing this out to promote 420 logic...just thought it was interesting (I'm sober...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Using Schema's with SQL Server Express 2005 and Access ADP 2003

    To be honest, I'm not real familiar with working with Microsoft ACCESS. I chimed in because I've worked with schema separation. Where is the stored procedure located?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: MULTIPLE DATAFLOW vs. MULTIPLE SOURCE and UNION ALL

    Well, if you've already got the data in a staging table, you may consider doing as Jack suggests and just move it with T-SQL. If the data is already...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Restrict Login to SSMS access to a database user

    Good info Lowell. I had wondered if that could be done with triggers and I looked into that before I posted my reply. I looked at the DDL...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Restrict Login to SSMS access to a database user

    I don't think there is a way to retrict the source of a login, but you can set up a SQL trace so that you can monitor how and where...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Is it possible to limit resource utilization for a particular process running on MSSQL database

    Duplicate post, please follow this thread here

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 706 through 720 (of 3,232 total)