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: *

  • Users: Chao
  • Order by date
  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.
  15. Chao

    Query to retrieve hierarchy

    Try this, select * from Category start with cat_id in ( select distinct cat_id from category where upper(name) like 'PEN%') connect by prior pcat_id = cat_id; Hope it is not too late.
  16. Chao

    Optimize Hierarchy Query???

    Hi, I would like to find out if there is another way to optimize my query or other ways I can make it run faster. The query attempts to determine the nodes in the List where the node return is the highest level in its branch within the List. The query takes around 5 minutes. Your feedback is...
  17. Chao

    Read a text file from bottom to top

    ... dim intFileHandle as integer dim strFileName as string dim strInRec(0) as string ... strFileName = "c:\temp\InFile.txt" ... open strFileName For Input AS #intFileHandle While not EOF(intFileHandle) line input #intFileHandle, strInRec(ubound(strInRec)) redim...
  18. Chao

    ORA-06571, fn not guarantee not to update database

    Thanks sem. I did not understand the usage of the restrict_reference very well. With your comment in mind, I put all the functions and constants into one stand alone function unit and it worked great. After that I started to replacing the calls to the local function with calls to other stand...
  19. Chao

    ORA-06571, fn not guarantee not to update database

    What I am trying to do is have a front end call a stored procedure that will return a result set (via SELECT ...). In this stored procedure, the select statement will called a function (say GetData) to query the related data depending on the transaction type. Everything compile fine until I...

Part and Inventory Search

Back
Top