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 > august 2006

Filter by week: 1 2 3 4 5

performance tableadapter access update
Posted by John at 8/31/2006 9:05:39 PM
Hi I am working with an access database with more than 25000 records (adresses). In vb .net i use the tableadapter and it takes a long time to read all the records (with access it doesnt take much time). Also when I use the update-query it even takes much more time, more then 8 minutes, to ...more >>

Data binding combo box to a datagrid
Posted by John Harcourt at 8/31/2006 6:17:01 PM
I have a dataset with two data tables. I created a data relation object to join the two tables by a common field. On a Windows form, I set up the data binding to a combo box for the first table. This is the "master". I set up the data binding for a datagrid for the second table. This is the ...more >>

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding
Posted by scott mcfadden at 8/31/2006 6:08:00 PM
We use ADO.NET / SQLProvider against SQL2000 for our web application. We have started to see more and more of these errors: Exception Type: System.Data.SqlClient.SqlException Errors: System.Data.SqlClient.SqlErrorCollection Class: 10 LineNumber: 0 Message: Timeout expired. The ...more >>

Setting a breakpoint in sql server 2000 stored procedure from VS2005
Posted by Adrian Parker at 8/31/2006 3:23:30 PM
Using.. Visual Studio 2005 Team Edition for Software Developers SQL Server 2000 sp4 (on same machine) Net.Framework 2.0 Windows XP (up to date with all patches) Problem.. I'm trying to debug a stored procedure from within visual studio but when I set a breakpoint and then start the app in ...more >>

Why can't I create a DataGridView whose datasource has > 1 table
Posted by Juan Dent at 8/31/2006 11:11:02 AM
Hi, I am working inside the DataSet designer. I have 2 tables related by one relation and FK. Both tables have been configured to be updatable (insert,update,delete methods generated). All this is nice. Yet, I need to display a join of these tables selecting only certain columns on each ...more >>

AcceptRejectRule - what does it really do?
Posted by Juan Dent at 8/31/2006 10:59:02 AM
Hi, How does AcceptRejectRule differ from Update rule and Delete rule? -- Thanks in advance, Juan Dent, M.Sc....more >>

NewRow, RowState, and Detached with a CommandBuilder
Posted by Andy at 8/31/2006 10:09:22 AM
Hi folks, I'm using the ADO.NET 1.1 framework and have this ADO.NET dataset I want to use to add and/or update records on the physical SQLServer table it came from. I am using an ADO.NET commandBuilder to automatically generate the update and insert SQL commands. I start with a SQL stateme...more >>

How to refresh datatable from datasource
Posted by alfred.sehmueller NO[at]SPAM gmx.de at 8/31/2006 9:43:05 AM
Hello, in a network-winforms-application based on a access database I've got the following problem: user A starts software user B starts software user A deletes row in db user B changes data application of user B makes an update dataadapter.update(datatable). Now I get an concurrency...more >>



.NET2.0: Microsoft, you got something very wrong in data validation..
Posted by mcw8 NO[at]SPAM aber.ac.uk at 8/31/2006 5:51:36 AM
Even Microsoft's own data-validation walkthrough article (http://msdn2.microsoft.com/en-us/library/1120xds5.aspx) recommends attaching a handler to the RowChanging event of the DataTable The problem is, that when editing a row, the RowChanging is raised after an attempt to update the row in th...more >>

Data Access Layer and Business Logic Layer in ASP.NET 2.0
Posted by asad at 8/31/2006 12:16:02 AM
Hi friends, how ru all, I have a question about creating Data Access Layer and Business Logic Layer using ASP.NET 2.0 and VB.NET, which is the best way, and what is that best and optimized solution for creating DAL and BLL. Thanks, ...more >>

Sorting
Posted by Adrian at 8/31/2006 12:00:00 AM
When I sort a number I get a lexicographical sort 1 11 112 1 12 How can I code a sort that will produce a proper numerical order? Adrian. ...more >>

UDL in ADO.NET
Posted by Anders Eriksson at 8/30/2006 2:23:13 PM
Hello! In ADO the preferred[1] way of specifying the connection string was using an .UDL file. What is the preferred way to do this in ADO.NET? // Anders -- English is not my first, or second, language so anything strange, or insulting, is due to the translation. Please correct me so...more >>

