Forum Replies Created

Viewing 15 posts - 10,081 through 10,095 (of 14,953 total)

  • RE: Arimetic overflow converting numeric to numeric

    I'd recommend breaking the query down into smaller pieces and finding which one gives you the error. Just run one column at a time, comment out the rest, till...

  • RE: Multiple Indexes on the Same Columns

    Multiple identical indexes have no advantages. No speed increase on selects, definite speed decrease on insert/update/delete, and it takes up more disk space too.

    On the index hint thing, I...

  • RE: Best way to strip time from datetime stamp.

    Jeff Moden (4/7/2009)


    GSquared (4/7/2009)


    Jeff, the problem with the convert(int) method is that it, again, relies on the internal storage of datetime, just like the version for float.

    Have you tested it...

  • RE: Server load by Views

    If they don't have separate versions of the databases, then I guess they'll have to continue to query the production databases in order to build/test anything.

    That's a really bad idea,...

  • RE: Huge not performant tabled valued Function

    You're welcome. Glad I could help.

  • RE: Best way to strip time from datetime stamp.

    Jeff, the problem with the convert(int) method is that it, again, relies on the internal storage of datetime, just like the version for float.

    Have you tested it in SQL 2008...

  • RE: Query Performance

    At the top, did you change where I had "getdate()" to the date you actually want to run? Looks like 2 April for your posted query.

  • RE: columns to rows

    Try this. I can't test it (don't have the tables), so tell me if it doesn't work.

    SELECT

    daily.Fund,

    daily.salesamount AS [Daily Sales Amount],

    ...

  • RE: row based result

    I think this is a double-post. Please don't do that.

  • RE: SQL Server 2005 "freezes"

    Another possibility that occurs to me, from a bad prior experience, is that the account SQL Server is running under might end up locked out because of failed login attempts....

  • RE: Query Performance

    I can't test this, so I'm not sure if it'll work, much less whether it will be faster, slower, etc., than the current version. Can you test it out,...

  • RE: Limit # of Recs in Foregin Table

    There are a couple of ways you could manage that.

    One would certainly be an on-insert trigger. Another would be to handle it in the insert proc. More likely,...

  • RE: SQL Server 2005 "freezes"

    Have you checked logs (error log, server log) to see if there's something that happens right before that?

    Certain error severities can cause SQL Server to "lock up". Take a...

  • RE: The T-SQL Paradigm

    mike brockington (4/7/2009)


    While some languages are so terse that they look like a hex dump, SQL is actually one of the more verbose, yet it still manages to be one...

  • RE: columns to rows

    Instead of doing a Union between those two queries, do a join. Join them on the column that has the Fund1, Fund2, etc., in it.

    Does that make sense?

Viewing 15 posts - 10,081 through 10,095 (of 14,953 total)