398 Commits
Author SHA1 Message Date
Chris Toshok 0093194f40 2006-02-17 Chris Toshok <[email protected]>
* SqlDataReader.cs: remove VisibleFieldCount property.


svn path=/trunk/mcs/; revision=56980
2006-02-17 16:45:25 +00:00
Senganal T 1ed319dc99 2006-02-10 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
		- GetSequentialColumn,BeginLoad, EndLoad,
		LoadData, SkipRow, SkipToColumnIndex
		New Methods to Support sequential loading of row data
	* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs :
		- Skip : Changed arugment type from int to long.
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlDataReaderTest.cs : 
		Added more tests to verify Sequential reading of row data.
	* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Corrected a failing testcase.
	* System.Data/System.Data.SqlClient/SqlDataReader.cs :
		- GetBytes : Read binary/blob/clob data sequentially when
		CommandBehavior is set to SequentialAcccess
		- GetChars : Read String/clob data sequentially when CommandBehavior
		is set to SequentialAccess
	* System.Data/System.Data.SqlClient/SqlCommand.cs :
		- ExecuteReader : set SequentialAccess property on TDS
		- CloseDataReader : Reset the command behavior


svn path=/trunk/mcs/; revision=56757
2006-02-10 14:50:55 +00:00
Senganal T 9c65e65c45 2006-01-27 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
		- Modified GetSqlMoney () , to set the precision and Scale correctly.
		- Modified ProcessColumnDetails , to set the schema values correctly.
	* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsDataColumn.cs : Added some default values for the column schema
	* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Corrected a failing testcase.
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : corrected a failing testcase
	* System.Data/System.Data.SqlTypes/SqlDateTime : Corrected the MaxValue for SqlDateTime
	* System.Data/System.Data.Common/DbDataAdapter.cs :
		- Modified schema population to follow MissingSchemaAction and MissingMappingAction
		- Add a column to the Primary Key only if its not a hidden key
		- Added some argument checks
		- Removed some redundant code
	* System.Data/System.Data.Common/DataAdapter :
		- Added argument checks
	* System.Data/System.Data.Common/ExceptionHelper :
		- Added InvalidEnumException , a helper function to print error msg
	* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs :
		- Modified  CreateUpdateCommand,CreateDeleteCommand , to not include
		column name in the query if its a expression col.
		Also, modified the queries to match the generated queries in ms.net
	* System.Data/System.Data.SqlClient/SqlCommand.cs :
		- Modifed Prepare, to check if Parameter is explicitly initialized
	* System.Data/System.Data.SqlClient/SqlParameter.cs :
		- Added CheckIfInitialized : Checks if datatype is explicitly set and
		non-zero size is set for variable datatypes.
	* System.Data/System.Data.SqlClient/SqlDataReader.cs :
		- Added code for GetSqlBinary ()
		- Fixed GetFieldCount ()
		- Added more checks and exceptions. 

Fixes most of the failing SqlClient Provider Tests .

svn path=/trunk/mcs/; revision=56167
2006-01-27 15:54:36 +00:00
Senganal T 421a275d09 2006-01-17 Senganal T <[email protected]>
* Test/ProviderTests/sqlserver.config : Modified the default login and password to 'monotester'

	* Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : Added testcase for bug #77225

	* System.Data.SqlClient/SqlCommandBuilder.cs
		- Modified CreateNewCommand () : Clean up any existing parameter list
		before reusing the command.Fixes #77225


svn path=/trunk/mcs/; revision=55668
2006-01-17 09:07:43 +00:00
Senganal T 1d1645c3cc 2005-11-24 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs 
	* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs : 
		- Modifications to set the desired packetsize info when connecting
		to database
	* System.Data/System.Data.SqlClient/SqlConnection.cs 
		- Modifications to get the correct Packet Size