Help with Output Parameter Statement
Posted by Stephen Lynch at 8/30/2006 2:09:14 PM
All: I am running a stored procedure via code but need help with the sytax for the output parameter as mine is wrong, Sorry, but I am just learning. Here's my incorrect section, more is listed below: OleDbParameter parameterContributionID = new OleDbParameter("@Contributi...more >>

Connecting to Oracle Database.
Posted by LineVoltageHalogen at 8/30/2006 11:49:33 AM
Greetings All, I am writing a small test app in C# .Net 2.0 that needs to connect to an Oracle 10g database. I need to use Microsoft's data provide System.Data.OracleClient to connect to the database and I need to connect as "SYS." There seems to be no provision for connecting as "SYSDBA"? Am...more >>

why ever use structs vrs. classes?
Posted by Juan Dent at 8/30/2006 10:58:02 AM
Hi, I have a hard time recalling what was the basic rationales for using structs instead of classes in a C# program. Could anyone point out the reasons? -- Thanks in advance, Juan Dent, M.Sc....more >>

ADODB and .Net
Posted by rclowser at 8/30/2006 9:27:02 AM
I developed a .Net website for Windows 2k3, but the webhosting team doesn't have a 2k3 environment ready to go. So I want to still push my .Net site, so I'm attempting to get the site to run on W2k that is already set up. I'm having a few difficulties on it. Current the site runs fine on 2k3 b...more >>

Closing a connection returned from separate class
Posted by Ross at 8/30/2006 4:08:01 AM
Hi I have a solution - just a test one - where there are two projects. One is a simple windows form with a text box called txtClient & a command button. The command button eventually calls a SP that has a parameter @ClientName. The other project is a class library that has a class calle...more >>

Question about SqlCommand.Parameters.Add() method.
Posted by pedestrian via DotNetMonster.com at 8/30/2006 12:00:00 AM
I'm currently programming an ADO.NET application for SQL server. I notice that the SqlCommand.Paraterers.Add() method require 4 parameters which are parameterName, SqlDbType, Size, and SourceCOlumn. The question is with Size parameter: What is the corrent Size value for SqlDbType.Int, SqlDbTyp...more >>

Inserting records from a DataSet into a second table
Posted by Gordon at 8/29/2006 7:30:02 PM
Hi; This has me confused. I have a dataset which was populated from one database. Can I insert this dataset's rows into a different database table using the same dataAdapter or would I have to create a second adapter? Isn't a dataTable just an memory resident data table ? So I am th...more >>

SQL Parser
Posted by Joe at 8/29/2006 7:18:28 PM
Are there any decent parsers around that can parse SQL? I'm looking for something that can validate the syntax and also allow access to the columns and tables from the select and where clauses? Thanks for any help, Joe ...more >>

HELP: can't stop using Named Pipes!
Posted by Matt C. at 8/29/2006 5:07:27 PM
I have deployed a test application (VS 2005) to several workstations. They need to make a connection to our SQL Server 2000 server. Most work fine. On one workstation, we keep getting the error: "An error has occurred while establishing a connection to the server. When connecting to SQL...more >>

CommittableTransaction leaves open transactions on server?
Posted by Patrik Rosquist at 8/29/2006 8:45:02 AM
System.Transactions: TransactionScope and CommittableTransactions leave open transactions on server. I'm having problems with commited or rolled back transactions leaving open transactions on the database server. The problem is on our web site using .Net 2.0, Windows 2003 server, SQL Serve...more >>

Name change, can't find origin of error
Posted by jamesn NO[at]SPAM jslocum.com at 8/29/2006 8:00:39 AM
I've recently made a name change on a few database tables. I thought I got all the name changes done in the front end reference. However, this one eludes me. I've checked all the classes listed in the error trace. I've done full text searches across all the documents of the project and I sti...more >>

DataTable.Select problem in ASP.NET 2.0
Posted by manoj241176 NO[at]SPAM gmail.com at 8/29/2006 5:48:58 AM
Hi, I am having problem with DataTable.Select() method. I am using ASP.NET 2.0. I have DataSet which reads data from XML file using DataSet.ReadXML(). Now this dataset has various datatable, created by XML file. I am taking one of the datatable from this dataset and want to filter on that d...more >>

