Q: How can I create a library using ODBC? I will be using Visual Basic (VB). I can use SQL passthrough to issue OS/400 SQL commands directly, but I don't know the SQL command to create a library.
A: The SQL command to create a library is "CREATE COLLECTION". The command will also create a journal, journal receiver, and catalog views for the collection. Any subsequent CREATE TABLEs added into the collection will automatically be journaled.
- Brian Singleton
Brian Singleton is former editor of Midrange Computing. He has worked in the IBM midrange arena for many years, performing every job from backup operator to programmer to systems analyst to technology analyst for major corporations and IBM Business Partners. He also has an extensive background in the PC world. Brian also developed a line of bestselling Midrange Computing training videos, authored the bestselling i5/OS and Microsoft Office Integration Handbook, and has spoken at many popular seminars and conferences.
MC Press books written by Brian Singleton available now on the MC Press Bookstore.
i5/OS and Microsoft Office Integration Handbook Harness the power of Microsoft Office while exploiting the iSeries database. List Price $79.95 Now On Sale |
LATEST COMMENTS
MC Press Online