svn path=/trunk/mcs/; revision=53443
2005-11-24 09:20:54 +00:00
Senganal T ec248e159f 2005-11-21 Senganal T <[email protected]>
* System/System.Net/Dns.cs : added GetHostEntry() method for 2.0 api conformance
	* System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs 
		- Marked CheckName method as virtual
	* System.Data/System.Data.ProviderBase/DbParameterBase.cs
		- Marked Offset property and CopyTo method as virtual
	* System.Data/System.Data.Common/DbMetaDataCollectionNames.cs (new file)
		- Added DbMetaDataCollectionNames Enumeration 
	* System.Data/System.Data.dll.sources: 
		- Added System.Data/ConflictOption.cs : Source file for ConflictOption
			enumeration.
	* System.Data/System.Data/ConflictOption.cs (new file)
		- Added ConflictOption Enumeration 
	* System.Data/System.Data/DataTableReader.cs
	* System.Data/System.Data/IDataRecord2.cs 
		- GetProviderSpecificFieldType : Corrected the method name
	* System.Data/System.Data.Common/DbDataAdapter.cs
	* System.Data/System.Data.Common/DbParameter.cs
	* System.Data/System.Data.Common/DbTransaction.cs
	* System.Data/System.Data.Common/DbTable.cs
	* System.Data/System.Data.Common/DbProviderFactories.cs
	* System.Data/System.Data.Common/DbException.cs
	* System.Data/System.Data.Common/DbProviderFactory.cs
	* System.Data/System.Data.Common/DbCommandBuilder.cs
	* System.Data/System.Data.Common/DbDataReader.cs
	* System.Data/System.Data.Common/DbParameterCollection.cs
	* System.Data/System.Data.SqlClient/SqlClientFactory.cs
	* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs
	* System.Data/System.Data.SqlClient/SqlParameterCollection.cs
	* System.Data/System.Data.SqlClient/SqlDataReader.cs
	* System.Data/System.Data.SqlClient/SqlDataAdapter.cs
	* System.Data/System.Data.SqlClient/SqlParameter.cs
	* System.Data/System.Data.SqlClient/SqlTransaction.cs
	* System.Data/System.Data.Odbc/OdbcTransaction.cs
	* System.Data/System.Data.Odbc/OdbcCommandBuilder.cs
	* System.Data/System.Data.Odbc/OdbcParameterCollection.cs
	* System.Data/System.Data.Odbc/OdbcDataReader.cs
	* System.Data/System.Data.Odbc/OdbcFactory.cs
	* System.Data/System.Data.Odbc/OdbcDataAdapter.cs
	* System.Data/System.Data.Odbc/OdbcParameter.cs

	Added stubs and other changes for ADO.NET 2.0 compatibility
	

svn path=/trunk/mcs/; revision=53301
2005-11-21 13:08:48 +00:00
Gonzalo Paniagua Javier 60f41af7be 2005-11-12 Gonzalo Paniagua Javier <[email protected]>
* SqlConnection.cs: don't throw NotImplementedException when using
	'PERSIST SECUTIRY INFO'. Just do nothing.


svn path=/trunk/mcs/; revision=52951
2005-11-12 19:00:09 +00:00
Senganal T a34e1cf63d 2005-10-27 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
		- Added a virtual method IsValidRowCount ()
		- Modified the way RecordsAffected is being counted

	* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs :
		- Overrode IsValidRowCount(), to check if the rowcount
		returned by sqlserver is valid.

	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs : 
		- Added Testcase for bug #75698

	* System.Data/System.Data.SqlClient/SqlCommand.cs 
	* System.Data/System.Data.SqlClient/SqlDataReader.cs :
		-Made changes so that the number of rows affected can be got directly 
		from Tds regardsless of the type of query.Fixes bug #75698

svn path=/trunk/mcs/; revision=52268
2005-10-27 10:46:11 +00:00
Senganal T 07cfd11085 2005-10-19 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameter.cs :
		- Added a class variable 'AttachDBFileName' to store the location
		of the DB file.

	* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs (Connect) :
		- Modified to append the bytes corresponding to AttachDBFileName 
		into the Tds Packets. 

	* System.Data/System.Data.SqlClient/SqlConnection.cs (SetProperties) :
		- Added support for AttachDBFileName


svn path=/trunk/mcs/; revision=51909
2005-10-19 13:12:58 +00:00
Senganal T d503f93aef 2005-10-19 Senganal T <[email protected]>
* SqlException.cs (Constructor)
		- Modified the constructor, so that the message parameter
		of base class is not the same as that of the Exception message.
		fixes bug #76468
		

svn path=/trunk/mcs/; revision=51908
2005-10-19 12:01:01 +00:00
Sureshkumar T cd5dec364e 2005-09-24 Sureshkumar T <[email protected]>
* SqlParameterCollection.cs (AddWithValue): added method. patch
	from [email protected] (Andy Waddell).


