Forum Replies Created

Viewing 15 posts - 391 through 405 (of 1,082 total)

  • RE: convert varchar to datetime

    I'm assuming your problem was that 1900-00-00 is not a date?

    Please let us know what the solution was in case someone else has the same problem in the future 🙂

    Thanks

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: Handling Delimited Strings in T-SQL

    CREATE FUNCTION dbo.udfStringtoTable

    (

    @String NVARCHAR(100) ,

    @Delimiter CHAR(1)

    )

    RETURNS @Results TABLE

    (String VARCHAR(100))

    AS

    BEGIN

    INSERT INTO @Results

    SELECT SUBSTRING(@String+@Delimiter, n,

    CHARINDEX(@Delimiter, @String+@Delimiter, n) - n)

    FROM tally

    WHERE n <= LEN(@String)

    AND SUBSTRING(@Delimiter + @String,

    n, 1) =...

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: UNION and UNION ALL

    Awesome thanks

    I thought there was a hash bad body in there somewhere.

    Thanks again to all

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: UNION and UNION ALL

    So it's more that the UNION is not that good rather than UNION ALL is not that good.

    So UNION ALL is ok basically if needed?

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: How to use my Variables?

    actually didn't use a connection all.

    I just used the paths as variables.

    However I have come across another problem in that if the files doesn't exist my I get errors my...

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: How to use my Variables?

    OK found another solution.

    I changed the properties of my variable to be an expression and then build the expression based on that

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: How to use my Variables?

    what type of connection should I be creating?

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: Installation problem

    thanks for the reply :-). I have installed VS2005 and BI is now working 🙂

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: YEAR() vs DATEADD

    Thanks Jacob,

    Thats pretty much what I was thinking 🙂

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: YEAR() vs DATEADD

    The only other thing I can think of is that YEAR is an int and it might be faster to compare and int than it is to compare datetime

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: statement runs very slow what have I done wrong or what could I change to make it better

    HI Grant,

    How do I check this: "You still need to look at I/O, CPU, execution time, wait states... " for the different operations in the query plan?

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: statement runs very slow what have I done wrong or what could I change to make it better

    Also waiting for the Index definitions, but from the plan I noticed a few Key Lookups on the same table for the same fields, I'm sure some useful indexes could...

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: Changed to a StarWars Avatar...am I part of the Club now?

    wow I got so confused on a thread earlier today when someone was posting a thanks to Gail, and I was thinking to myself, well I don't see your pic...

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: How To Optimize Wide Table ?

    "Convenient " is the devils work....

    the general "rule" is that you should only select the columns you need.

    Using a view is prob a good idea on such a large table....

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life
  • RE: How To Optimize Wide Table ?

    Firstly why are you using SELECT *.

    do you really need to retrieve every column in the table?

    ----------------------------------------------
    Try to learn something about everything and everything about something. - Thomas Henry Huxley

    :w00t:
    Posting Best Practices[/url]
    Numbers / Tally Tables[/url]

    SQL-4-Life

Viewing 15 posts - 391 through 405 (of 1,082 total)