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

Filter by week: 1 2 3 4 5

How to create own DataColumn Aggregate function
Posted by whiteboy at 3/14/2007 10:34:57 PM
I want to create my own Aggregate function to be used in the DataColumn.Expression property. So for example, DataColumn col = new DataColumn("foo", typeof(String)); col.Expression = "my_custom(Child.Test)"; Anyone done this before? Any suggestions on where to start? thanks ...more >>

Is it possible to use flat files as datasource
Posted by Tony Girgenti at 3/14/2007 7:52:37 PM
Hello. Developing a VS2005, VB, .NET 2.0, Windows form program. Is it possible to use flat files with fixed length fields as a datasoure. I would use one for input and another to update. Any help would be gratefully appreciated. Thanks, Tony ...more >>

Get PK back on an insert into Oracle
Posted by David Thielen at 3/13/2007 7:27:26 PM
I am trying to get returned the autogenerated primary key value from Oracle when I insert a row. I am using the Microsoft OracleConnection class. My code is: // cmd is an OracleCommand object. cmd.CommandText += "; returning " + column_name + " into :r1"; OracleParameter pkParam = new O...more >>

DataGridView and Combobox columns
Posted by Chris at 3/13/2007 6:03:13 PM
I am trying to populate a DataGridView Combobox column with a different data binding source (dataset) depending upon a selection made in a previous column. I can handle the previous column but how do I assign the following properties dynamically in code? DataPropertyName DataSource Displa...more >>

A search module in c#
Posted by Hemang at 3/13/2007 1:16:32 PM
Hello I need to create a search form which allows the user to search for records using multiple criteria, and then they can select that record and when clicked ok, that particular record to be displayed in the main form. I have the main form, I need to implement the search feature for that...more >>

I need an approach to storing/editing data amongs forms
Posted by Todd Beaulieu at 3/13/2007 1:14:07 PM
I'm working on a small, single user .net 2005 windows application in c# connecting to SQL Express. I'm trying to learn Typed DataSets, DataTables, DataAdapters, etc. What I need to figure out is a reasonable approach (doesn't have to be totally academic) to dealing with data. In other words, ...more >>

Password protect .mdb file
Posted by musosdev at 3/13/2007 1:04:13 PM
Hi I'm using AccessDataSources to access my .mdb file, like so... <asp:AccessDataSource ID="adsStory" runat="server" DataFile="~/App_Data/MyDB.mdb" SelectCommand="SELECT * FROM Table WHERE ColumID = ?"> <SelectParameters> <asp:QueryStringParameter Type="Int32"...more >>

TableAdapter Configuration Wizard
Posted by frank at 3/13/2007 9:22:33 AM
Hi, I created a DSN (ODBC) to connect to a database in IBM DB2. I wanted to create a dataset for 'Select' Statement by wizard. When I add a query variable @strGeoID in 'where' statement - where (PRODDTA.F1755.ZAURRF = @strGeoID), I got the error message: ----------------------------- G...more >>



connecting SQL server using OleDb - Reg
Posted by yasodhai NO[at]SPAM gmail.com at 3/13/2007 6:10:02 AM
While trying to connect to SQL server using OleDb I am getting the following error. The connection string used is Provider=SQLOLEDB.1;server=ctsinprnslse;database=Sample;user id=140869; password=140869 The Error I received is A first chance exception of type 'System.Data.OleDb.OleDbExce...more >>

How can I use connected mode instead of disconnected?
Posted by Brooke at 3/13/2007 1:13:13 AM
I would like to bind some datagrids to datasource and have them update the database when a row is changed. I don't like the disconnected mode. I am developing a Windows Form app, not an ASP.net app. Would like to have the same functionality as I did with VB6 and Delphi.... Thanks ...more >>

Inherit from typed dataset
Posted by rusguy NO[at]SPAM gmail.com at 3/12/2007 9:57:39 PM
Hi Group. Is it at all possible to inherit from typed dataset in .net 2.0? I have a dataset defined in main project that will be distributed as dll. But I want to give others a possibility to inherit from this dataset and modify tables (add columns or other tables) in that dataset as they wish ...more >>

Inherit a typed dataset
Posted by rusguy NO[at]SPAM gmail.com at 3/12/2007 8:17:38 PM
Hi Group. Is it at all possible to inherit from typed dataset in .net 2.0? I have a dataset defined in main project that will be distributed as dll. But I want to give others a possibility to inherit from this dataset and modify tables (add columns or other tables) in that dataset as they wish ...more >>

Inherit form typed Dataset
Posted by rusguy NO[at]SPAM gmail.com at 3/12/2007 7:48:44 PM
Hi Group. Is it at all possible to inherit from typed dataset in .net 2.0? I have a dataset defined in main project that will be distributed as dll. But I want to give others a possibility to inherit from this dataset and modify tables (add columns or other tables) in that dataset as they wish ...more >>

Import text file with DATE column into MS Access Database with VB.NET or C#
Posted by efiguero2000 NO[at]SPAM gmail.com at 3/12/2007 4:39:43 PM
Hello, I followed the thread "Import large text file to MS Access Database" trying to solve a similar problem, but with no help. I have a CSV file called "orders.csv" which I want to export to a MS Access table. The CSV file has the following structure: ORDER,DATE,TIME,F_NAME,L_NAME 100...more >>

typed datasets populated by generic lists?
Posted by MarkAurit at 3/12/2007 12:03:18 PM
We have an application that makes use of a strongly typed dataset. However, some issues have come up with the database and tools. We would like to continue using it, but would prefer to populate it from a Genric List business object. Are these possible: 1) use a generic list of business obj...more >>