svn path=/trunk/mcs/; revision=50675
2005-09-24 15:44:19 +00:00
Senganal T 694cd01513 In Mono.Data.Tds:
* Mono.Data.Tds.Protocol/Tds.cs: 
		- Modified the way Server Version number is calculated
		- Added a new varaible to remember the original database
		connected to and to reset the Database property when the
		connection to database is closed.
	* Mono.Data.Tds.Protocol/Tds70.cs: 
		modified Reset() to Call the Reset() of base class which 
		in turn resets the database name. 

In System.Data/Test/ProviderTests/System.Data.SqlClient:

	* SqlConnectionTest.cs: removed some hardcoded database names
	in DatabasePropertyTest ().

In System.Data/System.Data.SqlClient:
	* SqlConnection.cs : 
		- Set the correct Default Values for Parameters.
		- Added Argument Checks (where missing) for the Properties and 
		throw the correct exception on error.
		- Modified SetDefaultParameters() to make sure that the parameters
		are all reset to default values everytime it is called.
		- Modified SetProperties() to take into account the order of the 
		keywords in the ConnectionString.

svn path=/trunk/mcs/; revision=50377
2005-09-21 14:27:58 +00:00
Senganal T 57f5f5502c * SqlTransaction.cs : Modifed the Rollback() method, so that
connection can be used for another transaction after the previous
	transaction is rolled back. fixes bug 75904


svn path=/trunk/mcs/; revision=50364
2005-09-21 10:39:52 +00:00
Umadevi S 69c849468f Removed SqlResultSet.cs file
svn path=/trunk/mcs/; revision=49316
2005-09-02 05:42:51 +00:00
Sureshkumar T 8164beede8 In System.Data/System.Data.SqlClient:
2005-08-26  Sureshkumar T  <[email protected]>

	* SqlConnection.cs (Open): enable sp_reset_connection.

In Mono.Data.Tds/Mono.Data.Tds.Protocol:
2005-08-26  Sureshkumar T  <[email protected]>

	* Tds70.cs (ExecProc): if no parameters, execute via RPC. parameter
	support has to be added.

	* Tds.cs (ExecRPC): added virtual method to execute via RPC.

	This fixes bug #68978 by enabling execution of sp_reset_connection.


svn path=/trunk/mcs/; revision=48881
2005-08-26 09:31:43 +00:00
Sureshkumar T 8e196718dc 2005-08-25 Sureshkumar T <[email protected]>
* SqlCommandBuilder.cs: BuildInformation (): continue on columns
	who don't have basetablename.


svn path=/trunk/mcs/; revision=48816
2005-08-25 06:42:35 +00:00
Daniel Morgan 5bc290120d 2005-08-12 Daniel Morgan <[email protected]>
* SqlCommandBuilder.cs: update command builder based on
	OdbcCommandBuilder latest changes to fix regression 
	of bug 75552

svn path=/trunk/mcs/; revision=48347
2005-08-12 23:24:11 +00:00
Sureshkumar T 43bef71bf3 In System.Data.Common:
2005-08-05  Sureshkumar T  <[email protected]>

	* DbDataAdapter.cs:
	- Update (): set parameter values only after getting the
	appropriate command from command builder. Close reader only if it
	is not closed before. Use parameter's SourceVersion. Whitespace
	corrections to comply with standard.

In System.Data.SqlClient:
2005-08-05  Sureshkumar T  <[email protected]>

	* SqlCommandBuilder.cs: Set SourceVersion property to the created
	parameters as it is used by the Adapter's Update method.

In System.Data.Odbc:
2005-08-05  Sureshkumar T  <[email protected]>

	* OdbcDataReader.cs: RecordsAffected: get value from command.
	GetSchemaTable (): set IsExpression based on BaseTableName. set
	AllowDBNull to false if the column is PK.

	* OdbcCommand.cs: correct UpdatedRowSource is returned. whitespace
	changes to conform to standard.

	* OdbcCommandBuilder.cs: Implemented.

	* OdbcParameter.cs: Direction is set to Input by default.


svn path=/trunk/mcs/; revision=48043
2005-08-05 14:59:55 +00:00
Sureshkumar T 88fba070be In System.Data.Common:
2005-07-22  Sureshkumar T  <[email protected]>

	* DataColumnMappingCollection.cs: updated attributes & attribute
	descriptions to match with masterinfos.

In System.Data.SqlClient:
2005-07-22  Sureshkumar T  <[email protected]>

	* SqlCommandBuilder.cs, SqlParameterCollection.cs,
	SqlConnection.cs, SqlParameter.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data:
	* DataViewSettingCollection.cs, DataTableCollection.cs,
	DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
	DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
	DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data.Odbc:
	* OdbcParameter.cs: updated attributes & attribute descriptions to
	match with masterinfos.


