Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > dotnet ado.net > september 2003 > threads for friday september 12

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Maintaining format of multi-line textbox
Posted by Michael Hetrick at 9/12/2003 10:54:14 PM
On submitting ASP.NET form data from a multi-line textbox, how can the user formatting (i.e. line breaks, tabs, etc.) be maintained when the data is displayed retrieved from the database? Thanks in advance. Michael ...more >>


data bindings
Posted by afsheen at 9/12/2003 10:03:06 PM
Hi, Iam trying to display data on windows form with data bindings attached to those control. When i try to update the use modified controls it gets updated in the database except for one text box contorl which is gettign its value from another textbox control multiplied by some number .... how c...more >>

Data Access Layer
Posted by Jeff Brown at 9/12/2003 6:49:20 PM
Anyone know where i can find a comprehensive tutorial on creating a data access layer? After reading alot and suggestions from others i think i need to implement one into my MDI project to make it easier to acces data from several differnt forms. Heading to books a million now to get yet another ...more >>

One table twice in a dataset
Posted by John at 9/12/2003 5:30:23 PM
Hi How can I have the same table, twice in my dataset with separate underlying select/update/insert/delete sql commands? Thanks Regards ...more >>

Update method not working
Posted by Grober at 9/12/2003 5:14:31 PM
Hi, The code below is working all the way. The problem is that the Update method of the adapter doesn't update the mdb database. What am I doing wrong, anyone? string path = Path.GetDirectoryName(Application.ExecutablePath); string sConn = @"provider=Microsoft.Jet.OLEDB.4.0;data so...more >>

Copy rows from one DataSet to another
Posted by Dennis Davitt at 9/12/2003 4:43:27 PM
When trying to "copy" rows from one dataSet to another I get an exception that say: "This Row already belongs to another table". Any ways around this? I am trying to take a DS from a WebService and initially the RowState is unchanged. I went through the rows to fool the row state by iteratin...more >>

Updating SP Parameter values
Posted by Chuck D at 9/12/2003 4:40:08 PM
Folks, Can I update the value of a paramater used by a command AFTER adding the paramater to the command, and then update it to a new value? I want to loop through a set of values, and call a SP several times varying one of the paramaters each time. I had hoped to do something like this bit...more >>

Database type issue when inserting
Posted by Jim P. at 9/12/2003 4:01:10 PM
I've used mySQL extensively but I'm new to SQL 2k (MSDE) and .NET. When inserting data I'm having data type issue but they are a little weird. I have 2 tables, Items and Subjects. Items Type Length Allow Nulls ---------------------------------------------- ID ...more >>



@@rowcount changed before Stored Proc. can check it
Posted by Peter at 9/12/2003 3:15:36 PM
We have a simple LoginUser stored proc that returns the user name and other info to the calling code. BEGIN Tran SELECT ... FROM... WHERE... IF @@error <> 0 ... IF @@rowcount <> 1 begin RAISERROR.. RETURN -1 end COMMIT TRAN RETURN 1 The interesting th...more >>

Multiple occurrences of a table in dataset
Posted by John at 9/12/2003 3:09:08 PM
Hi I have a table with all my contacts clients & suppliers. A 'company type' field specifies if a record is client or supplier. Can I have the table twice in my dataset once with company type clients and other with company type suppliers? If not, do I need two separate datasets for each occ...more >>

SQl Query against a Dataset ???
Posted by Rhyno Linde at 9/12/2003 2:43:26 PM
Is it possible to run a query against a Dataset or create a Dataview that only displays selected columns from the Dataset. ...more >>

AutoIncrement Key
Posted by Srikanth at 9/12/2003 1:46:09 PM
Hi, I have a DataSet with some rows in the DataTables. Iam clearing everything in the DataSet (DataTables) and trying to add new rows. A DataTable has a foreignKey column from the parent table and a unique key column which takes AutoIncrement values from UI. So, for every new parent key...more >>

Using OleDb's GetOleDbSchemaTable to read meta data
Posted by dearpolycarp NO[at]SPAM hotmail.com at 9/12/2003 12:16:19 PM
We're using the .NET OleDb classes to read meta data out of SQL Server, SQL has all of the proper SQL 92 Information Schema Views however the API in .NET doesn't return View information, it does for Tables and Stored procs? ====================================== ============== OleDbConnection...more >>

Strongly typed DataSet and custom objects
Posted by John Bonds at 9/12/2003 11:27:53 AM
I'm trying to decide if I want to use a strongly typed DataSet or an Untyped DataSet with its definition in my DataBase module. The impression I'm getting about strongly typed DataSets is that they have a lot of design-time and RAD (Rapid App. Dev.) benefits. Basically I want to build objects ...more >>

GetDate in Dataset
Posted by Stefano Meier at 9/12/2003 10:53:00 AM
I have a dataset with a DateTime field, each time i make an update i have to update also that field with the actual date time, but with the DB date and time, somthing like: UPDATE mytable SET datechanged=GETDATE() WHERE id=.... It's possible by setting something in the dataset or i have to ...more >>

dataview.rowfilter question
Posted by Tina at 9/12/2003 10:39:20 AM
all of the examples in the docs and books always show just one simple parameter when filtering datarows such as: .rowfilter = "city = Berlin". Is it possible to filter by more than one simple thing such as: "(city = Berlin or city = Paris) and UnpaidBalance > 0)" ? Thanks, T ...more >>

