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 tuesday february 10

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

Displaying the message in ASP.Net application
Posted by Cris Rock at 2/10/2004 11:29:08 PM
In my ASP.Net application, validation rule demands that user has to select one of the option buton(...WebControls.RadioButton). I am doing these kind of validations in the server side when the user clicks on the update button(...webControls.Button). My problem is how to display this message to t...more >>

Please help - technical question on ListBox...
Posted by Vincent at 2/10/2004 10:56:05 PM
Dear Experts I got one technical question on using ListBox. I don't know how to solve it, please help. Scenario I placed a ListBox on the Form and I would like to allow my users to do multiple selection. After users select the item(s), I want to collect all the corresponding "SelectValue"(s)(Se...more >>

OLeDb or Odbc
Posted by Johnson Smith at 2/10/2004 10:47:58 PM
I am using proprietary ODBC driver to connect to legacy stytem. Should I use System.Data.Oledb or System.Data.Odbc data objects ? Thanks for your thoughts. Johnson Smith ...more >>

Currency manager does NOT change content of run-time bound control
Posted by Christian at 2/10/2004 9:44:45 PM
Hi, I have one databound-control for which I set the DataBinding properties at design-time as follows : the Text-property of a label-control 'lblProductname' is bound to the field "Productname" in a DataSet named DsProducts1.Products and I have another databound-control for which I...more >>

Why isn't my database getting updated?
Posted by Rob Richardson at 2/10/2004 9:04:40 PM
I am sure there is something elementary I am leaving out, and by this question I am revealing myself as the newbie I am. I have a typed dataset that contains a table named "Orders". When a user enters a new order, I create an OrdersRow object, then I call my table's Add method, passing in the...more >>

VS Whidbey - "out of the box?"
Posted by Roel at 2/10/2004 8:13:54 PM
Hi, I'm currently investigating what new cool features ASP.NET 2.0 will bring. When I use a GridView and a SQLDatasource like this: <asp:gridview id="GridView" runat="server" font-size="8pt" backcolor="White" allowpaging="True" datasourceid="SqlDataSource" allowsorting="True" borderco...more >>

msde docs
Posted by WIlliam Barnes at 2/10/2004 6:55:59 PM
I have been studying ASP.NET using Visual Studio.NET 2003. I would like to try using MSDE but haven't yet found a good source of documentation regarding how to implement it. Does anyone know of a good source for documentation/tutorials? ...more >>

Function behaves differently when passed a copy of the dataset
Posted by JerryK at 2/10/2004 6:24:12 PM
Hi, I have a strange problem I am trying to understand. I have a piece of code that looks like: Dim SourceDS as dataset Dim ResultDS as dataset SourceDS = RetrieveData() ResultDS = ProcessData( SourceDS) .... When I run this code I occasionally get the wrong information in the ...more >>



About Debugging
Posted by Ather Ali Shaikh at 2/10/2004 5:55:15 PM
Hello All, I have page name MyPage.aspx it has Custom control. fine. and a textbox taking date fine. a button which is used to filter the MyPage.aspx against the date input = into textbox. but when I click the button it is not working. nor debug the page load = event of that page. only t...more >>

Money datatype and DBNull.Value
Posted by Dune at 2/10/2004 5:51:05 PM
Hi there I have a column of type Money in a database table, the column is not mandatory and so allows nulls...in my code when i try to insert into that table, i check if the user has entered a value for the money column and if not, i pass in a sqlparameter with a value of DBNull.Value Howeve...more >>

Oracle and Unicode
Posted by ccidral NO[at]SPAM expresso.com-dot-br.no-spam.invalid at 2/10/2004 5:34:31 PM
Hello all! I am writing an application that connects to an Oracle 9i database using OracleClient managed provider. There's a table with a field of NVARCHAR2 type, named TEXT, and another field of VARCHAR2 type, named COMMENT. The application do insert text values into both fields correctly,...more >>

The custom tool 'MSDataSetGenerator' failed while processing the file...
Posted by lover at 2/10/2004 5:10:42 PM
That's great to know... But why is it giving me this error for items that are supposed to be excluded from the project??? Annoying! >=| ...more >>