svn path=/trunk/mcs/; revision=47554
2005-07-22 10:57:02 +00:00
Daniel Morgan 6b8af86de0 2005-07-16 Daniel Morgan <[email protected]>
* SqlCommandBuilder.cs: CreateUpdateCommand should get the current value, not
	the orginal value when setting one of the SET variables

svn path=/trunk/mcs/; revision=47357
2005-07-16 11:37:36 +00:00
Sureshkumar T 425bc04d75 In System.Data.Common:
2005-07-15  Sureshkumar T  <[email protected]>

	* DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
	meaningful error message if mapping is missing.

	* DbDataAdapter.cs: Update: meaningful message if table is missing.

In System.Data.SqlClient:
2005-07-15  Sureshkumar T  <[email protected]>

	* SqlCommandBuilder.cs:
	- set_DataAdapter: unsubscribe event if DataAdapter is reset.
	- CreateInsertCommand, CreateUpdateCommand, CreateDeleteCommand:
	if column mapping is missing, use the source column name. use
	proper version to get the data. 
	- RowUpdatingHandler: set status to continue to actually process
	the query.


svn path=/trunk/mcs/; revision=47340
2005-07-15 13:15:36 +00:00
Ben Maurer b69683c917 2005-07-04 Ben Maurer <[email protected]>
* SqlError.cs: Patch from [email protected] to fix serialization.


svn path=/trunk/mcs/; revision=46916
2005-07-04 19:40:43 +00:00
Sureshkumar T be58549d6e 2005-06-29 Sureshkumar T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsInternalException.cs: Add ctor for InnerException.
	* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs: Throw TdsInternalException rather than
	  SocketException.
	* System.Data/System.Data.SqlClient/SqlConnection.cs: Open (): catch TdsInternalException and throw
	  SqlException.
	* System.Data/System.Data.SqlClient/SqlException.cs: code re-organised to pass message as well with
	  the exception.


svn path=/trunk/mcs/; revision=46722
2005-06-29 13:31:18 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Sureshkumar T 3c8687039f 2005-06-23 Sureshkumar T <[email protected]>
* System.Data.SqlClient/SqlConnectionStringBuilder.cs: simplified multiple keyword
          mappings and allowed-key checking. fixed Item, Remove, ContainsKey, ShoudSerialize,
          TryGetValue implementations.
        * Test/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs: Added few more tests.


svn path=/trunk/mcs/; revision=46422
2005-06-23 13:13:04 +00:00
Sureshkumar T 6809aa66f4 2005-06-21 Sureshkumar T <[email protected]>
* System.Data.Common/DbConnectionStringBuilder.cs: Implemented method for parsing
	  connection string through "ConnectionString" property.
	* System.Data.Common/DbConnectionStringBuilderHelper.cs: Helper class to provide
	  conversion between string=>.net type mapping for connection string
	  builders. The idea is to use between other providers (odbc) as well.
	* System.Data.SqlClient/SqlConnectionStringBuilder.cs: Connection String Builder class
	  for SqlClient Data Provider.
	* Test/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs: Added some preliminary tests.
	* System.Data.dll.sources: Added SqlConnectionStringBuilder.cs and DbConnectionStringBuilderHelper.cs
	* System.Data_test.dll.sources: Added SqlConnectionStringBuilderTest.cs


svn path=/trunk/mcs/; revision=46289
2005-06-21 09:56:41 +00:00
Gonzalo Paniagua Javier 204dad79dd 2005-06-01 Gonzalo Paniagua Javier <[email protected]>
* SqlParameter.cs: moved the 'using S.D.SqlTypes' out of NET_2_0. Fixes
	the build.


svn path=/trunk/mcs/; revision=45291
2005-06-01 09:06:08 +00:00
Sureshkumar T b7661e984e 2005-06-01 Sureshkumar T <[email protected]>
* SqlParameter.cs: Parameter's value can be SqlTypes. Convert to
	framework type to pass to TDS layer. Fixes bug #75044.


svn path=/trunk/mcs/; revision=45289
2005-06-01 08:29:39 +00:00
Ben Maurer 2a81dac63f locking fixes
svn path=/trunk/mcs/; revision=45085
2005-05-26 23:06:52 +00:00
Umadevi S 633ecff54e fixed some 2.0 and 1.0 specific fields/attributes for various classes.
* Added SqlClientMetaDataCollectionNames.cs, Implemented some 2.0
        properties for SqlParameterCollection for the bulkcopy feature.
                                                                                                    

