Forum Replies Created

Viewing 15 posts - 256 through 270 (of 595 total)

  • RE: Find second highest

    quote:


    ...but SQL Server doesn't like it...


    I know. Annoying, isn't it, that you can't...

  • RE: Select statement

    quote:


    ...What i want is to return rows from first part and only records of second part where B2BError.Warning=2....


    July 7, 2003 at 12:34 pm

    #464370

  • RE: Why add more memory?

    SQL Server Standard Edition only supports up to 2GB RAM per instance. SQL Enterprise edition can use more, but you must configure advanced options (or possibly AWE if >=...

  • RE: Tuning script into stored procedure

    There are many, many things that you can do to improve this procedure, and I'm sure you'll get a bunch of comments about all those things; however, the first thing...

  • RE: Find second highest

    You would want to insert the salaries into a temp table that has an identity field in it, inserting the values in the order you need, then select the row...

  • RE: CASE

    try this in your select:

    
    
    (
    CASE
    WHEN LEFT(CAST(textdata AS VARCHAR(4)), 4) = 'exec' THEN
    SUBSTRING(textdata, 6, CHARINDEX(' ', textdata)
    ELSE textdata
    END
    ) AS Query
  • RE: Query runs slow as Stored Procedure

    Analyze the Execution plan for both the sproc and the statement in QA to see whre the differences are. Also, have you recompiled the sproc?

  • RE: Returning stored procedure messages via ADO

    You can use the Errors Collection of the ADODB.Connection object to obtain error information returned from SQL Server. Be sure, however, that you stored procedures properly issue a RAISERROR...

  • RE: Ambiguos Colum Name Sender error

    You need to qualify the Sender field with the tablename it belongs to that you are searching on. SQL is complaining that it has found two tables in your...

  • RE: Ambiguos Colum Name Sender error

    Look for a non-fully-qualified field of Sender in your WHERE clause. The SELECTs look fine.

  • RE: PetCo.com Vulnerable to SQL Injection

    I guess this brings up the issue of why was PetCo even storing the credit card numbers in the first place...I've heard of some situations where the vendor would need...

  • RE: Indexing Bit Patterns

    My theory was that since the bitwise AND operator tells you whether or not "this bit pattern is a subset of that bit pattern", an index on the INT field...

  • RE: Strategies for historical data tables

    You could consider creating a permanent table storing the max date for each account number (essentially making your derived table permanent). This would improve performance since tempdb would not...

  • RE: Multi Row Insert?

    Have you set up a valid DSN on the server for MS Jet 4.0?

Viewing 15 posts - 256 through 270 (of 595 total)