			System Problem Report
			SYBASE 4.2.1 SQL Server 
--------------------------------------------------------------------------------
			    Nov 09 1992

 	Bug No. Description
 	------- ------------------------------------------------------------
 
	21789  atn2(tinyint, tinyint) stack traces the server when tinyint
		  is selected from a table.
		 
	22798  'select * into tempdb..test from pubs..titles'. when tab
		 test is viewed from dwb/data dict titleid (first col)
		 doesn't exist. when tab test viewed by exec sp_help titleid
		 (first col) has NULL in Type col.
		 
	23394  The following query: select str(convert(float,
		 intfld)/1000, 7, N) yields incorrect -0.0[...0] result when
		 value is smaller than significant digits displayed but
		 greater than 0.
		 
	23395  str((convert(float, intfld))/10, 8, N) gives incorrect
		 results - it appears to have not rounded answers
		 correctly.
		 
	23563  Sequence of events: create table, insert data, dbcc
		 checktable(syslogs) hangs the process.  Japanese language
		 set only.
		 
	23564  Create database statement gives syntax error if comma is
		 used as separator between data and log device
		 designations.
		 
	25355  select which mixes derived with non-derived field
		 (aggregate function with column for instance) returns
		 correct derived value as specified by where clause, but
		 also returns all rows; seems to ignore where clause when
		 pulling back data specified by columns
		 
	25505  When a database is dropped, the procedure referencing the
		 dropped database behaves inconsistently ( the procedure is
		 executed on the next created database if it has the same
		 table).
		 


    Sybase Confidential		  - 1 -		   11/09/92

 	Bug No. Description
 	------- ------------------------------------------------------------
	25919  documentation for error severity level 16 indicates
		 miscellaneous user error which can be corrected by user,
		 yet many 2500 errors of level 16 are serious table or
		 database corruption, neither caused by nor correctable by
		 the user.
		 
	26285  Trigger attempts to query inserted table for text
		 information that is not available and reports 605 error of
		 data corruption. There is no corruption, but since inserted
		 table built from syslogs rows 605 occurs between syslogs
		 and user table. Erroneous msg
		 
	26513  @@rmt_row_count.  Would like server variable that would be
		 set with the row count of the number of rows returned by a
		 remote server. Currently rpc's to gateway return 0
		 rowcount.
		 
	26644  in pubs, select zip,(select count(*) from authors where
		 zip=a.zip) from authors a where zip='94705' returns '94705,
		 4' instead of '94705, 2' twice.  this does not match the
		 expected results of a correlated subquery according Sybase
		 internals experts.
		 
	26861  Recovery should failover to secondary member of mirror set
		 when primary is inaccessible rather than mark databases
		 suspect. Mirroring needs to be more robust.
		 
	27055  A subquery that compares a correlated column with a
		 non-correlated column using a "like" comparison will get an
		 erroneous error 138.
		 
	27234  loading a tape that has write-protection tab ON, fails.
		 The device is opened read/write BUT the client does not
		 want to gamble that the data may be overwitten
		 inadvertently!
		 
	27242  'select' also using 'group by' will cause the 'where'
		 condition to be evaluated incorrectly.  This can cause data
		 NOT matching the condition in the 'where' clause to be
		 selected.
		 
	27274  Correlated subqueries that return aggregates can give
		 incorrect results when there are duplicates in the joining
		 columns from the outer query.
		 
	27323  a subquery on a view table within "exists" delivers wrong
		 results.  reproduction material: shalom:
		 
	27324  result of the query depends in the order in which the
		 operands  are writen around the operator "AND"..ie. select
		 .. where  condition1   and condition2  .. will be different
		 to condition2 and condition1!!
		 
	27340  identical to bug 27218 identified by Mike McKenna for 4.9
		 version.  The floating point precision is lost past the
		 17th position when converting to char.  This is ok for the
		 server but not for outside applications
		 


    Sybase Confidential		  - 2 -		   11/09/92

 	Bug No. Description
 	------- ------------------------------------------------------------
	27381  browse mode in dblib builds a where clause based on a
		 unique index of type float.  browse does not put a dec.
		 point at the end of the value -- when server reads the
		 ascii string it assumes integer but the value is too large
		 and out of range error occurs
		 
	27571  RPC to OpenServer via a SQL Server hangs if the client
		 sends an attention and results are still pending.
		 
	27852  4.2/EBF632..and probably generic in aix.. sp_dropdevice
		 allows to drop a device that contains a valid database.
		 
	27867  Min and max are sometimes optimized to use an inefficient
		 index when a much better index exists.  This happens with a
		 qualified min or max where the qualification is reasonably
		 selective, and another index exists which could use the
		 qualification.
		 
	28651  Stored proc which inserts @param char(8) into datetime
		 field does not do implicity conversion, but gets 241
		 error.  Insert from isql prompt has no problem.
		 
	28710  Internal: in the config block pointers to the pages
		 containing default charset/sortorder may be inaccurate
		 after buildmaster -r or buildmaster -m followed by a load
		 of master.  results in 605 and failure opening master
		 during server startup.
		 
	28903  rollback inside trigger inside sproc inside sproc leaves
		 user in wrong database if the 2 sprocs are in different
		 databases
		 
	29122  select convert(char(30),convert(money,"$.004")) loses its
		 precision, it returns 0.0 instead of 0.004
		 
	29160  create view in db then rename db to old and leave old db in
		 single user mode, create new db load dump of original db
		 and rename new datbase to original name and try selecting
		 from view in this db; will get error #924 as view will
		 refer old db.
		 
	29177  Create database command allocates space in 1/2 mb units up
		 to amount requested.  Users needing to recreate dbs for
		 recovery are only able to specify whole mb units so cannot
		 recreate exact db schema.
		 
	29263  Users are getting looping stack traces in errlogs
		 (specifically errs 2714, 2705, 603). PROBLEM: these stack
		 trace loops take up a lot of space. Is it possible to flush
		 duplicate stacks?
		 
	29355  update tableA set b.colX=c.colX from tableB b, tableC c
		 where b.colY=c.colY  ... updates b.colX instead of giving a
		 syntax error even though user means to update table A, if
		 all three tables have colX.
		 




    Sybase Confidential		  - 3 -		   11/09/92

 	Bug No. Description
 	------- ------------------------------------------------------------
	29648  If create database on device = xx log on device = xx uses
		 the same device, sp_addsegment to that device will complain
		 that it is exclusively log.
		 
	29649  Sp_helplog returns inconsistent results.  Sometimes they
		 are correct and sometimes they are not.
		 
	30485  error msg 4408 appears to be somewhat misleading: should
		 say something more like "The total number of tables
		 referenced in query execeeds the limit of 16"  (the number
		 of work tables count toward limit as well as all the tables
		 in the views)
		 
	30599  related to bug#26757, user tries to enter number in the
		 billion range(3000000000) into a float column of a table
		 and gets 168 error message , user must place decimal point
		 in to be accepted,documentation Com.Ref.2-70 says decimal
		 point option /not true
		 
	30669  When doing serial writes we do not start i/o on the same
		 side of the mirror consistantly, instead we try to optimize
		 based on last i/o position. This can cause incosistancy
		 between the two disks if there is an i/o error or
		 unmirroring.
		 
	30682  Discovered on insert of 3 not null char (x) columns.
		 Differing permutations of UPPER function on columns gave
		 inconsistent 221 error messages and *ALLOWED NULLS*
		 
	30734  Error 803 occurs when doing inserts on tables with
		 non-clustered indexes. Problem is that we do not have
		 enough keep slots in the sdes.
		 
	30735  Message: Buffer %lx from database '%.*s' has page number
		 %ld in the page header and page number %ld in the buffer
		 header. This comes from bufunhash() because a bad page was
		 left in the cache. Could cause 605's and worse later.
		 
	31337  user gets msg 2007 level 11 state 1 when has a procedure
		 that contains a call to the system procedure, "sp_dropkey"
		 if the user procedure is not created within the master
		 database.
		 





    Sybase Confidential		  - 4 -		   11/09/92

 	Bug No. Description
 	------- ------------------------------------------------------------
	31338  fully qualifying sp_dropkey by "master.dbo.sp_dropkey" will
		 cause sql server to look for the table in the master
		 database irregardless of where the system procedure was
		 executed from.  get msg "The table or view named does not
		 exist in the current db".
		 
	31339  execution of system procedure does not allow full
		 qualification of the table name parameter.  cannot say "
		 sp_dropkey foreign, dbname.dbo.tbl_name,
		 dbname.dbo.tbl_name".
		 
	31488  On user databases dbcc checktable(syslogs) returns space
		 used and space free as 0.0Mb and 0.0 %.
		 
	32062  rowpage in sysindexes can be set to higher than 255 for
		 tables (indid 0) and clustered indexes (indid 1).  The
		 absolute max is 255. This can fool the optimizer into
		 thinking that a table scan or clustered index is cheaper
		 than it really is.
		 
	32133  creating default in model database causes sp_helpdevice to
		 fail, giving Msg 511
		 
	32219  stuff fcn returns 'null' if the start length specified is
		 greater than the actual length of the value or column value
		 specified for char_expr1.  happens on both char and varchar
		 columns.
		 
	32471  when a view is involed in the query to do a join, th
		 results are not correct. it multiplies by 100 and displays,
		 whereas when the view is not involved the results are
		 normal.
		 
	32671  When running the cursor test program, the 4.2 server
		 produces a segmentation fault and stack trace.  It fails in
		 the DB-Lib 4.2 call dbcursoropen() on the client side.  On
		 the server side, it fails at the sp_special_columns store
		 procedure.
		 
	32849  usage of "exec @varname" results in error "stored
		 procedure ' ' not found". same usage within a stored proc
		 results in "SQL Server terminating this process"
		 
	33158  if the customer does a non default install the instmstr.ncf
		 and the instmodl.ncf are not created.  I am not sure if
		 they are missing on the default install also
		 
	33260  In the sysadministration documentation it is not clear that
		 the last default, system segment or log segment cannot be
		 dropped. It should be made clear that a database must have
		 atleast one default, system or log segment.
		 
	33300  sp_helpdevice give back device_number =0 for all physical
		 disk devices.
		 





    Sybase Confidential		  - 5 -		   11/09/92

 	Bug No. Description
 	------- ------------------------------------------------------------
	33449  select into from a view returns "Can not run query- the
		 referenced object dropped during query optimization".
		 msg225, level 16, state 1 fails on 42sun and on latest
		 50sun (dated 09/01/92)
		 
	33519  Select ($0.01 * $0.01) gives timeslice error witha stack
		 trace
		 
	33732  The round function doesn't round reliably. sometimes five
		 is rounded up, and others it is rounded down. select
		 round(1.075,2) will yield 1.07.
		 
	34076  user mirrors 5 devices from disk1 to disk2; if disk2
		 becomes unavailable and user starts up SQLS we hit error
		 603 on device5 due to sdes limitation; thus device5 is
		 still marked mirror enabled and mirror handler process went
		 away!
		 
	34605  query that performs select count(*) from table where field
		 in(select field from same table) returns incorrect number
		 of rows
		 
	34665  group by does not properly group rows when the grouping
		 expression contains nulls when an outer join exists in the
		 where clause:  Nulls are grouped with another group rather
		 than in their own group.
		 
	34762  On single page tables that contain char or varchar
		 datatypes, the server boots up with a long (rather
		 unhelpful) message about each object and index that
		 violates check of sort order. If the user dumps the db and
		 reloads it, they get the msg. Checkdb shou
		 
	34827  select convert(char, 12345.6789) returns 12345.7 instead of
		 full value.  Only 7 characters including decimal point are
		 returned.
		 
	34886  query with 5 way join ran with a set show plan on and set
		 noexec on. time slice 1501.  WARNING: Pss found with open
		 sdes. Error: 6103.
		 


    Sybase Confidential		  - 5 -		   11/09/92