svn path=/trunk/mcs/; revision=44964
2005-05-25 03:33:30 +00:00
Kornél Pál c6e989717a Fixed Bug #53169
svn path=/trunk/mcs/; revision=44841
2005-05-20 18:06:02 +00:00
Umadevi S aa454d616c Fixed Bug 74948 - SqlParameter also takes DBNull Value.
Correct some attributes stuff of 1.1 and 2.0 for SqlParameter.cs

svn path=/trunk/mcs/; revision=44791
2005-05-20 05:37:42 +00:00
Umadevi S 65a6069971 Continuing on implementation for bulkcopy and notification
Added files SqlNotificationEventArgs.cs, OnChangeEventHandler.cs
                Modified SqlRowUpdatingEventArgs.cs

svn path=/trunk/mcs/; revision=44785
2005-05-20 02:41:41 +00:00
Umadevi S bf84b105c1 * For implementation of bulkcopy and notifications added files
SqlBulkCopyOptions.cs,SqlBulkCopyColumnMapping.cs,SqlNotificationAuthType.cs
                SqlNotificationTransports.cs,SqlRowsCopiedEventArgs.cs, SqlRowsCopiedEventHandler.cs                                                                                                    

svn path=/trunk/mcs/; revision=44740
2005-05-19 08:40:20 +00:00
Umadevi S a9b4965cad Corrected types,enum values of SqlNotificationType,SqlNotificationSource,
SqlNotificationInfo and added new method in SqlRowUpdatingEventArgs.cs
        (For implementation of bulkcopy/notifications)

svn path=/trunk/mcs/; revision=44738
2005-05-19 08:18:39 +00:00
Sureshkumar T 8aa5f5eafd 2005-04-19 Sureshkumar T <[email protected]>
* SqlDataReader.cs: NextResult (): Re-create schema table for each
	result set. don't re-use, as it may be referenced from somewhere.


svn path=/trunk/mcs/; revision=43240
2005-04-19 08:54:04 +00:00
Sureshkumar T f943410d72 In System.Data/System.Data.SqlClient: Implemented asynchronous command execution.
In Mono.Data.Tds: Implemented asynchronous command execution at tds driver level.

Implemented by Sureshkumar T  <[email protected]> &  Ankit Jain  <[email protected]>


svn path=/trunk/mcs/; revision=42641
2005-04-07 14:25:50 +00:00
Sureshkumar T a20bdd56e5 2005-03-28 Sureshkumar T <[email protected]>
* SqlCommand.cs: Execute: Add a semicolon at the end of
	CommandText. Multiple semicolon's are not being complained.

	fixes bug #74134.


svn path=/trunk/mcs/; revision=42305
2005-03-28 10:45:48 +00:00
Gonzalo Paniagua Javier ea1707ac6f 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
* SqlConnection.cs: added a finalizer for correct implementation of the
	IDisposable pattern.


svn path=/trunk/mcs/; revision=41722
2005-03-11 21:12:45 +00:00
Gonzalo Paniagua Javier ec84c7c397 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
* SqlException.cs: make it serialization-compatible with MS. Patch by
	Aleksandar Dezelin. Closes bug #73596.


svn path=/trunk/mcs/; revision=41721
2005-03-11 21:11:27 +00:00
Sureshkumar T c04cfcb57c In System.Data.ProviderBase:
2005-03-08  Sureshkumar T  <[email protected]>

	* DbParameterBase.cs: Implemented most of get set methods.
	* DbConnectionBase.cs: Commented ConnectionOptions creation,
	because it is not yet implemented.
	* DbCommandBase.cs: Implemented ExecuteScalar method.
	* DbParameterCollectionBase.cs: Implemented Add method.
	* DbDataReaderBase.cs: removed internal constructor DbDataReader
	(DbCommand).

In System.Data.SqlClient:
2005-03-08  Sureshkumar T  <[email protected]>

	* SqlDataReader.cs: Call base constructor with CommandBehavior
	parameter instead of passing DbCommand object. The internal base
	class with DbCommand Parameter is removed.