.Net slow, SQL tools FAST??
Posted by JoshuaLuke at 2/10/2004 4:31:05 PM
I am running an sproc that runs in 2-3 sec using query analyzer, but takes just under 5 min using .net data providers (I've used SqlClient, OleDb, and Data block v2 t-sql statement executed from QA RptInvRoyalty 126, '2/1/2004', '2/29/2004 ..net code System.Data.SqlClient.SqlComm...more >>

Check ALL relations for ChildRows before removing a DataRow?
Posted by at 2/10/2004 3:58:43 PM
Hello NG! In a DataSet I have the tables A, B und C. Table B is related to A with DeleteRule=Cascade Table C is related to A with DeleteRule=None This way an exception is thrown, if you try to remove a Row in A and there are depending ChildRows in C. But ChildRows in B are already removed b...more >>

DataGrid and Selected Rows
Posted by Chris Dunaway at 2/10/2004 3:16:16 PM
I am writing a simple Windows Forms Application that accesses an Access database. In the form I instantiate a DataTable object. I then read the contents of a single table in the Access file into this DataTable. This works as expected. Next, I instantiate another DataTable and use the .Clo...more >>

¿¿¿¿¿¿¿¿¿¿¿¿
Posted by pguan at 2/10/2004 3:11:06 PM
I use follow code to insert a large xml into oracle database. The data is inserted, however shows as "¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿.. xmlRawDom.Load("D:\testActual.xml" dataString = xmlRawDom.OuterXm Dim AE As New System.Text.ASCIIEncodin ...more >>

architectural question re .Net.
Posted by new.microsoft.com at 2/10/2004 2:47:37 PM
Got an architectural question re .Net. Potential client wants to build a c#.net app with the following reqs. Multiple users in a central office running the app as well as up to 20 remote users going against the same data. 95% of the time they will have a DSL line connecting the remote office...more >>

There is already an open DataReader associated with this Connection which must be closed first, AGAIN !!!!!!
Posted by ItsMe at 2/10/2004 2:30:39 PM
Hi, I know, i'm repeating this question again. Please accept my apologize, unable to understand clearly. Need to have some inputs in my routine. I'VE A DEADLINE AND I'M STUCK !!!!! :( I'm retrieving Data from Paradox database using (odbc), manipulating and saving in access for report genera...more >>

swap 2 rows
Posted by Steve at 2/10/2004 2:25:43 PM
Hi- I need to make an interface to edit Technical Data records. Table looks like this: Tbl_Tech_Specs [ TSID(pk) ] [ SpecName ] [ SpecValue ] So if there were 2 records; 2 "Voltage" "5v" 8 "Width" "11 in." I would like the user to be able to swap the values of 8 w/...more >>

SetColumnError leaves tooltip in datagrid
Posted by Jan at 2/10/2004 2:06:02 PM
Hi, After the following code the errorIcon displayed in column 3 of the datagrid bound to MyDatatable is gone, but the tooltip with the errormessage is still there ? How do I erase the tooltip ? Is this a bug ? Any workaround ? 'Following line set the errorIcon & errorMessage MyDatatable....more >>

DataAdapter.Update
Posted by Ruslan Shlain at 2/10/2004 1:52:10 PM
Is there a way ti find out if there are error during DataAdapter.Update method call? -- Ruslan Shlain nAlliance Corporation www.nAlliance.com ...more >>

Performance of DataAdapter.Update
Posted by Daniel at 2/10/2004 1:26:07 PM
Hello, I'm using VS.NET 2003 to create a data framework for my applications. An application can request data about a customer, edit it and save it back to the database (SQL 2000). Some applications edit a lot of the data or create new rows (sometimes >100.000 rows). It takes the DataAdapter very...more >>

Upload jpg/gif to SQL Server field
Posted by Andrew Banks at 2/10/2004 1:07:58 PM
I've coded a page that uploads a file to a directory on the server. I'm now thinking it would be more convenient for this project if the file was placed in a field in my SQL Server DB. Can anyone give me an insight on how I might go about doing this please? Thanks, Andrew ...more >>

Microsoft .Net Provider does not return all Rows
Posted by DelC at 2/10/2004 12:41:06 PM
We are experiencing a problem in using the Microsoft .Net Data Provider Fo Oracle. For certain more complex SQL queries it does not return the correc number of rows. The behaviour can take two forms 1 the DataReader returns no rows back to the calling program, on th database one fetch has been d...more >>

Relating two Datatables
Posted by Gerry Viator at 2/10/2004 12:37:59 PM
Hi all, Trying to relate copy's of two tables in another dataset so I can loop through MainDS Basically i'm trying to copy the two datatables and then put them in a global dataset. I then need to loop through the dataset. so how do I relate and copy two datatables into one dat...more >>

Max Limit on rows in DataTable
Posted by Kapil Joshi at 2/10/2004 12:21:39 PM
Hi All, I would like to know if there is any upper limit on the number of rows that a datatable can contain? Thanks in advance. ~ Kapil ...more >>

Specified cast is not valid
Posted by Ruslan Shlain at 2/10/2004 11:35:34 AM
A little problem I am having and its driving me nuts. I have a datatable and I am adding a column to it on the fly. Then based on some other fields i add or not add a value to that column for each row. When I do update statement on DataAdapter I get "Specified cast is not valid". The DB column ...more >>

Problem with Sql Server
Posted by JoshuaLuke at 2/10/2004 10:46:10 AM
I have a sproc on sql server that I am calling from an asp.net app using the data application block v2 method ExecuteDataSet. The sproc returns data that is bound to a datagrid. The problem is that the command times out when being called through .net but only takes 1-3 sec when run from query analyz...more >>

?At a loss? ExecuteNonQuery executing my Insert Statement 3 times in debug mode
Posted by Mike at 2/10/2004 10:28:24 AM
I know this sounds strange but I am at a loss. I am calling a simple funtion that opens a connection to a SQL Server 2000 database and executes an Insert Statement. private void AddMinimunWageStipen(string payrollid,double amount) { System.Data.SqlClient.SqlConnection cn = null; System....more >>

Bound TextBox and Updates in DB
Posted by Severain at 2/10/2004 9:46:05 AM
I am building an app that requires related data (parent/child) to be displayed and updated via text boxes. I related the data in the DataSet XML designer. The parent info is a contacts table with addresses, etc. The child info is a locations table which has a foreign key referencing the contact I...more >>

Truncate a numeric field
Posted by Fei at 2/10/2004 9:07:26 AM
Hi, I got a problem. I don't know how to solve it. I have two columns, NetEach and Rate. Then I create an expression Column, Total, like this Table1.Columns.Add("Total", GetType(Decimal), "NetEach * Rate") i.e. Total = NetEach * Rate So if NetEach = 10, and Rate = 0.1299, then Total = ...more >>

error.. oci.dll
Posted by Blood... at 2/10/2004 9:04:30 AM
vb.net oracledataadapter connection Error: OCI.DLL ...more >>

Communication link failure
Posted by ToddT at 2/10/2004 8:51:58 AM
anybody ever get this error and knows how i can troubleshoot it? i get it at various times when accessing the database - no pattern to the types of database operations can be found. thx. ...more >>

locking OLEDB vs. ADODB
Posted by Eric at 2/10/2004 8:34:29 AM
I'm developing an application in C#. The application consist of a data layer which must be capable of using mysql, mssql and access for data storage. I started using OleDb with interfaces like IdbConnection to achive this. Everything worked fine until i came at the issue of locking. I found out ...more >>

setting a default value for a datatable column
Posted by Abbas at 2/10/2004 7:51:09 AM
How do i set the default value of a datatable column to zero. At the moment it is displaying a null Does anyone know how this is done thank you ...more >>

Permission denied error 2nd Post
Posted by Taishi at 2/10/2004 7:29:18 AM
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some comments from the group: ---microsoft.public.sqlserver.odbc-- subject: Permission Denied -- Thanks for h...more >>

Displaying/Modifying Multiple Tables as One Table
Posted by siprell NO[at]SPAM web.de at 2/10/2004 7:11:18 AM
Hello everybody, we are currently working on a Oracle 9i Project with the ADO.NET Framework version 1.0. We have multiple tables in this database which are linked together by a shared primary key. The relationship among these tsbles is always 1:1, so each row in a table has a corresponding row ...more >>

rowchanging : validating user input with exception
Posted by M. Leine at 2/10/2004 3:06:06 AM
I have a question about validating user input, which the user can enter in a DataGrid. I use the rowchanging event of the DataTable to which the DataGrid is bound. In this rowchanging event-handler, I check the column data of the row, and if not correct, my own exception is thrown I’m having prob...more >>

Compacting and Repairing an Access DB
Posted by Nigel Findlater at 2/10/2004 3:01:06 AM
Hallo How can I programatically Compact and Repair an Access Database in VB.NET Nigel......more >>

What's the best way to open a Connection to DB in the WEB envoironment
Posted by Ahmed Jewahar at 2/10/2004 12:09:49 AM
Hi All, I'm looking for an Ideal and best logic towards open a database connection to SQL server 2000 from an ASPX pages. I have desinged an Intranet application. But I don't know that I have applied an ideal logic to open a connection from my application. Below is the details of m...more >>


DevelopmentNow Blog