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

	Bug No. Description
	------- ------------------------------------------------------------
 

	15752  Users are not supposed to be allowed to specify a length
		 for a user defined datatype.  Now they can (as long as the
		 length is < that defined), which is a bug.
	 
	18968  The server gets a 1203 error when running a query that
		 generates a work table.
	 
	19773  Server gets an 804 error, when a deadlock was detected by
		 the process that was doing a lot of updates.
 
	21930  get error 242 lev 16 state 3 when try to insert datetime
		 datatype using spaces () as the delimiter.  when use
		 datetime format "01 22 91".  commands reference manual
		 indicates that this is a valid entry format.
	 
	22018  Creating tables with object names (table name, column
		 names) composed of all international characters with the
		 eigth bit set causes the SQL Server to seg fault.
		 
	24520  2610 errors when using a non clustered index on
		 smalldatetime.Also, the error text has the wrong index
		 name.
		 
	27008  Display of space distribution foe data is
		 erroneous/inconsistent.
		 
	27023  Certain key values caused the optimizer to return wrong
		 selectivity, may result in index not being used in the
		 query plan.
		 
	27141  sp_rename doesn't return status message when user datatype
		 is renamed.
		 





    Sybase Confidential		- 1 -		 11/09/92

	Bug No. Description
 	------- ------------------------------------------------------------
	27142  sp_rename allows invalid identifiers to be used for rules,
		 procs, etc. However the renamed objects then cannot be
		 used/dropped/re_renamed.
		 
	27216  sp_helpindex truncated the column names more than 70
		 characters.
		 
	27221  sp_help on money column in view returns datatype moneyn,
		 while sp_help the base table of the view returns datatype
		 money.
		 
	27227  When creating a primary key on 8 columns, sp_helpkey
		 returns one of the columns as an object_key twice, and one
		 not at all, ie. instead of returning
		 f1,f2,f3,f4,f5,f6,f7,f8, it returns f1,f2,f3, f4, f5, f4,
		 f7, f8.
		 
	27259  sp_helpremotelogin displays names in reverse order from
		 elsewhere.
		 
	27278  sp_helptext no longer reports when object not in current
		 database.
		 
	27307  sp_chklangparam accepts invalid lang.params for cp437 and
		 cp850.
		 
	27308  sp_validname does not properly disallow invalid
		 characters.
		 
	27312  non_index objects from sysindexes are redundently listed.
		 
	27379  Update executes despite the invalid use of aggregate
		 function, that could corrupted the data in a table.
		 
	27476  Select from a large text table where text like a string.
		 Eventually all locks are used up and the query is aborted.
		 
	27539  Quoted string in column heading can only be 29 chars, NOT
		 30.
		 
	27654  When creating a clustered composite index, server does not
		 report an error if you specify 17 columns in the index. The
		 maximum should be 16.
		 
	27655  When creating nonclustered index with 18 coulmns, server
		 reports #1904 error with wrong number of columns:" Cannot
		 specify more than 17 column names for index key list. 19
		 specified."
		 
	27683  An insert trigger on a text table that selects inserted
		 rows like a string gets error 7134. A similar delete
		 trigger selecting deleted rows like a string get error
		 7123.
		 
	27763  sp_dropserver w/,droplogins option and no logins does't
		 give any message.
		 



    Sybase Confidential		- 2 -		 11/09/92

	Bug No. Description
 	------- ------------------------------------------------------------
	27768  The SA is allowed to drop a user even if the user is dbo of
		 a database. When this is done there is no dbo. The next
		 login the sa adds automatically becomes the dbo of any
		 database that doesn't have a dbo.
		 
	27793  A select where text is LIKE a pattern OR a qualification on
		 another table is true gets error Msg 7134.
		 
	27982  User with select permission on view V can create view W as
		 select * from V then update the base table through W.
		 
	27986  Revoke update permission on a single column and
		 sp_helprotect output is corrupted.
		 
	28150  Timestamp column not initialized properly when inster
		 statement right after the table created statement in the
		 same batch.
		 
	28163  If using global variables as the default value for
		 parametets to a stored procedure the server will GP fault.
		 
	28181  A text table updated with Microsoft's iberle db-lib program
		 gets 1203 errors.
		 
	28187  after invoking a microsoft SQL script, subsequent
		 installmasters use up disk resources in the master db
		 eventually causing 1105.  this "disk leakage" appears on
		 os/2 4.2, sun 4.2, and sun 5.0
		 
	28283  Doing readtext with text pointer declared as binary(16) or
		 larger GP-faults the server.
		 
	28477  The user datatype sent to the client for a timestamp column
		 is wrong if the timestamp is selected explicitly or with
		 '*'.
		 
	28480  Updating a float, int, or money column with a sum aggregate
		 of the same datatype in a view gets error 206.
		 
	28505  Add to a table a new column of user defined datatype with a
		 rule or a default bound to it. The rule or default does not
		 hold.
		 
	28511  sp_dropdevice drops a device that is currently being used
		 by a database.
		 
	28530  After upgrading a server from 3.4 to 4.2, a stored
		 procedure doing a group by on table fails to return the
		 correct results (it return massive dumpication of results
		 set). Droping & recreating it return the correct the
		 correct results.
		 
	28532  Grant all on a table to public, but sp_helprotect reports
		 'No such user exists in the database'.
		 
	28557  Select where date between date1 later than date2 returns 0
		 rows, unlike other data types.
		 


    Sybase Confidential		- 3 -		 11/09/92

	Bug No. Description
 	------- ------------------------------------------------------------
	28589  Converting the maximum smallmoney value ($214,748.3647) to
		 smallmoney or inserting it into a smallmoney column get
		 error 237.
		 
	28590  The optimizer chooses to sort rather than use a unique
		 clustered index if the current sort order has tertiary
		 ordering.
		 
	28639  select where column like 'yy1%' and 'yy2%' and...'yy16%'
		 causes a stack trace and multitude of other errors
		 
	28676  patindex('%[tb]est%',...) gets the wrong offset, off by -1
		 
	28693  Disk umirror doesn't set the status bit devices properly.
		 This leads to other problems like getting errors when
		 trying to remove later mirrors..
		 
	28707  On selecting a small scientific value isql prints 0.00000;
		 eg; select 1e-8 will print 0.000000; but server returns the
		 correct value.
		 
	28800  sp_dropsegment message is missing a blank.
		 
	28846  select into tablename from view based on dropped table
		 crashes server.
		 
	28881  When two users try to establish a remote connection
		 simultaneously, one of them receives a 7204, NET ACTIVE
		 error.
		 
	28889  Entering dbcc ind or dbcc tab without parameters GP-faults
		 the server.
		 
	28892  Stress test with 10 users creating tables and nested views
		 while another user do dump tran frequently gets a
		 timeslice.
		 
	28947  Too long a transaction name will GP-fault the server.
		 
	28963  The SQL Server is returning the incorrect length in the
		 RETURNVALUE data stream for an RPC.
		 
	28983  under certain circumstances select max (indexed col)
		 returns nulls rather than the correct value.
		 
	29001  dbcc checkcatalog message 2554 formats poorly.
		 
	29012  gp fault in upgrade when upgrading a database with extended
		 characters (8bit characters) in the database name
		 
	29021  The server GP-faults while following a chain of constant
		 structures holding text datatype.
		 
	29041  Sp_chklangparam doesn't allow a hyphen in day of the week
		 names. Monday is "secoud-feira" in Portuguese.
		 




    Sybase Confidential		- 4 -		 11/09/92

	Bug No. Description
 	------- ------------------------------------------------------------
	29098  Given a view that contains a cloname=count(colname) and a
		 group by. If a query selects the colname, and does an
		 outjoin with the view and another table, the server
		 GP_faults.
		 
	29123  compiling a distinct subquery leads to overwriting of
		 server internal datastructures.
		 
	30239  Implicit conversion from varchar to datetime in assignment
		 causes server GP fault.
		 
	30282  A select statement with more than 250 parameters in IN
		 clause gp-fault the server. Similar behaviour occurs when
		 the query expressed in terms of equivalent OR clauses.
		 
	30550  Doing select on view which has global variable (e.g.
		 @@spid) as condition in where clause causes GP-FAULT.
		 
	30577  If @error is not 0, it is not being reset to 0 after
		 successfully executing create proc/view.
		 
	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.
		 
	31249  exec @procname within a stored procedure, crashes os/2
		 server and unexpected EOF on sun 42 & 491 servers, caused
		 by sql.y partially   supporting variables holding procedure
		 names
		 
    Sybase Confidential		- 5 -		 11/09/92

	Bug No. Description
 	------- ------------------------------------------------------------
	31795  select au_lname from authors where au_lname like %e[a-z]
		 returns incorrect results with most sort orders except
		 binary cp850
		 
	31855  An update on a table with a between condition on a money
		 calculation gives an infected process and produces a stack
		 trace.
		 
	32239  sysindexes are not updated correctly on inserts from a
		 dblib application & as a result sp_spaceused shows a
		 negative value for index size. The table has non clustered
		 index & image cols. MS bug id 1397
		 
	32528  select into, from view where using local variables fails,
		 scenario: create table t1 (a int, b char(4)) create view v1
		 as select * from t1 declare @one int, decl @two char(4)
		 select @one=1 select @two="two" select a,b into #work from
		 v1 where a=@one and b=
		 
	32929  In join queries with covered indexes, ranges on WHERE
		 clauses, and multiple indexes, optimizer sometimes chooses
		 incorrect index for query plan causing serious performance
		 degradation.
		 
	32973  Rule bound to a user defined datatype causes SQLServer to
		 seg-fault. RTRIM is being used.
		 
	33059  A client using 4.1 TDS with the security field set, will
		 cause the SQLServer to GPFault.
		 
	33188  Under some difficult to reproduce circumstances, the
		 checkpoint process may get killed by the SQLServer. The
		 associated error is 827.
		 
	33312  The increased data size returned in convert from float to
		 char causes arithmetic overflow.  This occurs due to the
		 fixes for bugs 23149 and 23151.
		 
	34189  When a client is talking to a gateway, talking to the sql
		 server, a 0 rowcount is returned regardless of the number
		 of rows affected.
		 




    Sybase Confidential		- 6 -		 11/09/92

	Bug No. Description
 	------- ------------------------------------------------------------
	34451  Random corruption can occur when mirrored disks are
		 configured for noserial writes (i.e. 605's, 2529's, 2525's)

	31346  varchar convert causes seg-fault on Netware server.

	31561  complex joins do not sufficiently yield CPU to sql
		 server scheduler.

	31821  Rapid in-band attentions cause a segfault.

	33736  TLI.NLM doesn't make reference to __CHK anymore.

	33842  'Disk init' now catches failures.
















    Sybase Confidential		- 6 -		 11/09/92
