home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / databases / sybase-faq / part1 next >
Encoding:
Internet Message Format  |  2004-04-21  |  21.3 KB

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <databases/sybase-faq/part1_1082468590@rtfm.mit.edu>
  3. Supersedes: <databases/sybase-faq/part1_1074677126@rtfm.mit.edu>
  4. Expires: 2 Aug 2004 13:43:10 GMT
  5. X-Last-Updated: 2003/03/02
  6. From: dowen@midsomer.org (David Owen)
  7. Newsgroups: comp.databases.sybase,comp.answers,news.answers
  8. Subject: Sybase FAQ: 1/19 - index
  9. Reply-To: dowen@midsomer.org (David Owen)
  10. Followup-To: comp.databases.sybase
  11. Distribution: world
  12. Organization: Midsomer Consultants Inc.
  13. Approved: news-answers-request@MIT.EDU
  14. Keywords: FAQ, DATABASES, SYBASE, ASA, ASE, REP
  15. Originator: faqserv@penguin-lust.MIT.EDU
  16. Date: 20 Apr 2004 13:44:59 GMT
  17. Lines: 500
  18. NNTP-Posting-Host: penguin-lust.mit.edu
  19. X-Trace: 1082468699 senator-bedfellow.mit.edu 559 18.181.0.29
  20. Xref: senator-bedfellow.mit.edu comp.databases.sybase:106199 comp.answers:56945 news.answers:270285
  21.  
  22. Archive-name: databases/sybase-faq/part1
  23. URL: http://www.isug.com/Sybase_FAQ
  24. Version: 1.7
  25. Maintainer: David Owen
  26. Last-modified: 2003/03/02
  27. Posting-Frequency: posted every 3rd month
  28.    A how-to-find-the-FAQ article is posted on the intervening months.
  29.  
  30.                        Sybase Frequently Asked Questions                       
  31.  
  32.                                                                                
  33. Sybase FAQ Home PageAdaptive Server Enterprise FAQAdaptive Server Anywhere FAQ 
  34.                      Replication Server FAQSearch the FAQ                      
  35.                                   Sybase FAQ                                   
  36.  
  37.                                    Main Page                                   
  38.                                                                                
  39.  
  40.  
  41.   * Where can I get the latest release of this FAQ?
  42.   * What's new in this release?
  43.   * How can I help with the FAQ?
  44.   * Who do I tell about problems in the FAQ?
  45.   * Acknowledgements and Thanks
  46.   * Hall of Fame
  47.   * Copyright and Disclaimer
  48.   * General Index
  49.  
  50.  
  51.  
  52.                         Main | ASE | ASA | REP | Search                        
  53.  
  54.                                                                                
  55.  
  56. -------------------------------------------------------------------------------
  57.  
  58.                 Where can I get the latest release of this FAQ?                
  59.                                                                                
  60. International Sybase User Group
  61.  
  62. The main page for this site is http://www.isug.com/Sybase_FAQ.  It is hosted
  63. there by kind permission of the International Sybase User Group (http://
  64. www.isug.com) as a service to the Sybase community.
  65.  
  66. To get a text version of this FAQ:
  67.  
  68.     ftp://ftp.midsomer.org/pub/FAQ_txt_tar.Z
  69.    
  70.     or
  71.    
  72.     ftp://ftp.midsomer.org/pub/FAQ_txt.zip
  73.    
  74.     If you want uncompressed versions of the various sections, they can be got
  75.     from ASE, ASA & REP.
  76.    
  77. To get the HTML for this FAQ:
  78.  
  79.     ftp://ftp.midsomer.org/pub/FAQ_html_tar.Z
  80.    
  81.     or
  82.    
  83.     ftp://ftp.midsomer.org/pub/FAQ_html.zip
  84.    
  85. Last major update: 21st February 2003.
  86.  
  87. Back to Top
  88.  
  89. -------------------------------------------------------------------------------
  90.  
  91.                           What's new in this release?                          
  92.                                                                                
  93. Release 1.9
  94.  
  95.   * Running multiple servers on a single server (UNIX and NT).
  96.  
  97. Back to Top
  98.  
  99. -------------------------------------------------------------------------------
  100.  
  101.                         What's happening with the FAQ?                         
  102.                                                                                
  103. I have not had a lot of time to spend on the FAQ this year. Mainly, this is
  104. down to work, or the lack of it. I know, we are all in the same boat. Well, it
  105. has meant that I have had a lot less free time than I used to and as a result
  106. the FAQ has not been kept as up to date as I would like. Sadly, the work I have
  107. been doing is with those other database vendors, but we won't name them here.
  108. Anyway, that is the sob story over and done with. If anyone thinks that they
  109. would like to see more effort applied, I would be happy to hand the mantle
  110. over. Since the amount of help that I have actually seen amounts to about
  111. practically none, then I am sure I will not be over-run with offers! I will
  112. definitely have more time come January and plan some serious work on it then.
  113.  
  114. Back to Top
  115.  
  116. -------------------------------------------------------------------------------
  117.  
  118.                          How can I help with the FAQ?                          
  119.                                                                                
  120. I have had offers from a couple of people to write sections, but if you feel
  121. that you are in a position to add support for a section, or if you have some
  122. FAQs to add, please let me know.  This is a resource that we should all
  123. support, so send me the stuff and I will include it.
  124.  
  125. Typos and specific corrections are always very useful. Less useful is the
  126. general I don't think that section x.y.z is very understandable. Sorry to sound
  127. harsh, but what I need is actual text that is more readable. Better still is
  128. actual HTML that makes it stand out and sing (if necessary)!
  129.  
  130. Currently I am looking for maintainers of the following sections Replication,
  131. Adaptive Server Anywhere, IQ server, MPP Server and Open Server.  I am not sure
  132. whether to add a section for Omni Server.  I sort of feel that since Omni has
  133. been subsumed into ASE as CIS that any FAQs should really be incorporated
  134. there.   However, if you know of some good Omni gotchas or tips, whether they
  135. are still there in CIS or not, please send them in.  I certainly plan to have a
  136. subsection of ASE dealing with CIS even if Omni does not get its own major
  137. section.  I also think that we need sections on some of the really new stuff. 
  138. Jaguar and the new engines also deserve a spot.
  139.  
  140. Another very useful way that you can help is in getting people to update their
  141. links.  I have seen lots of links recently, some still pointing to Pablo's
  142. original, some pointing to Tom's site but referring to it as coming from the
  143. SGI site.
  144.  
  145. Back to Top
  146.  
  147. -------------------------------------------------------------------------------
  148.  
  149.                    Who do I tell about problems in the FAQ?                    
  150.                                                                                
  151. The current maintainer is David Owen ( dowen@midsomer.org) and you can send
  152. errors in the FAQ directly to me.  If you have an FAQ item (both the question
  153. and the answer) send it to sybfaq@midsomer.org and I will include it.
  154.  
  155. Do not send email to any of the officials at ISUG, they are simply hosting the
  156. FAQ and are not responsible for its contents.
  157.  
  158. Also, do not send email to Sybase, they are not responsible for the contents
  159. either.  See the Disclaimer.
  160.  
  161. Back to Top
  162.  
  163. -------------------------------------------------------------------------------
  164.  
  165.                           Acknowledgements and Thanks                          
  166.                                                                                
  167. Special thanks must go to the following people for their help in getting this
  168. FAQ to where it is today.
  169.  
  170.   * Pablo Sanchez for getting the FAQ off the ground in the first place and for
  171.     many years of dedicated work in maintaining it.
  172.    
  173.   * Anthony Mandic (am@peppler.org) for a million things.  Patiently answering
  174.     questions in all of the Sybase news groups, without which most beginners
  175.     would be lost.  For supporting and encouraging me in getting this FAQ
  176.     together and for providing some pretty neat graphics.
  177.    
  178.   * The ISUG, especially Luc Van der Veurst (lucv@az.vub.ac.be) and Michael
  179.     Peppler (mpeppler@peppler.org), for hosting this FAQ and providing support
  180.     in setting up the website.
  181.    
  182.   * The members of the various news groups and mailing lists who, like Anthony,
  183.     provide unstinting support.  The list is fairly long, but I think that Bret
  184.     Halford (bret@sybase.com) deserves a mention.   If you go to Google News
  185.     and do a search, he submits almost as many replies as Anthony.
  186.    
  187. Back to Top
  188.  
  189. -------------------------------------------------------------------------------
  190.  
  191.                                  Hall of Fame                                  
  192.                                                                                
  193. I am not sure how Pablo chose his select list, there is certainly no question
  194. as to their inclusion.  I know that there are a couple of awards that the ISUG
  195. give out each year for the people that the ISUG members believe have
  196. contributed most to the Sybase community that year.  I think that this section
  197. should honour those people that deserve an award each and every year.  If you
  198. know of a candidate, let me know and I will consider his or her inclusion. 
  199. Self nominations are not acceptable :-)
  200.  
  201. The following people have made it to the Sybase FAQ Hall of Fame:
  202.  
  203.   * Michael Peppler (mpeppler@peppler.org)   For Sybperl and all of the other
  204.     tools of which he is author or instigator plus the ceaseless support that
  205.     he provides through countless mailing lists, newsgroups and directly via
  206.     email.
  207.    
  208.   * Scott Gray (gray@voicenet.com)   Father of sqsh, much more than simply a
  209.     replacement for isql.  How anyone developing or administering Sybase can
  210.     survive without it, I will never know.
  211.    
  212.   * Pablo Sanchez ( www.hpdbe.com)  Pablo got the first web based FAQ off the
  213.     ground, wrote most (all?) of the first edition and then maintained it for a
  214.     number of years.   He did a fantastic job, building a resource that is
  215.     worth its weight in gold.
  216.    
  217. Back to Top
  218.  
  219. -------------------------------------------------------------------------------
  220.  
  221.                            Copyright and Disclaimer                            
  222.                                                                                
  223. Distribution
  224.  
  225. You are free to copy or distribute this FAQ in whole or in part, on any medium
  226. you choose provided that you:
  227.  
  228.   * include this Copyright and Disclaimer notice;
  229.   * do NOT distribute or copy, in any fashion, with the intention of making a
  230.     profit from its use;
  231.   * give FULL attribution to the original authors.
  232.  
  233. Disclaimer
  234.  
  235. This FAQ is provided as is without any express or implied warranties. Whilst
  236. every endeavour has been taken to ensure the accuracy of the information
  237. contained within the articles, the author, nor any of the contributors, assume
  238. responsibility for errors or omissions, or for damages resulting from the use
  239. of the information contained herein.
  240.  
  241. If you are not happy about performing any of the suggestions contained within
  242. this FAQ, you are probably better off calling Sybase Technical Support.
  243.  
  244. Copyright
  245.  
  246. This site and all its contents belongs to the Sybase FAQ (http://www.isug.com/
  247. Sybase_FAQ).
  248.  
  249. Unless explicitly stated in an article, all material within this FAQ is
  250. copyrighted. The primary copyright holders are David Owen and Pablo Sanchez.
  251. However, all contributed material is, and will remain, the property of the
  252. respective authors and contributors.
  253.  
  254. Back to Top
  255.  
  256. -------------------------------------------------------------------------------
  257.                                       ASE                                      
  258.                                                                                
  259. 1.1: Basic ASE Administration
  260.  
  261.     1.1.1    What is SQL Server and ASE anyway?
  262.     1.1.2    How do I start/stop ASE when the CPU reboots?
  263.     1.1.3    How do I move tempdb off of the master device?
  264.     1.1.4    How do I correct timeslice -201?
  265.     1.1.5    The how's and why's on becoming Certified.
  266.     1.1.6    RAID and Sybase
  267.     1.1.7    How to swap a db device with another
  268.     1.1.8    Server naming and renaming
  269.     1.1.9    How do I interpret the tli strings in the interface file?
  270.     1.1.10  How can I tell the datetime my Server started?
  271.     1.1.11  Raw partitions or regular files?
  272.     1.1.12  Is Sybase Y2K (Y2000) compliant?
  273.     1.1.13  How can I run the ASE upgrade manually?
  274.     1.1.14  We have lost the sa password, what can we do?
  275.     1.1.15  How do I set a password to be null?
  276.     1.1.16  Does Sybase support Row Level Locking?
  277.     1.1.17  What platforms does ASE run on?
  278.     1.1.18  How do I backup databases > 64G on ASE prior to 12.x?
  279.    
  280. 1.2: User Database Administration
  281.  
  282.     1.2.1    Changing varchar(m) to varchar(n)
  283.     1.2.2    Frequently asked questions on Table partitioning
  284.     1.2.3    How do I manually drop a table?
  285.     1.2.4    Why not create all my columns varchar(255)?
  286.     1.2.5    What's a good example of a transaction?
  287.     1.2.6    What's a natural key?
  288.     1.2.7    Making a Stored Procedure invisible
  289.     1.2.8    Saving space when inserting rows monotonically
  290.     1.2.9    How to compute database fragmentation
  291.     1.2.10  Tasks a DBA should do...
  292.     1.2.11  How to implement database security
  293.     1.2.12  How to shrink a database
  294.     1.2.13  How do I turn on auditing of all SQL text sent to the server
  295.     1.2.14  sp_helpdb/sp_helpsegment is returning negative numbers
  296.    
  297. 1.3: Advanced ASE Administration
  298.  
  299.     1.3.1   How do I clear a log suspend'd connection?
  300.     1.3.2   What's the best value for cschedspins?
  301.     1.3.3   What traceflags are available?
  302.     1.3.4   How do I use traceflags 5101 and 5102?
  303.     1.3.5   What is cmaxpktsz good for?
  304.     1.3.6   What do all the parameters of a buildmaster -d<device> -yall mean?
  305.     1.3.7   What is CIS and how do I use it?
  306.     1.3.8   If the master device is full how do I make the master database
  307.     bigger?
  308.     1.3.9   How do I run multiple versions of Sybase on the same server?
  309.     1.3.10  How do I capture a process's SQL?
  310.    
  311. 1.4: General Troubleshooting
  312.  
  313.  1. How do I turn off marked suspect on my database?
  314.  2. On startup, the transaction log of a database has filled and recovery has
  315.     suspended, what can I do?
  316.  3. Why do my page locks not get escalated to a table lock after 200 locks?
  317.  
  318. 1.5: Performance and Tuning
  319.  
  320.     1.5.1   What are the nitty gritty details on Performance and Tuning?
  321.     1.5.2   What is best way to use temp tables in an OLTP environment?
  322.     1.5.3   What's the difference between clustered and non-clustered indexes?
  323.     1.5.4   Optimistic versus pessimistic locking?
  324.     1.5.5   How do I force an index to be used?
  325.     1.5.6   Why place tempdb and log on low numbered devices?
  326.     1.5.7   Have I configured enough memory for ASE?
  327.     1.5.8   Why should I use stored procedures?
  328.     1.5.9   I don't understand showplan's output, please explain.
  329.     1.5.10  Poor man's sp_sysmon.
  330.     1.5.11  View MRU-LRU procedure cache chain.
  331.     1.5.12  Improving Text/Image Type Performance
  332.    
  333. 1.6: Server Monitoring
  334.  
  335.     1.6.1   What is Monitor Server and how do I configure it?
  336.     1.6.2   OK, that was easy, how do I configure a client?
  337.    
  338. 2.1: Platform Specific Issues - Solaris
  339.  
  340.     2.1.1    Should I run 32 or 64 bit ASE with Solaris?
  341.     2.1.2    What is Intimate Shared Memory or ISM?
  342.    
  343. 2.2: Platform Specific Issues - NT/2000
  344.  
  345.     2.2.1    How to Start ASE on Remote NT Servers
  346.     2.2.2    How to Configure More than 2G bytes of Memory for ASE on NT
  347.     2.2.3    Installation Issues
  348.    
  349. 2.3: Platform Specific Issues - Linux
  350.  
  351.     2.3.1    ASE on Linux FAQ
  352.    
  353. 3: DBCC's
  354.  
  355.     3.1    How do I set TS Role in order to run certain DBCCs...?
  356.     3.2    What are some of the hidden/trick DBCC commands?
  357.     3.3    Other sites with DBCC information.
  358.     3.4    Fixing a Munged Log
  359.    
  360.     Performing any of the above may corrupt your ASE installation. Please do 
  361.     not call Sybase Technical Support after screwing up ASE. Remember, always
  362.     take a dump of the master database and any other databases that are to be
  363.     affected.
  364.    
  365. 4: isql
  366.  
  367.     4.1    How do I hide my password using isql?
  368.     4.2    How do I remove row affected and/or dashes when using isql?
  369.     4.3    How do I pipe the output of one isql to another?
  370.     4.4    What alternatives to isql exist?
  371.     4.5    How can I make isql secure?
  372.    
  373. 5: bcp
  374.  
  375.     5.1    How do I bcp null dates?
  376.     5.2    Can I use a named pipe to bcp/dump data out or in?
  377.     5.3    How do I exclude a column?
  378.    
  379. 6.1: SQL Fundamentals
  380.  
  381.     6.1.1    Are there alternatives to row at a time processing?
  382.     6.1.2    When should I execute an sp_recompile?
  383.     6.1.3    What are the different types of locks and what do they mean?
  384.     6.1.4    What's the purpose of using holdlock?
  385.     6.1.5    What's the difference between an update in place versus a deferred
  386.     update? - see Q1.5.9
  387.     6.1.6    How do I find the oldest open transaction?
  388.     6.1.7    How do I check if log truncation is blocked?  
  389.     6.1.8    The timestamp datatype
  390.     6.1.9    Stored Procedure Recompilation and Reresolution
  391.     6.1.10   How do I manipulate binary columns?
  392.     6.1.11   How do I remove duplicate rows from a table?
  393.    
  394. 6.2: SQL Advanced
  395.  
  396.     6.2.1    How to emulate the Oracle decode function/crosstab
  397.     6.2.2    How to implement if-then-else within a select-clause.
  398.     6.2.3    deleted due to copyright hassles with the publisher
  399.     6.2.4    How to pad with leading zeros an int or smallint.
  400.     6.2.5    Divide by zero and nulls.
  401.     6.2.6    Convert months to financial months.
  402.     6.2.7    Hierarchy traversal - BOMs.
  403.     6.2.8    Is it possible to call a UNIX command from within a stored
  404.     procedure or a trigger?
  405.     6.2.9    Information on Identities and Rolling your own Sequential Keys
  406.     6.2.10  How can I execute dynamic SQL with ASE
  407.     6.2.11  Is it possible to concatenate all the values from a column and
  408.     return a single row?
  409.     6.2.12  Selecting rows N to M without Oracle's rownum?
  410.     6.2.13  How can I return number of rows that are returned from a grouped
  411.     query without using a temporary table?
  412.    
  413. 6.3: Useful SQL Tricks
  414.  
  415.     6.3.1    How to feed the result set of one stored procedure into another.
  416.     6.3.2    Is it possible to do dynamic SQL before ASE 12?
  417.    
  418. 7: Open Client
  419.  
  420.     7.1    What is Open Client?
  421.     7.2    What is the difference between DB-lib and CT-lib?
  422.     7.3    What is this TDS protocol?
  423.     7.4    I have upgraded to MS SQL Server 7.0 and can no longer connect from
  424.     Sybase's isql.
  425.     7.5    The Basics of Connecting to Sybase
  426.     7.6    Connecting to ASE using ODBC
  427.     7.7    Which version of Open Client works with which ASE?
  428.     7.8    How do I tell the version of Open Client I am running?
  429.    
  430. 9: Freeware
  431.  
  432.     9.0      Where is all the code and why does Section 9 suddenly load in a
  433.     reasonable amount of time?
  434.    
  435.     Stored Procedures
  436.    
  437.     9.1.1      sp_freedevice - lists device, size, used and free.
  438.     9.1.2      sp_dos - This procedure graphically displays the scope of a
  439.     object
  440.     9.1.3      sp_whodo - augments sp_who by including additional columns: cpu,
  441.     I/O...
  442.     9.1.4      sp__revroles - creates DDL to sp_role a mirror of your SQL
  443.     Server
  444.     9.1.5      sp__rev_configure - creates DDL to sp_configure a mirror of your
  445.     SQL Server
  446.     9.1.6      sp_servermap - overview of your SQL Server
  447.     9.1.7      sp__create_crosstab - simplify crosstable queries
  448.     9.1.8      sp_ddl_create_table - creates DDL for all user tables in the
  449.     current database
  450.     9.1.9      sp_spaceused_table
  451.     9.1.10    SQL to determine the space used for an index.
  452.     9.1.11    sp_helpoptions - Shows what options are set for a database.
  453.     9.1.12    sp_days - returns days in current month.
  454.     9.1.13    sp__optdiag - optdiag from within isql
  455.     9.1.14    sp_desc - a simple list of a tables' columns
  456.     9.1.15    sp_lockconfig - Displays locking schemes for tables.
  457.    
  458.     Shell Scripts
  459.    
  460.     9.2.1      SQL and sh(1)to dynamically generate a dump/load database
  461.     command.
  462.     9.2.2      update statistics script
  463.    
  464.     Perl/Sybperl
  465.    
  466.     9.3.1      SybPerl - Perl interface to Sybase.
  467.     9.3.2      dbschema.pl - Sybperl script to reverse engineer a database.
  468.     9.3.3      ddl_insert.pl - creates insert DDL for a table.
  469.     9.3.4      int.pl - converts
  470.    
  471.     12: Miscellany
  472.    
  473.         12.1    What can Sybase IQ do for me?
  474.         12.2    Net-review of Sybase books
  475.         12.3    email lists
  476.         12.4    Finding Information at Sybase
  477.        
  478.                                         ASA                                    
  479.                                                                                
  480.     Adaptive Server Anywhere
  481.    
  482.         0.0    Preamble
  483.         0.1    What is ASA?
  484.         0.2    On what platforms is ASA supported?
  485.         0.3    What applications is ASA good for?
  486.         0.4    When would I choose ASA over ASE?
  487.         0.5    Does ASA Support Replication?
  488.         0.6    What is ASA UltraLite?
  489.         0.7    Links for further information
  490.        
  491.                                         REP                                    
  492.                                                                                
  493.     Introduction to Replication Server
  494.    
  495.         1.1    Introduction
  496.         1.2    Replication Server Components
  497.         1.3    What is the Difference Between SQL Remote and Replication
  498.         Server?
  499.        
  500.     Replication Server Administration
  501.    
  502.         2.1    How can I improve throughput?
  503.         2.2    Where should I install replication server?
  504.         2.3    Using large raw partitions with Replication Server on Unix.
  505.         2.4    How to replicate col = col + 1
  506.         2.5    What is the difference between an LTMs an a RepAgent?
  507.         2.6    Which Should I choose, RepAgent or LTM?
  508.        
  509.     Replication Server Trouble Shooting
  510.    
  511.         3.1    Why am I running out of locks on the replicate side?
  512.         3.2    Someone was playing with replication and now the transaction log
  513.         on OLTP is filling.
  514.        
  515.     Additional Information/Links
  516.    
  517.          
  518.        
  519.         4.1    Links
  520.         4.2    Newsgroups
  521.        
  522.