OleDbException: Could not update; currently locked
Posted by Luke Neumann at 8/29/2006 2:41:14 AM
Hello, I have a standalone windows application that uses MS Jet 4.0 to read and write from MS Access database. Rather randomly, I keep getting this exception: System.Data.OleDb.OleDbException: Could not update; currently locked. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHan...more >>

What is wrong?
Posted by Adrian at 8/29/2006 12:00:00 AM
In the line marked *** "one" etc are not allowed. Please tell me why and what I should do to make this code work. Many thanks. Adrian. try { while (carry_on == true) { string one = binR.ReadString(); string two = binR.ReadString(); string three = binR.ReadString()...more >>

Looping through data adapter
Posted by John at 8/28/2006 5:11:59 PM
Hi I have a data adapter bound to a table. How can I loop through the table via and access each record's column values on the way? Thanks Regards ...more >>

Oracle newbie questions
Posted by David Thielen at 8/28/2006 4:12:01 PM
Hi; I know SqlServer well but Oracle is new to me. I have a couple of questions as I get started: 1) Is there a sample somewhere of how to connect to OracleExpress on a remote computer and do a simple select. In other words the bare minimum to access the database. 2) Must the Oracle c...more >>

DAO, SQL Server 2005, and VB6
Posted by Marcus at 8/28/2006 1:26:52 PM
I have some legacy VB6 code that uses DAO (Microsoft DAO 3.6) to access an access 2000 database. In this app, Access is used soley for data storage - there is no UI component. I have converted the database to SQL Server 2005. Can I use DAO to access the new SQL Server database, or must I change ...more >>

DataMember property 'ContractID' cannot be found on the DataSource
Posted by Bart at 8/28/2006 1:09:01 PM
Hi, I get above error when I use the find function on a bindingsource control. The datasource member of the bindingsource is another bindingsource control, where the datamember is a relational member of the datasource The field I'm searching on is absolut in the table behind, I can browse ...more >>

Enterprise Library June 2006
Posted by rockdale.green NO[at]SPAM gmail.com at 8/28/2006 9:50:27 AM
hi, I just downloaded Microsoft Enterprise Library June 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my project so that I can debug better. But I all those examples I found are reference the compiled dl...more >>

Books You Like
Posted by Dave T at 8/28/2006 7:51:01 AM
Do you all like any books ... particularly VB 2005, VS 2005, WinForms, ADO.net? There are so many, I can't see the forest for the trees! ...more >>

Question about testing for returned values
Posted by Chicagoboy27 at 8/28/2006 7:13:52 AM
Sorry if this is a basic question but I was wondering how to test the data being read back from a database. I am using a datareader currently and am not sure if that is the best route. In classic asp it went along the lines of setting up the recordset and testing the recordset information as it...more >>

is it possible to call an oracle function in .net
Posted by reju at 8/28/2006 3:23:47 AM
I have to use either sql server or oracle databse in my application. The front end application in vb.net. ...more >>

tableadapters, where is my concurrency exception?
Posted by troy NO[at]SPAM makaro.com at 8/27/2006 11:11:05 PM
Hi, I wrote a very simple program to test concurrency with sql server 2005. I used the VS 2005 dataset designer wizard to create my dataset and and tableadapter. When I ran the program, I used the debugger to stop the code before the tableadapter.update(row) method was called. I then ran the s...more >>

Do People Us Bound Web Controls?
Posted by Jonathan Wood at 8/27/2006 6:51:19 PM
I was just curious if most people were using data-bound Web controls to display data rather than just display the info via code. I recall that old Visual Basic used to have bound controls but they weren't very good and no self-respecting programming made much use of this. I hear ..NET data-...more >>

No Trusted SQL Server Connection
Posted by Jonathan Wood at 8/27/2006 4:36:40 PM
I'm a programmer but not a database administrator and really don't want to be either. After a fair amount of reading and many problems related to SQL and related stuff, I finally figured out how to create a database in Visual Studio and enter some data into it. Now, I'm trying to make a Web si...more >>

