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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Chao

  1. Chao

    SQL Loader

    Hi Terry, Does SQL Loader treat '' as NULL? If so then this is very different from SQL statement. I will give your suggestion a try. Thanks for your feedback. CHAO
  2. Chao

    SQL Loader

    Removing the space is simply not possible due to the size of the file and the fact that blank lines appears randomly in the file. I found the solution and would like to share it with you all. Just increase the maximum # of records SQL Loader can discard in the control file. Thanks, CHAO
  3. Chao

    SQL Loader

    Hi, I am importing some data into a table from a delimited text file. Unforturnately the text file contains NULL records: ID|First Name|Last Name 1|John|Smith 2|Mary|White 3|Ken|Gray My question is how can I signal to SQL Loader to ignore any null record. Thanks for your...
  4. Chao

    REF CURSOR

    Is there an approach to traverse the columns of a ref cursor to extract the column information (i.e. column name and value) in PL/SQL? I can do this with Visual Basic's recordset object. Here's VB code of what I would like to do in PL/SQL: i.e. set rs = cn.execute("select * from...
  5. Chao

    Target table contains Identity Column

    I would like to import data from a text file into a temp table in SQL Server. However, the temp table has an identity column. How can I indicate that it should automatically generate an identity value for each imported record?
  6. Chao

    How to run a DTS when I want to?

    Sorry, I mean to post the quest not to reply.
  7. Chao

    How to run a DTS when I want to?

    I would like to import data from a text file into a temp table in SQL Server. However, the temp table has an identity column. How can I indicate that it should automatically generate an identity value for each imported record?
  8. Chao

    How to call SQL Server stored proc?

    I have a dblink from Oracle to SQL Server. I need to be able to call a SQL Server stored procedure and pass it some parameters. Does anybody have any clue how to do this?
  9. Chao

    Oracle updating SQL Server Table

    I would like to update/insert data from Oracle to SQL Server using a Oracle stored procedure. The procedure contains an insert statement that inserts data into a SQL Server table. I run the Insert statement standalone and was able to insert the entry onto SQL Server. However, using Oracle stored...
  10. Chao

    Exec Arbitrary Stored Proc

    Hi, Here is the general scope of my issue. I need to execute an arbitrary stored procedure/function. Only the name of the procedure is available and it is the result of a lookup from a table. At this point, I do not know the arguments (argument name, in or out or the data type) the arbitrary...
  11. Chao

    Checking for values in same table

    I think your query cannot be accomplished easily with one query. Have you try writing a stored procedure?
  12. Chao

    How to set NULL

    Here is a VB sampel: dim cn as adodb.connection dim strSQL as string ... set cn = new adodb.connection cn.open database, user, password ... cn.begintrans strSQL = "insert into XXX(a, b, c) values (1, 'test', null)" cn.execute strSQL ... cn.CommitTrans
  13. Chao

    Exception handling inside a function...

    First of all, there are 2 main categories of errors in Oracle. They are system errors and user generated error. System errors are errors generated by the system, such as no_data_found. User generated errors are raised by an application when an error condition is met. This type of error is an...
  14. Chao

    Query to retrieve hierarchy

    Sorry, the above solution is for Oracle. I thought I was in Oracle forum.

Part and Inventory Search

Back
Top