Forum Replies Created

Viewing 15 posts - 6,016 through 6,030 (of 6,486 total)

  • RE: Update the all duplicated records in the database!

    You DO realize that if you keep running this, your sales amount will keep skyrocketing (because you haven't fixed the duplication). This is a one-shot deal, unless you want...

  • RE: Performance Issue using left or substring function in SQL Server Express Edition 2005

    One way to speed that up is to put calculated fields in place which grab the left(...) and substring(...) functions. Index those and you should get very good behavior....

  • RE: Dynamic Query in SQL Server Function

    Per the BOL:

    In multistatement table-valued functions, function_body is a series of Transact-SQL statements that populate a TABLE return variable.

    Also (definition of Exec - notice it doesn't mention table-valued functions)

    Executes...

  • RE: Adding workdays

    Actually - I was coding for sat-sun to mean start day =monday, not friday. That's where we have THAT difference. I was rolling the start date forward, not...

  • RE: case statement not working - Please help

    Then I am not understanding what you're doing. You included it on line 1 of your query - is it not one of your fields in a table?

  • RE: Performance Issue using left or substring function in SQL Server Express Edition 2005

    The indexes ain't going to matter much because the function in the where clause is going to cause a table scan.

    Mathieu - you don't happen to have the AutoClose option...

  • RE: Adding workdays

    Now it just got personal :). Amazing how some good ol' fashion testing seems to work better (I keep trying with not quite enough data to see the flaw,...

  • RE: SQL job problem

    Make sure you TEST that the file is there. A lot of FTP clients don't report timeouts very well (meaning - I started to DL the file, and the...

  • RE: Suggestions for PASS

    Let's put the challenge here. If the cert were structured in such a way that it captured knowledge of Best Practices and practical experience, vs rote knowledge without any...

  • RE: Adding workdays

    You're right - I'm not accounting for the "extra days" right. the modulo is misapplied there.

    Try this:

    declare @dateStart datetime

    declare @daysToAdd int

    declare @dateEnd datetime

    declare @baseday datetime

    select cast(cast('1/1/1900' as datetime) as int)%7

    select...

  • RE: Suggestions for PASS

    Andy - just curious - What value do you see another certification bringing to the community? There certainly seem to be more than enough already.

    I'm not shooting your idea...

  • RE: case statement not working - Please help

    your CASE is not the problem it's that you're trying to return a boolean value from

    (calculation1)=(calculation2) in a select. That particular syntax doesn't work without wrapping IT in...

  • RE: Adding workdays

    I prefer to have it in there when I'm popping in char values like I was for testing (i.e. not count on the implicit conversion). Sounds like you already...

  • RE: Confess over DTS packages and DTS scheduled jobs

    Also - as far as the deletion issue is concerned - you get the same behavior if you're using a stored proc somewhere. You referencing an object from something...

  • RE: Archiving / Truncating

    Two relatively easy ways to do that:

    - use DTS' "copy objects". It should duplicate most everything. Then - delete what records you don't want in the archive.

    ...

Viewing 15 posts - 6,016 through 6,030 (of 6,486 total)