Forum Replies Created

Viewing 15 posts - 24,376 through 24,390 (of 26,484 total)

  • RE: The Active DBA

    lol :hehe:

    You either ref yourself, or seen an older ref do that. Only problem, we may be god on the field, but we do need to keep control of...

  • RE: The Active DBA

    I wasn't the atheltic type when I was younger. Getting involved in soccer has changed that. Realizing that many of the refs I work with are in their...

  • RE: RTRIM not working

    Alan Frelich (8/8/2008)


    I use the ASCII function to return the ascii characters of the string and it returns char(32) numerous times on the end of the string. When I run...

  • RE: RTRIM not working

    I've never had a problem with rtrim. How do you know that it isn't working?

    😎

  • RE: XP_cmdshell inside Trigger

    Just a guess, but the service account running SQL Server may not have sufficent priviledges to run xp_cmdshell.

    😎

  • RE: The Active DBA

    I have been officiating soccer since March 2003. I have started going to the gym on a regular basis finally back in June. I was getting myself ready...

  • RE: CASE Error

    Lynn Pettis (8/8/2008)


    Since you want A, B, C, or all three, try the following:

    DECLARE @product_name nvarchar(3)

    SET @product_name = 'All'

    SELECT

    *

    FROM

    dbo.product

    WHERE

    ...

  • RE: CASE Error

    Since you want A, B, C, or all three, try the following:

    DECLARE @product_name nvarchar(3)

    SET @product_name = 'All'

    SELECT

    *

    FROM

    dbo.product

    WHERE

    (product_name =...

  • RE: IF STATEMENT IN WHERE CLAUSE

    dream coder (8/8/2008)


    Thanks, but i need a IF because of the following:

    DECLARE @product_name nvarchar(3)

    SET @product_name = 'All'

    SELECT * FROM product

    WHERE product_name = CASE @product_name

    WHEN 'All' THEN...

  • RE: IF STATEMENT IN WHERE CLAUSE

    dream coder (8/8/2008)


    Thanks i saw that step, i would still like to know if u can use an "IF" in the WHERE clause of the SQL statement cause i dont...

  • RE: How can this be explained

    Because nothing met the criteria specified in the WHERE clause??

    I can't really answer this question as I have no data (tables, sample data, expected results) with which to test the...

  • RE: Convert nanoseconds since 1/1/1601

    Not sure, but would using a decimal (decimal(24,0)) instead of bigint help at all?

    😎

  • RE: 1ST TIME CUSTOMER...

    Reformatted your code some so I could read it better, but really can't help you with the query as there really isn't enough information.

    It would help if you provided the...

  • RE: How can this be explained

    Check out this code and see if it provides what you the results you require. Also, when writing multiple table queries, you should use table aliases for all columns,...

  • RE: Log Updated records into A table

    raym (8/7/2008)


    ENDED UP RE-WRITING IT

    SET @Records = (SELECT COUNT(*) FROM EDW_STAGE..tbComm_3Months_Ago)

    This is another way to write the code above:

    select @Records = count(*)...

Viewing 15 posts - 24,376 through 24,390 (of 26,484 total)