Best Way To Handle Data Relations
Posted by corey.burnett NO[at]SPAM gmail.com at 8/27/2006 12:33:35 PM
I am writing an ASP.NET application that uses SalesForce data as the back end. SalesForce has a web service that exposes the data in their system. Unfortunately the ways that you can select data are very rudimentary. There is no way to do a join between tables in SalesForce and there is no wa...more >>

accessing mysql
Posted by Shiplu at 8/27/2006 8:25:02 AM
What is fastest way of accessing mysql by ado.net ...more >>

Can we backup to Stream
Posted by ad at 8/27/2006 12:00:00 AM
When we use the SQL to backup a database, we use: backup database Health to disk='c:\Backup.bak' with init This will generate a physical file in disk. Can we backup file to a Stream? ...more >>

ConnectionString for VisualStudio-style SQL Server Databases
Posted by Alex Maghen at 8/26/2006 7:50:01 AM
If I create a database or attach a database file in the version of SQLServer that comes built-in to Visual Studio, the ConnectionString that VisualStudio automatically creates for connection to this database is a "file-based" connection ("AttachDbFileName=..."). Is there a way to attach a d...more >>

Adding a record using ADO.NEt 2.0
Posted by SK at 8/26/2006 5:06:39 AM
Hello, I have a Newbie question. I am using .NET 2.0 and C#. I have a data entry screen which has about 25 fields. Excepting one field, none of the others fields require inputs. My question What is the best method to insert the records to a SQL db - calling the SQL insert i.e. "insert into......more >>

How to determinate if an SqlServer Instance existed?
Posted by ad at 8/26/2006 12:00:00 AM
Hi, How to determinate if an SqlServer instance existed in a Server? ...more >>

Columns in a Dataview
Posted by Mike at 8/25/2006 6:08:10 PM
I have a table that is composed of an ID and two foreign keys. This table is used to relate two other tables. I'm using a dataview to display the data. The data can be edited, including changed, deleted and added. How should I set up the dataview columns so the user sees the choices from ...more >>

were can I get a music sharring service
Posted by James at 8/25/2006 6:03:01 PM
were can I get a music sharring service...more >>

"Thread was being stopped" while trying to connect to AS400 iSeries using .NET
Posted by Daniel Wilson at 8/25/2006 2:20:00 PM
My codes blowing up with the "Thread was being stopped" exception when I try to create a data connection. Here's the line of (MS VC++ .NET 2003) code blowing out: SourceConn = new IBM::Data::DB2::iSeries::iDB2Connection(S"DataSource=ANTIGUA1;DefaultCollect ion=EMBTEST;UserID=PCS;Password=PCS;")...more >>

Converting date formats
Posted by Mika M at 8/25/2006 2:16:03 PM
Hi! I'm reading CSV-file using OleDB provider with SQL-select command and it's working fine. Anyway CSV-file contains "field" containing date values like 20060825, and I'd like to convert it into datetime format when reading it into DataTable like #8/25/2006#. How to do this? Propably I h...more >>

ExecuteScalar don't return the corrent Int value.
Posted by pedestrian at 8/25/2006 2:08:28 PM
I'm using VB ADO.NET with Northwind database Employees table. I create a WinForm with a ComboBox (cboEmployee) to let user to select or enter full name and store it in strNames string array. I then try to get the matching Employee ID based on the employee name entered. However the ***SqlCo...more >>

Conn Pooling Monitor
Posted by Mike at 8/25/2006 11:57:36 AM
Hi, I would like to build a monitor application that monitors the connection = pooling. I know that it is possible to use PerfMon for SQL Server, but I = would like to build my own to deal with other providers. Does anyone have any link to articles or any other information that I = could ...more >>

Manipulate Data in a data set
Posted by Chicagoboy27 at 8/25/2006 11:40:43 AM
Sorry if this is a basic question but I was wondering how to test the dataset information as it is being read. ex, I have a table that contains file extentions such as .xls, .doc, ..ppt. What I want to do is test the dataset as they are being written and if the dataset is equal to .xls i want ...more >>


DevelopmentNow Blog