Forum Replies Created

Viewing 15 posts - 751 through 765 (of 993 total)

  • RE: TOP with parameter

    Unfortunately you cannot use top with a variable in SQL 2000.  Most of the time, people either use set ROWCOUNT, dynamic SQL OR...  You could insert the data into a...

  • RE: Can I execute SQL statement without returning the results?

    Try running from your client app and use some form of execute with no records option (I know that ADO can do this - I assume ADO.NET can also do...

  • RE: Error 7405 when trying to save a stored proc

    Certain features in SQL, such as linked servers and indexed views, as well as indices on computed columns, require certain SET options to be set a particular wasy.  This is...

  • RE: Why is this INSERT returning a recordset

    Are you sure it is the insert statement?  By the sounds of it, you have other statements in the proc as well apart from the insert given.  Change your code...

  • RE: Can we make this query run faster?

    Both of your subqueries are correlated, which is often a problem, but with the 1st query, SQL probably has to do a lot more evaluation and reading rows to determine...

  • RE: Finding the Next Business Day Recursively

    Elegant solution (I too like the trick to get the correct day regardless of datefirst!  Clever!).  BUT...  recursion in SQL is limited to 32 calls (XMAS holidays in schools, for...

  • RE: Returning @@rowcount to asp.net.....

    I consider it a best practice thing to ALWAYS name your result columns and use column names to refer to the columns in your client-side code.

    EG.  You could have

    select @@rowcount...

  • RE: Rolling date parameters on subscription

    I too am from a Crystal background and would say that you could have a long query that reporting services runs, or have it call a stored proc.  You could...

  • RE: Maximum size of a process on Windows 2003 64-bits

    Strange amount of GB on Itanium system..  Spose 3GB could also be seen as a strange amount on a 4GB system too

    Thanks for...

  • RE: Returning @@rowcount to asp.net.....

    Are you sure that is the entire proc?  Why are you declaring a variable called @result?

  • RE: Urgent! How to use exec result as part of select statement?

    With regards to your SP, are you after

    a) The resultset the SP returns

    b) The value of an output param

    c) The return value of the SP

    ?

  • RE: Selecting Records with Multiple Users

    This sounds bizarre...

    Your report must be working in one of the following ways...

    1.

    It is a typical report - users set their parameters, the report generates a simple select statement (or...

  • RE: Partitioning and bitwise operators

    I can only assume because bitwise operators are non SARGable - effectively SQL cannot use an index when you are working with such operations.  Thus SQL cannot, based on the...

  • RE: Relationships

    You should have indices on the fields on either side of the join to increase its performance - having a FK defined doesn't define an index for you..

  • RE: Grouping

    BTW... output is

    yr          total       grp         
    ----------- ----------- ----------- 
    1990        15          1-20
    1990        70          21-55
    1995        60          1-20
    1995        40          21-55

Viewing 15 posts - 751 through 765 (of 993 total)