Forum Replies Created

Viewing 15 posts - 451 through 465 (of 548 total)

  • RE: How to solve this problem with numeric data

    As you can see, this gets you very close. With some case logic you can delete the decimal points from 10. and 20. And I assume you want numbers less...

  • RE: Find all childrens

    I did the function below some time ago and it should be valid for what you need.

    It is based on a table which actually contains many hierarchical structures. Thus

    the function...

  • RE: Help for a newbie Please

    Went to BOL and ran what you see below. Thus:

    1. Load your CSV file into Excel

    2. Insert a blank row in the beginning (apparently needed - don't ask me why)

    3....

  • RE: Posting records from Unbound Form

    What's fOK and cnnlocal? Which of them are the ADO connection object?

  • RE: Looking for any problems in SQL error log

    I guess you meant sp_readerrorlog not xp_readerrorlog. However, the ID column always seems to be zero.

  • RE: Posting records from Unbound Form

    I think you need to remove the rstADO.Requery line. I have never used it in this context and reading up on it quickly seems to pretty much convince me that...

  • RE: Lock and return row X from table

    I have seen your and other people's comments regarding breaking up big operations. On the one hand I'm anxious to try this one day, on the other hand I hope...

  • RE: Lock and return row X from table

    IVR or not IVR, set based or not set based, it's still hard see the real problem. Thus in your description you mention a single table. Who/what adds rows to it....

  • RE: Lock and return row X from table

    Lets say status=0 means its available and status=1 means its no longer available. Then the query 'select min(recid) where status=0' should do the trick.

    You would then do an update of...

  • RE: Convert my syntax - Oracle SQL to MS SQL Server

    Assuming that f1 and f2 are varchar, the most direct equivalent in SQL Server would be:

    select * from table1 where f1+f2 in (select f1+f2 from table 2)

     

  • RE: How not to hard-code collation in stored procedure

    My guess is that he is doing cross database queries and he wants his stored procedure to automatically detect this and dynamically determine the collating sequence to make the sql work.

  • RE: Table Column as Variable

    So if I have two variables to manage then I would have

    EXEC sp_executesql @sql, N'@res1 varchar(255) OUTPUT,@res2 varchar(255) OUTPUT', @result1 OUTPUT, @result2 OUTPUT 

    and this would cause @res1 to return in...

  • RE: Cannot use column aliases in "Group By" clause?

    How about:

    SELECT SUM(x),cust

    from

    (

    SELECT x,case when name LIKE 'Z%' then 'NA' else name end as cust

    FROM foo

    ) t

    GROUP BY cust

  • RE: SQL 2005 passwords

    Most smart DBAs will not allow you to do this. That's because the master stored procs can get updated when installing a service pack.

    If you can get them to use...

  • RE: hosted SQL Server data crunching

    One of these days I'll get around to Anlysis Services and DMX. I'm not sure how much they will help with this sort of problem. You need to find a...

Viewing 15 posts - 451 through 465 (of 548 total)