Is it possible to fill a DataSet.DataTable with values from more than one database table?
Posted by nvx at 3/12/2007 2:18:20 AM
Hello, is there a way to fill a DataSet.DataTable with values from more than one table from a single database file? The thing I'd like to achieve is to get something similar to a result of the JOIN keyword in SQL. Thanks for any help... With regards nvx ...more >>

Urgent Memory Leak Problem Using Type Dataset. Please help! :-(
Posted by Simon at 3/12/2007 12:00:00 AM
Hi all, I'm having a baffling problem with a windows service that I'm working on. Basically, I am using a typed dataset to insert a large number of rows into an SQL Server 2005 database. But there's a memory leak that seems to be to do with calling the data adapters update method. It's mak...more >>

Stopping a Query
Posted by Bill Gower at 3/11/2007 9:33:39 PM
I have a program which allows the user to graphically create SQL statements without having to know SQL. They just drag and drop fields to view, select criteria and sort order. When the user indicates that they want to execute a query, I parse the SQL statement to verify correctness and then ...more >>

Deployment + Vista
Posted by Steven Spencer (Spinalogic) at 3/10/2007 12:00:00 AM
We use strongly typed datasets, and thus our connection string is bound to an application setting. Currently we can deploy and alter the app.exe.config file at installation time to successfully install, and use some basic XML editing to allow the target database to be changed. Writing to...more >>

Eliminating CRUD procedures
Posted by Colin Robinson at 3/9/2007 3:08:21 PM
Your know the ones, you have a table and it has Create,Read,Update and Delete Stored procedures and the app always uses these to talk to the DB eliminating dynamic sql in your apps. Makes perfect sense when you have a table however when you have 500 tables its not so clever (thats 2000 st...more >>

Writing xml file from dataset different than the original
Posted by Bmack500 at 3/9/2007 1:07:10 PM
Hello all. I'm reading the data from an XML file similiar to below, using the code below. When the file is edited in the datagridview and then re-written, it doesn't write the xml file as it was originally written. So what am I doing wrong? My code and samples are below. Any help would be g...more >>

Insert a whole datatable
Posted by Q. John Chen at 3/9/2007 9:32:05 AM
I have two access database (with identical schema). One is the master and the other is SHOULD be a subset of master data (Let call them MasterDB and SubDB The user enters data into the SubDB and I need to bring the new changes to the MasterDB. Traditionally, I can get a the new changes (into ...more >>

Datatable
Posted by meka at 3/8/2007 9:59:38 PM
For i = 0 To dtSubOpt.Rows.Count - 1 intOptNo = dtSubOpt.Rows(i)(1) strSelectSubOpt = "select tblOptions.strOptName as OptionName,tblOptions.intParent ,tblMOMT.strMOTag as MessageSentFromServer,tblMOMT.strMTTag as MessageSentToServer from tblOptions inner join tblMOMT on tblMOMT.intOp...more >>

Problem saving 24 hour date/time in SQL
Posted by JL at 3/8/2007 10:34:03 AM
I have an SQL table(MS SQL 2005) with a field called SignInDate and have created this as DateTime. When I save the current time using the Now function, it does not save the value in 24 hour format. For example, if it is 2:15:36 PM (i.e. 14:15:36) it saves the value in SQL Sever as 2007-03-08 0...more >>


DevelopmentNow Blog