svn path=/trunk/mcs/; revision=41552
2005-03-08 08:38:20 +00:00
Sureshkumar T 6bcb9cca06 err.. forgot to remove Console.WriteLine debug message.
svn path=/trunk/mcs/; revision=41521
2005-03-07 13:43:30 +00:00
Sureshkumar T aa267ef781 2005-03-07 Sureshkumar T <[email protected]>
* SqlCommand.cs : Set CommandBehavior on
	ExecuteReader,ExecuteScalar,ExecuteNonQuery. This is used in
	CloseDataReader.

	This fixes bug #73252.


svn path=/trunk/mcs/; revision=41519
2005-03-07 13:30:52 +00:00
Sureshkumar T 97133615a0 In System.Data.ProviderBase:
2005-03-02  Sureshkumar T  <[email protected]>

	* DbConnectionBase.cs: CreateDbCommand: assign connection to the
	created command.

In .:
2005-03-02  Sureshkumar T  <[email protected]>

	* System.Data.dll.sources: Added
	System.Data.SqlClient/SqlConnectionFactory.cs.

In System.Data.SqlClient:
2005-03-03  Sureshkumar T  <[email protected]>

	* SqlClientFactory.cs: While creating command, create using
	DbConnectionFactory as DbConnectionBase.CreateDbCommand needs to
	have a connection factory.

	* SqlConnection.cs: Added an internal constructor which takes
	DbConnectionFactory.

	* SqlConnectionFactory.cs: Added. Concrete class for abstract
	factory DbConnectionFactory.


svn path=/trunk/mcs/; revision=41382
2005-03-03 04:30:14 +00:00
Sureshkumar T 01bb726ef7 2005-02-22 Sureshkumar T <[email protected]>
* SqlDataReader.cs: GetBytes: return the length of the data if
        output buffer is null. if not, copy the values to buffer and
        return the bytes actually read.


svn path=/trunk/mcs/; revision=41026
2005-02-22 09:37:19 +00:00
Sureshkumar T 3361135cce 2005-02-02 Sureshkumar T <[email protected]>
* SqlConnection.cs: 
	- Database: return db name from database if connection open,
	otherwise take from connection string.
	- Set default values for parameters in the constructor itself.
	- Dangling else problem with Close method.
	- reset values of parms (TdsConnectionParameters) rather setting
	to null.
	- set disposed to false in Open method
	- finally call base.Dispose in Dispose (bool)

	Fixes nunit regressions SqlConnectionTest:DefaultConnectionValues
	and SqlConnectionTest:DatabaseSynonyms.	


svn path=/trunk/mcs/; revision=39974
2005-02-02 10:42:30 +00:00
Sureshkumar T 0c88f4428c 2005-01-27 Sureshkumar T <[email protected]>
* SqlCommand.cs (DeriveParameters): Change parameter name to
	"procedure_name".
	* SqlParameter.cs (SqlParameter (object [])) : call default
	constructor to create Tds.Metaparameter.

	fixes bug #63122.


svn path=/trunk/mcs/; revision=39636
2005-01-27 11:18:28 +00:00
Sureshkumar T 369684c152 2005-01-03 Sureshkumar T <[email protected]>
* SqlCommand.cs: Fixed bug #68973. Reset Tds.RecordsAffected to 0
	for each execute statement.
	

svn path=/trunk/mcs/; revision=38270
2005-01-03 12:31:29 +00:00
Sureshkumar T ebcc19d3c5 2004-11-25 Sureshkumar T <[email protected]>
These changes are for 2.0 profile only. These changes implement
	the generic data base access technique using Provider Factory
	Implementation. These classes need to be dervided from abstract
	base classes so that the corresponding factory classes are
	created when calling CreateCommand, CreateParameter, etc.
	
	* SqlClientFactory.cs: Provider Factory class  Implementaion for SqlServer
	* SqlParameter.cs: Change base classes and override methods.
	* SqlParameterCollection.cs:  Change base classes and override methods.
	* SqlTransaction.cs:  Change base classes and override methods.
	* SqlDataSourceEnumerator.cs: DataSource Enumerator stubs.
	* SqlDataReader.cs: Change base classes and override methods.
	* SqlConnection.cs: Change base classes and override methods.
	* SqlCommandBuilder.cs: Change base classes and override methods.
	* SqlCommand.cs: Change base classes and override necessary methods.


svn path=/trunk/mcs/; revision=36527
2004-11-25 09:54:04 +00:00
Umadevi S c7949f2d08 2004-10-14 Umadevi S <[email protected]>
* SqlCommand.cs - Implemented the clone method correctly.
         (fixed bug 67301)

svn path=/trunk/mcs/; revision=34964
2004-10-14 04:39:04 +00:00