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 > july 2007 > threads for july 8 - 14, 2007

Filter by week: 1 2 3 4 5

Strongly Typed DataSets and "Refresh the data table" Option
Posted by Max2006 at 7/14/2007 10:57:09 PM
Hi, Using Visual Studio 2005 and SQL Server 2005: I am trying to understand the stored procedures that Strongly Typed Datasets wizard generates for me. When we create a new strongly typed Datasets, and choose the following path: Choose connection-> Create new stored procedures -> Enter...more >>


How save DataSet back to database?
Posted by Ronald S. Cook at 7/14/2007 3:24:14 PM
In my client Windows application, I am receiving a DataSet containing one DataTable. This comes to my client via the business tier on a different physical machine (we're using WCF if that matters). After I make changes to the data in the underlying DataTable, I send the DataSet back to the...more >>

probleum in running asp
Posted by veeru at 7/13/2007 10:34:01 PM
i am facing the probleum in running asp onmy machine. i am using window xp 2000 and also i have installed iis on my machine but the asp does't work plese guide me how can i remove this probleum...more >>

EnterpriseLibrary. Return Recordset from oracle stored procedure
Posted by Oleg at 7/13/2007 1:12:04 PM
Hi, I'm trying to use an EnterpriseLibrary 3.1 and return recordset from oracle database using stored procedure. As you may know, oracle stored procedures have out parameter of type cursor in order to return a dataset. It seems like I need to add a paramenter of type cursor to execute this ...more >>

Copying Rows from a DataSet
Posted by Brad at 7/12/2007 5:29:55 PM
Is there an easy way to copy rows from one data set to another other than field by field copy? Thanks Brad ...more >>

How to make Raiserror report to ado.net
Posted by Tom Pester at 7/12/2007 6:10:44 AM
Hi group, I have put some validation logic in a trigger and when it doesn't validate I do a rollback + raiserror. So for so good but how do I detect this in ADO.NET ? Is there a way to use raiserror or some othe mechanism to communicate to ado.net/asp.net that someting went wrong? Current...more >>

SQL JOIN between DataTables in a DataSet
Posted by Marc Woolfson at 7/12/2007 1:30:00 AM
Hello, Am I correct in thinking that it is currently not possible to perform an SQL JOIN across multiple DataTables in a DataSet in .NET? I have a typed DataSet with three relational tables which need to be placed into one flat table, e.g.: Table A: PK, Table A Col 1, Table A Col 2......more >>

How write SQL's "ISNULL(ThemeRank, 255)" instead in ADO.NET when sorting DataView?
Posted by Ronald S. Cook at 7/11/2007 7:58:03 PM
In SQL, I can write: SELECT * FROM Product ORDER BY ISNULL(ProductRank,255) To return: Alpha 1 Delta 2 Golf 3 Foxtrot 4 Charlie 5 Echo NULL Bravo NULL But how can I do this in ADO.NET in a DataView? Right now I just have: view.Sort = "Th...more >>



sqltransaction timeout
Posted by samuelberthelot NO[at]SPAM googlemail.com at 7/11/2007 4:10:48 PM
Hello, I have a asp.net application in which users can create content and then save everything to a SQLServer2000 database. When they hit the save button on the form here is what I do : Dim conn As SqlClient.SqlConnection = New SqlClient.SqlConnection( myconnectionstring ) Dim tx As SqlClien...more >>

tableadapter update - existing primary key
Posted by jbaldi at 7/11/2007 2:30:33 PM
I have two seperate .net programs that are working with the same table in a SQL database. Both programs are using TableAdapters to read/ write to the table. Both programs can create a record in their TableAdapters using the same primary key. If this happens and one program updates the databas...more >>

How sort DataView so blanks are at bottom, not top?
Posted by Ronald S. Cook at 7/11/2007 2:04:51 PM
I have a DataTable with column "Sequence". Values are like: Sequence -------- 5 1 3 (blank/null) 7 6 (blank/null) 4 When I create a DataView and do a sort, I get Sequence -------- (blank/null) (blank/null) 1 2 3 4 5 6 7 But I need the blank/nulls to be at the end li...more >>

Access to tables in dataset
Posted by DesCF at 7/11/2007 1:17:27 PM
Is it possible to treat the tables in the dataset the same as any other tables, i.e. run queries on them, etc. ? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/...more >>

Question about automatic connection string settings using VS2005
Posted by B. Chernick at 7/11/2007 10:02:01 AM
I feel like I'm forgetting something. Assume Visual Studio 2005 (VB) and assume you have created a data source and dataset by the usual means. Assume multiple tables. Now you have a designer.vb module associated with the dataset containing an InitConnection sub for each table, as well ...more >>

DataTable Performance
Posted by Brian Gideon at 7/11/2007 7:55:20 AM
I'm interested in knowing the runtime complexity of the DataTable.Find method in 2.0 when attempting to find a row by the primary key. The MSDN documentation is vague...probably intentionally. I used .NET Reflector to examine the DataTable and what I found is that the primary key index is impl...more >>

value NOTHING can appear in the Object() array filled by the OleDBDataReader ?
Posted by pamela fluente at 7/11/2007 2:06:48 AM
I am using an OledbDataReader to read each record into an array of objects, as usual. My question is: is it ever possible that one of the values contained in the array be Nothing. I have never seen it happen and I would believe it is impossible. Can anyone confirm that ...more >>

Iteration SLOW!!!
Posted by Tom Holmes Jr. at 7/11/2007 12:50:36 AM
WTF did Microsoft do when it came to ADO.NET???????????????????????? Using an OLEDB connection and Dataset it took hours to iterate through 5000+ records in one simple table. That is horrible. If I go into Access 2003 and do the same thing with old ADO and create a standard ADO resultset ...more >>

Problem adding table to DataSet
Posted by Jeff at 7/11/2007 12:00:00 AM
..NET 2.0 I'm working on .NET 2.0 project which contains a DataSet. On this DataSet I can right click on the tables and select "preview data" and I can a preview of table data - which to me shows that VS2005 somehow is connected to the project database. The problem comes when I want to a...more >>

Writing to Excel File via OleDB
Posted by Roger Frei at 7/10/2007 4:57:54 PM
Hello. I'm trying to write to an Excel file via an OleDbConnection. It always fails with the error "Operation must use an updateable query". The Excel file is not read-only and the process has enough rights to write data to the filesystem. Additionally, reading from the file is possible but ...more >>

How to solve these data access issues in VS2005?
Posted by Peter at 7/10/2007 4:00:00 PM
1. Connection String needs to be customizable by users during runtime. 2. Source of Connection String can be changed programmatically. 3. Tables can be modified by users. 4. Use table adapters or use data adapters 5. How to update all data tables for all datasets with changes in a Wi...more >>

deploying from vs.net 2005 vc++.net on vista to sql2005 on w2k
Posted by Boyd at 7/10/2007 12:48:03 PM
Hi, I am using VS2005, using c++ to build a CLR DLL as an extended stored procedure for an SQL2005 instance. My VS2005 is running on Vista. I built a dll using clr and am tring to use the "deploy" feature from the list of options: BUILD, REBUILD, DEPLOY, CLEAN, ... After some time I ...more >>

Why double escape for apostrophe?
Posted by Earl at 7/10/2007 12:33:28 PM
Anyone know why the RowFilter has to be double-escaped? Anticipating names with apostrophes, a single escape does not provide the proper name to filter on. For example, this would cause an exception: Dim strname As String strname = txtContact.Text strname.Replace("'", "''") dv.RowFilter =...more >>

Update fails with Primary Key Violation
Posted by Manan at 7/10/2007 11:17:32 AM
Hi, i'm copying a table from one SQL server to another. here i'm just selecting all rows from source table and selecting 0 row from dest table just to create the commands for insert/update/delete etc...now problem is when i do dataadapter.update it will try to insert all new rows in dest tabl...more >>

How may I use the IN operator when using a RowFilter on a DataView?
Posted by mark4asp at 7/10/2007 10:02:03 AM
How may I use the IN operator when using a RowFilter on a DataView? - Such that I can query whether a value is in a column from the Table associated with the DataView. Suppose I have the following table myTable = new DataTable(); myTable.Columns.Add("ActivityID", typ...more >>

Asyc reader in .NET 2
Posted by Smokey Grindle at 7/10/2007 8:49:37 AM
Is it possible to process data as it is pulled back in asyc mode? I want to process records as they come back from the SQL Server basically and convert them to local objects... which right now takes a lot of time doing it like this Load data table from SQL Reader Loop through each data row...more >>

UpdateCommand
Posted by Gudni G. Sigurdsson at 7/10/2007 3:38:06 AM
Hi. In a WinForms App, I have a DataGridView. My SELECT command uses data from Table A in a SQL Server database plus 4 calculated columns using data from tables TableB and TableC. This works OK. The calculated values are not stored in TableA, of course. I seem to have problems with updati...more >>

Doubleclick with dragdrop
Posted by zdrakec at 7/9/2007 8:03:46 PM
Hello all: I hope I'm simply missing something obvious... I have a windows form, on which is a list box and a text box. I have the MouseDown event of the ListBox coded to initiate a drag-and-drop operation: Me.DoDragDrop(ListBox.SelectedItem, DragDropEffects.Copy) and the text box DragDr...more >>

What are Table Adapter and Data Adapter?
Posted by Peter at 7/9/2007 4:04:00 PM
Does Table Adapter contain Data Adapter or the other way around? It seems that Table Adapter exists in VS2005 but not VS2003. ...more >>

TdsParser failures
Posted by hkd at 7/9/2007 1:11:14 PM
I have written a multi threaded Windows service in c#, .net 2.0. The application sends data to a database using stored procedures. The application works fine on a LAN, but I cannot stabilize it over our WAN links. The WAN connectivity is fairly high speed (DS3), but has a high latency (average 2...more >>

Copy Entity Based on DataTable?
Posted by lucius at 7/9/2007 11:51:50 AM
I have some complex objects that inherit from DataTable. I want to copy the actual data along with the custom properties and etc, so I don't think I can use the .Copy() method in DataTable. Do I need to override it in some way to make sure the object is truly copies to a new instance when I need...more >>

Return data to listbox
Posted by backwards15 NO[at]SPAM gmail.com at 7/9/2007 11:47:20 AM
Simple question for you all. I'm new to ADO.net and i'm trying to run a querry on a SQL 2000 database and return all the rows found to a listbox. Below the code i have returns one item to the listbox and if i run my querry it otherwise should add another 3 items. Is there anyway i can make ...more >>


DevelopmentNow Blog