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 > february 2004 > threads for thursday february 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

Best way to return a select number of rows?
Posted by Jeff at 2/12/2004 11:17:35 PM
I'm trying to create a "paged" experience in ASP.NET, my query returns about 1000 records, not a ton, but they're url's to images and I just want to display 9 on a page. I am using a DataList control, which doesn't support paging, it's my understanding that the DataGrid would actually request ...more >>


Why doesn't DbDataAdapter implement IDbDataAdapter?
Posted by Brian Takita
Hello, It seems like all of the classes that inherit DbDataAdapter also implement IDbDataAdapter. The problem is making a class that uses a generic DataAdapter requires both the DbDataAdapter and IDbDataAdapter. This means the class has to ask for either a DbDataAdapter and unbox to I...more >>

Date conversion failure
Posted by Chris at 2/12/2004 5:36:06 PM
I need to return null for a date field. Here is what I am doing, but it isnt working. What am I doing wrong? private DateTime ArriveTime() { return (DBNull.Value); }...more >>

can ADO.NEt actuualy solve this??
Posted by Calvin Lai at 2/12/2004 4:35:51 PM
Hi all, I have been searching around in MSDN for awhile and found no answer for this question. Say I have two data sources (Table) where they have the same schema but perhaps w/ different data contained. Can I actually Merge (I tried the one in Dataset and no idea how it can be used in th...more >>

Reading data in to a DataSet
Posted by Sheila Jones at 2/12/2004 3:58:12 PM
Following on from my previous post, I have another quick question (sorry!): I want to retrieve the records into a dataset. Is it possible to use a DataReader for this, or can it only be done with a DataAdapter? The reason for asking is that I only need to read the data into the dataset, not upd...more >>

DataSet Relations
Posted by Matt Frame at 2/12/2004 3:45:32 PM
I need to know if there is a way to say take ds1 and ds2 and put them into the same dataset where I can create a relationship and have a parent child relationship. I know this can be done by using the SqlDataAdapter and using the same dataset with the Fill method, but can it be done without doin...more >>

Parameters with OleDb
Posted by Sheila Jones at 2/12/2004 3:28:38 PM
Hello, A quick question! I have an OleDbCommand object that executes the following parameter query: SELECT *, Abs(X-?) AS DeltaX FROM VALUES ORDER BY Abs(X-?) Although there are two parameters, they both represent the same value. Do I need to add two parameters to the Parameters collectio...more >>

Keys in a .NET Framework Dataset
Posted by michael at 2/12/2004 3:06:11 PM
I need a bit of clarification about keys in a .NET Framework Dataset. Keys are defined at the Dataset Level, not just within a DataTable within the DataSet. I guess that this means that keys need to be unique within the Dataset. I assume that this means that I can't have 2 keys in the same Dataset ...more >>



using FOR XML
Posted by Buddy Ackerman at 2/12/2004 2:52:24 PM
I want to use FOR XML in my query so I'm going to use the ExecuteXmlReader method? The trouble I'm having now is streaming the results to a string for output as an XML document. Also, since the XML that comes from teh query is not a complete document it's a fragment without a root element. So,...more >>

DataSet.Merge(DataRow)
Posted by scott mesick at 2/12/2004 2:04:16 PM
would someone please post an example of how this works? "Merges an array of DataRow objects into the current DataSet" from MSDN but an example would be great! TIA. ...more >>

Timeout expired
Posted by Cesar at 2/12/2004 1:41:10 PM
The timeout expired period elapsed prior to completion of the operation or server is not responding. This is a message that I got so often in the webserver and in my test machine I try different groups I and I do not how to fix it. What happen is that the reports print ok several times and then the ...more >>

Unhandled Exception
Posted by rajupusapati NO[at]SPAM yahoo-dot-com.no-spam.invalid at 2/12/2004 12:23:40 PM
Hi, While connecting to a database and using ExecuteReader in my application, I am getting the following error: ************************************************** An Unhandled Exception of type 'System.InvalidOperation Exception' occurred in System.Data.dll ExecuteReader: Connection Property...more >>

RowFilter Problem
Posted by Cuck at 2/12/2004 10:53:26 AM
I have a situation where there are >' single quotes in my data. When I try to set the rowfilter to that, with the single quote in it I, I get an error, I've tried using escape codes and braces and that fails too... ..RowFilter = "Place = 'Joe's Place'" will fail any ideas? Thanks Chuck ...more >>

Error when calling Union query in Access
Posted by Bob at 2/12/2004 10:51:08 AM
I am trying to call a query that uses a union in a Access 200 database, and I get the following error "Unspecified error: E_FAIL(0x80004005) I am pretty sure that it is because it is calling a query that has union since all my other calls to queries in this database work okay. Here is my cod...more >>

Exporting data to an Excel file.
Posted by Greg Smith at 2/12/2004 9:03:21 AM
Hi, I would like to export the data in a table, or a subset of the data to an Excel file. Is this do-able? Any help is greatly appreciated. ...more >>

Datatables and relations?
Posted by Dianne Howard at 2/12/2004 8:50:02 AM
Hi all, Please can anyone help with the following: I want to display selected records retieved by a stored procedure in a datagrid (using a template column) - sorted by the category field, with relevant records displayed underneath. I can get as far as displaying all results, but the ...more >>

how can I get metadata in SQL Server 2k?
Posted by nghia ngo dinh at 2/12/2004 8:44:55 AM
Hi all, I'm working on the project, using asp.net with sql server 2k. I have to read all the information in database, included TableName, FieldName, Views, Store Procedures, User Definined functions, .... How can I get them? If someone know about it, please help me! Thanks. nghiangodinh. ----...more >>

Oracle.DataAccess.Client vs. System.Data.OracleClient -- use which?
Posted by kaboom NO[at]SPAM atari.net at 2/12/2004 7:44:18 AM
When I started working on an ADO.NET application that accessed Oracle 9 on the backend, I downloaded and installed ODP.NET from Oracle (http://otn.oracle.com/tech/windows/odpnet/index.html) which gave me the Oracle.DataAccess.Client namespace. Was impressed that the Oracle objects were in the ...more >>

Prevent ADO.NET/SQL Server from truncating parameters
Posted by Enzo Maini at 2/12/2004 7:16:07 AM
Is there a setting in either ADO.NET or SQL Server 2000 that will allow me to receive an error when a parameter is passed to a stored procedure and the parameter is truncated? For instance: CREATE PROC foo ( parm varchar(30)) AS .... If I make the call to the stored proc and the value passe...more >>

Redistribution files for .NET
Posted by Rudolfo at 2/12/2004 6:41:08 AM
Hi we have an C++ application (used Visual Studio .NET) where have converted the database interface to ADO.NET. I tried to install the app in a network with a Win2000 server and XP workstations. I downloaded dotnetfx and run it on the server and all the workstations. The application runs fine on t...more >>

DataGrid "MappingName" property
Posted by _e_ at 2/12/2004 6:37:35 AM
I'm trying to set custom widths and headings for DataGrid columns, but they keep displaying as defaults. I did configure the params via the TableStyles collection -> ColumnStyles collection. MappingName is set to the name of the DataTable. My understanding is that the names should match or e...more >>

ADO for Excel ?
Posted by Peter at 2/12/2004 3:46:34 AM
Hi, is it possible to access an xls Excel file via ADO.NET If possilble, what is the provider name Please advise Peter...more >>

stored procedures...
Posted by francois at 2/12/2004 1:43:04 AM
Hi, I am pretty new about stored procedures things. I always believe in the past they were evil for the sake of DB independance. A few years back I worked in a place where we all use ANSI sql to retrieve anything we need. Also sometimes I needed to instantiate heaps of objects to finally rejec...more >>


DevelopmentNow Blog