Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mrmitchmitchell

    bcp

    when you write your query you can use the TRIM() function on that column
  2. mrmitchmitchell

    Setting up the ODBC connection using ASA 9.0.2 driver

    Try replacing the server name in the TCP/IP box with the ip address of the server. Host=192.168.XX.XX;MyIP=NONE;ServerPort=49163;TO=45 On the database tab, put in the server name. On the login tab, put your username and password. Click test connection on the ODBC tab and see what you get. Mitch
  3. mrmitchmitchell

    Very slow Queries/Strange behaviour upon selecting fields

    Is this a 1 to 1 relationship? (One entry in table1 directly correlates to 1 entry in table2?) Run this SELECT table1.a_id, count(table2.b_id) as TOTAL FROM schema1.table1 as table1, schema2.table2 as table2 WHERE table1.a_id = table2.b_id group by table1.a_id order by TOTAL desc; You can...
  4. mrmitchmitchell

    stored procedure takes too long...any ideas??

    Great! It's always best to avoid the use of <> for performance reasons.
  5. mrmitchmitchell

    stored procedure takes too long...any ideas??

    Try putting an non unique index on (claim_ref, s1seq). Also, your delete could just be where claim_ref = @Claim_Ref and s1seq < @Last; Last is the max value, and you want to delete the ones less than max, correct?
  6. mrmitchmitchell

    ASA V10 ESQL EXECUTE INTO

    Sybase manual says this: "INTO clause If EXECUTE INTO is used with an INSERT statement, the inserted row is returned in the second descriptor. For example, when using auto-increment primary keys or BEFORE INSERT triggers that generate primary key values, the EXECUTE statement provides a...
  7. mrmitchmitchell

    Primary Key on View

    Are you using ASA or ASE? What version? I work in ASA V10 and the only way to do this is to declare your view and MATERIALIZED view. Mitch

Part and Inventory Search

Back
Top