Building C# from command line and referencing Oracle ODP.Net
Posted by mhousema NO[at]SPAM ix.netcom.com at 9/12/2003 10:33:35 AM
Can anyone tell me what the /reference: should be and what the using directive in the C# should be to build C# code integrated with ODP.Net? I'm having no joy with the following: $ csc -debug /reference:Oracle.DataAccess.dll foo.cs There is a Global Assembly Name of Oracle.DataAccess in the...more >>

Changing the DataRowState Property
Posted by Dennis Davitt at 9/12/2003 10:13:23 AM
I am trying to force update a DataSet which I retrieve via a Web Service. All the rows in the DataSetRowState are "unchanged". Since this property is read-only, I cannot use the DataAdapter.Update() method. How can I override the DataRowState Property since it is Read-Only??? ...more >>

Dataset missing from control properties
Posted by John at 9/12/2003 9:41:26 AM
Hi I have created a dataset by dragging tables over the dataset surface. The problem is, this ds does not appear in controls properties therefore I can not directly bind controls to this dataset. What do I need to do, to make this dataset available to controls such as datagrid for binding thr...more >>

row.delete does not work?
Posted by Dean at 9/12/2003 9:13:21 AM
The following loop is giving me a DeletedRowInaccessibleException on the very first delete. I am checking RowState and it is Modified. The documentation for this exception says that I am trying to access a row that has been deleted but it has not and I am ensuring that by checking the RowState...more >>

ReadXML retrieving ItemArray
Posted by Art Krumsee at 9/12/2003 9:09:54 AM
I have an xml document I'm trying to read in to an application using readxml(). ReadXML appears to have no problem reading the file. If I use WriteXML() to write a new document, it contains all the data from the original document. The problem comes when I try to read data out of the resulting...more >>

SqlCommand CommandType property
Posted by lakshmi at 9/12/2003 8:39:18 AM
I'm trying to set the CommandType property of a SqlCommand to Stored procedure. My code looks like: using System.Data.SqlClient; SqlCommand cmd = new SqlCommand("MyStoredProcedureName"); cmd.Connection = myConn; cmd.CommandType = CommandType.StoredProcedure; I'm getting the following erro...more >>

open cn for page or each stmt - ASP.NET?
Posted by dan at 9/12/2003 7:31:52 AM
I'm trying to figure out the best practice for opening db connections on an asp.net page. I have seen this done by opening one connection for the page and using it for all commands, and I have seen the connection open and closed each time you run a command. What is the best practice here...more >>

Need to trick RowState
Posted by wesgraves NO[at]SPAM hotmail.com at 9/12/2003 7:21:35 AM
Hi Everyone, We have a problem that requires us to work around the RowState property of a DataRow. We have a DataTable in memory that we have modified certain rows and columns. Those rows were initially retreived from the database and as such now have their RowState set to Modified. We ha...more >>

Problems with parameter using ODBC prov. for ADO.NET
Posted by David Conorozzo at 9/12/2003 7:03:25 AM
I basically have an insert query that I am trying through the ODBC provider for ADO.NET. I use a DSN to connect and it works. Queries also work if I don't use parameters. I create the command and set the text to something like (it depends a little on the database): INSET INTO table1 (col1,...more >>

DataTable Constraints
Posted by M Hyde at 9/12/2003 5:00:26 AM
What is the difference between adding a primary key/unique constraint to a DataTable object using the Constraint.Add method vs. using the PrimaryKey property of the DataTable or Unique property of the DataColumn? Is it redundant to use both? If so which method is preferable?...more >>

Oracle distributed transactions in vb6/vb.net mixed environment
Posted by Klas+Google NO[at]SPAM Mellbourn.net at 9/12/2003 4:11:55 AM
We have a large VB6 system that uses an Oracle 8.1.7 database (we are about to migrate to Oracle 9.2). The system is built using COM+ components that interact using distributed transactions. We are considering migrating to VB.NET gradually by replacing the VB6 COM+ components with VB.NET COM+...more >>

collapse whitespace in DataSet.WriteXml() output
Posted by gerry at 9/12/2003 3:23:32 AM
There must be a simple way to generate xml from a dataset and have whitespace collapsed within string elements. I would have thought that this should be the default behaviour but apparently it isn't. If I generate the xml as follows : DataSet ds; ... load data ... ds.WriteXml(...more >>

my life as a tempdb table.... How can I get around this problem?
Posted by Russell Smallwood at 9/12/2003 1:10:03 AM
All, I am writing an ASP.Net wrapper (C#) for a stored procedure library loosely disguised as an API that uses #mytemptable style tables in the tempdb to store stuff for a while, until another procedure is called that uses, then disposes of the #mytemptable table. This all works great in...more >>

Dataset Declaration again ... CJ listening? Anyone else
Posted by Jeff Brown at 9/12/2003 12:14:38 AM
OK i have came to the conclusion that since this app will be run on = multiple computers that loading a complete database and then updating on = exit is a moot point. I have tried several ideas submitted, but i am = unable to get one of them to work completely. Here is the code i had = before i ...more >>


DevelopmentNow Blog