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 2007

Filter by week: 1 2 3 4

Help Requried on Connection Pooling [Urgent]
Posted by Mani at 2/28/2007 10:24:05 PM
Hi , i have a requriment where i need to perform connection pooling through c#.net code .My database is Sybase. Can any one forward me link or suggest me on how to start to write code for this. Regards Mani....more >>

How to get the unchanged row of a changed row - ado.net 2.0
Posted by Rolf Welskes at 2/28/2007 4:42:08 PM
Hello, I have the following problem: I have a table and in this I have rows say: Name, PreName, street. as fields. Now a have a row for example: Smith, John, new street 5 . Now I make a change to this row to: Smith, Harry, ..... Now I can get this row for example with table.Select....more >>

Oracle database demands SELECT "column1" FROM "table" syntax
Posted by Torgeir at 2/28/2007 12:32:29 AM
Hi I have a problem with the syntax of the SQL commands I use with the Oracle 10g Express database (from an asp.net 2.0 application using system.data.oracleclient). The database wants the queries formulated as in this example: SELECT "Company"."Name" AS "Name" FROM "Company" "Company"...more >>

MI5 Persecution: Troubling Censorship Issues 20/8/95 (4738)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 6:55:23 PM
Fred Read (postmaster@foxhouse.demon.co.uk) wrote: : He posts this drivel every week or so to a number of groups that : I subscribe to and nothing seems to stop him. *ALL* of his posts : are off topic and unwelcome to the groups he posts to. : We have complained about him to his postmaster ...more >>

SqlCommand.Cancel and Transactions
Posted by draggin dragon at 2/27/2007 6:50:13 PM
I have a Data Access Layer that clients use to interact with the database. The layer takes in a SqlConnection and optionally a SqlTransaction. Clients are responsible for the upkeep of the connection/transaction. The layer allows clients to limit the # of records (maxsize) returned. Suppos...more >>

MI5 Persecution: Stand up for Free Speech 14/8/95 (2083)
Posted by MI5Victim NO[at]SPAM mi5.gov.uk at 2/27/2007 5:34:49 PM
From: rji@cheetah.inmos.co.uk (Richard Ingram) Newsgroups: uk.misc Date: Mon Aug 14 10:08:32 1995 Some cencorship loving bore wrote : > In article <GEVANS.95Aug14094119@mvagusta.uk.tele.nokia.fi> gevans@mvagusta.uk.tele.nokia.fi (Gareth Evans) writes: > > His sysadmin is also next to use...more >>

Reference for Columns returned by GetSchema for Sql Server
Posted by pmayer995 NO[at]SPAM yahoo.com at 2/27/2007 12:23:45 PM
Hello, The problem with GetSchema is that the columns vary by provider. In fact, I can't even find a spec for the columns returned for Sql Server! I don't know why Microsoft didn't even see fit to provide such a spec, it really eliminates the usefulness of GetSchema. Does anyone know of suc...more >>

C# - Binding Navigator
Posted by Chris at 2/27/2007 10:24:03 AM
1. Where would I find the code where the delete action takes place? C# automatically placed this binding navigator on my form and I see no code for where it deletes a record. I want to add a messagebox to confirm before allowign the delete. Thank you! Sometimes I wish I stuck with V...more >>



Data adapter.Update with fields that are part of the update condit
Posted by Roger Tranchez at 2/27/2007 10:13:33 AM
Hello, I'm trying to update some records of a database table called "PETICIONS_TRESORERIA" with this structure: codi int data_peticio datetime name varchar (first two fields made the primary key) .. .. .. I'm using a data adapter with a UpdateCommand as follow...more >>

Joining tables from two databases
Posted by T McDonald at 2/27/2007 7:26:39 AM
I am having trouble figuring out how I might do the following, if I can do it at all. I have two databases, each with their own separate authentication details. I have a select statement that gets the data from one table based on existence in another table in another database. This works f...more >>

Need Expert Help and Advice. Thank You.
Posted by shapper at 2/27/2007 5:36:02 AM
Hello, Consider I have a String: Dim MyString As String = "Hello" or an Integer: Dim MyInteger As Integer = 100 or a class which its properties: Dim MyClass As New MyCustomClass MyClass.Property1 = "Hello" MyClass.Property2 = Unit.Pixel(100) MyClass.Property3 = 100 Or even a ...more >>

query question
Posted by musosdev at 2/27/2007 3:09:08 AM
Hi all, Is there a simpler/faster way of performing the following query with AccessDataSource against an .MDB file? SELECT StoryID, StoryTitle FROM Stories WHERE ((SoryTitle LIKE '0%') OR (SoryTitle LIKE '1%') OR (SoryTitle LIKE '2%') OR(SoryTitle LIKE '3%') OR (SoryTitle LIKE '4%') OR ...more >>

autocomplete textbox like google
Posted by nil at 2/27/2007 1:33:50 AM
Hello all, It's urgent... i want to add autocomplete textbox facility in my application like google. as you type it suggests option to the user..i want the same kind of facility...i know i can do only with ajax(xml and javascript) but i want to fetch possible values from database and want t...more >>

Using UpdateDataSet from Enterprise Library January 2006
Posted by H at 2/26/2007 2:16:09 PM
I call a function with a CustomerID and it returns a dataset of two tables (Customers, Orders). If the ID does not exist in Customers, it returns empty tables. I also set a relationship on CustomerID between the tables, as well as a constraint on CustomerID. In code, if the tables are empty...more >>

Oracle Error Invalid character
Posted by Oldman at 2/26/2007 6:45:28 AM
I am setting the command object text of an OracleCommand to "Select FNGETDBVER() FROM DUAL;" I am attempting to retrieve the result of this function. However, when I call ExecuteScalar on this I get an invalid character error: "ORA-00911: invalid character". Any ideas? I can execute th...more >>

Why aren't data types in SqlParameters validated?
Posted by Jerad Rose at 2/26/2007 2:17:32 AM
I believe this question is simple enough -- why aren't data types in SqlParameters validated in ADO.NET? For example, why is an exception *not* thrown on this line: cmd.Parameters.Add(New SqlParameter("@Id", Data.SqlDbType.Int)).Value = "not an int" Ideally, this wouldn't even compile, ...more >>

VS2003 versus VS2005 data adapters: Auto-generated update commands generate parameter errors?
Posted by DDon at 2/26/2007 12:30:34 AM
Gents, Been using 2003 for 4 years, and have several large Windows Forms based project that I need to continue to develop with VS2005. I have imported one of these projects, fixed some newly detected errors, and it appears to work great in VS2005. The problem I am having is updating Dataad...more >>

quetion about identity, dataadapter
Posted by Felix González at 2/26/2007 12:00:00 AM
Hi I´ve 2 tables (order and order details), In my application I´ve 2 Datatable with 2 dataadapter. The primary key of table orders it´s and Identity the table details has foreign key with the identity of orders. How can insert in table order and details. I more than one record on table orde...more >>

DataRelations and grids
Posted by Claws at 2/25/2007 2:47:59 AM
Hi everyone. I have a very simple problem, that I seem to not being able to solve! Assume I have two simple tables Car, and Store, looking like this: Car ------- car_id make Store ------- car_id numberofcars and I want to show, and update the data in the Store table. I can ea...more >>

How to cancel deleting a row in an event
Posted by Hamed at 2/25/2007 12:00:00 AM
Hello I need an event to be able to cancel a delete request to a DataRow object in some conditions. It seems DataRowDeleting should be able to do the job but setting e.Action is impossible (it is read-only) How can I do the above job? Thanks in advance Hamed ...more >>

SQLDatasource not using SelectCommand from _Selecting Event.
Posted by John Kotuby at 2/24/2007 10:11:23 AM
Hello again... I am cross-posting to the ADO newgroup because nobody in the ASPNET group had a comment. Note, since my first post I have tried using MS Update to install VS2005 SP1 but the automatic download and install failed. I have tried using the SQLDatsource control as part of a user ...more >>

DataTable Column Index for Given ColumnName
Posted by dchman at 2/24/2007 8:17:02 AM
I have a datatable that is created dynamically (in an asp.net 2003 application), so various columns may or may not be present. Consequently, although the column names may be constant, the column indexes are not. I would like to retrieve the column index for a given column name, but haven't ...more >>

ASP.NET Repeater Control - Hide a <div> ???
Posted by sfx_pete NO[at]SPAM hotmail.com at 2/24/2007 3:23:42 AM
Hi All, In my repeater control I have a <div> that is set to run at the server with the intention that I can hide it based on certain criteria. I'm able to do this OK but I'm not sure I have the most efficent method. Heres what I have so far (simplified of course!). Does anybody know a be...more >>

System.Data.Common.DbCommand v/s Oracle.OracleAccess.Client.OracleCommand
Posted by Kuldeep at 2/23/2007 6:13:54 PM
Hi All, Platform: Visual Studio 2005 Programming Language: C#.NET Technology: ASP.NET [though it doesnot matter!] I am here trying to integrate System.Data.Common.DbCommand with Oracle.OracleAccess.Client.OracleCommand for an ExecuteReader method.. While doing this, I get this error messa...more >>

Yet another "Concurrency violation: the UpdateCommand affected 0 records" exception
Posted by Santi at 2/23/2007 9:26:58 AM
Hi friends, In an application with a single user - single computer, with InsertCommand and UpdateCommand created by hand, and a FoxPro database accessed with OleDB, when following this steps I get the exception: 1. Insert a row in the dataset OK 2. Call to Update, the row is inserted in the...more >>

MultiUser Environment Winforms
Posted by AnikSol at 2/22/2007 10:12:32 PM
Development Environment: VB 2005 Prof, SQL Server 2005 In a typical Multi User environment, what is the best way to handle updates of disconnected datasets of other users. Eg: User A opens application Winform 1, dataset1 is loaded on his machine User B opens application Winform 1, dataset1...more >>

qst
Posted by sunita at 2/22/2007 8:35:34 PM
i want to get difference between two dates interms of days From http://www.developmentnow.com/g/7_2005_3_15_0_0/dotnet-framework-adonet.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.com...more >>

Computed Columns
Posted by Aamir Mahmood at 2/22/2007 4:25:42 PM
Hi All I have DataTable object. Is there a way that I can know which fields (columns) in the table are computed. Apparantly the DataTable.Columns returns all columns both computed and other. Any help would be appreciated. Thanks. Amir ...more >>

Help calling an Oracle procedure from vb.net
Posted by dlevine54 at 2/22/2007 12:18:36 PM
I am calling an oracle procedure in a package. It is defined as function get_request_status(request_id IN OUT number, appl_shortname IN varchar2 default NULL, program IN varchar2 default NULL, phase OUT varchar2, ...more >>

OracleClient Connection Pooling
Posted by DSISupport at 2/22/2007 11:32:17 AM
Hi, I have this ASP.NET application developed with VS.NET 2003 VB.NET and deplyed on Windows 2K server IIS 5. This application uses the following: - Oracle 10G databse - MS Data Access Block from MS Enterprise Library June 2005 (with the other blocks like exception, security...) - Use Cryst...more >>

Access Components in LoginView
Posted by Steve Harp at 2/22/2007 10:54:02 AM
Hi All, This should be easy. I have a LoginView control on my default page. Within the LoggedInTemplate, I have a DropDownList control. From my code-behind cs file (in the DropDownList_SelectedIndexChanged method), how can I access the DropDownList to see what selection was made? A small c...more >>

BindingSource design advice
Posted by Flomo Togba Kwele at 2/22/2007 9:55:23 AM
I have a grid bound to a bindingsource. The user clicks on a row and hits a button on the form to delete the row. The tableadapter executes its update method but comes back with a Foreign Key violation. I trap the error and tell the user it's not allowed, but visually (and in the bindingsou...more >>

SQL Server logon name
Posted by nkw at 2/22/2007 9:05:05 AM
I have an ASP.net app and I have the following connection string: <add name="ConnectionString" connectionString="Data Source=DBS-004;Initial Catalog=DB1;Integrated Security=True" providerName="System.Data.SqlClient" /> I use Windows authentication and the Page.User.Identity.Name is my Window...more >>

How do I run a DTS package in VS 2005
Posted by Gordon at 2/22/2007 8:40:21 AM
Hi; I am trying to convert a program written in VS 2003 which runs a DTS package. VS 2005 won't let me compile the program it doesn't recognize the DTS object. Is there a way to run the package under 2005 ? Thanks, Gordon...more >>

General (newbie) design question about fields naming and aliases
Posted by M. Simioni at 2/22/2007 8:39:31 AM
Hi, I'm using the Dataset Designer Tool to create datasets for my VB.NET 2005 application. In my SQL Server tables I have odd field names, like "PWD_EXP" or "SYS_NAME". I have to show these fields to the user in a datagrid, so I have to present them with another naming convention (like "Pa...more >>

What is the purpose of AcceptChanges?
Posted by Jerry H. at 2/22/2007 6:53:07 AM
I know that sounds like a lame and newbie kind of question, because I understand what the effect is - but I'd really like to know what Microsoft's thinking behind this method is about. For example, I can pull ten rows from a datasource into a dataset, modify the contents of a few rows and then...more >>

Imports-statement for System.Transactions namespace
Posted by Dirk Schelfaut at 2/22/2007 6:35:38 AM
Hi I want to use the TransactionScope-class, available in the Namespace System.Transactions in my Windows Forms-app. The problem is that my version of Visual Studio 2005 can't find that namespace. So when I type Imports System.Transactions at the very beginning of my class (above Public C...more >>

What is the action of ForeinKeyConstraint.AcceptRule = Cascade - Ado.net 2.0
Posted by Rolf Welskes at 2/21/2007 4:06:34 PM
Hello, I have understand all about ForeignKeyConstraint . But: When I set ForeignKeyConstraint.AcceptRule = AcceptRejectRule.None or ForeignKeyConstraint.AcceptRule = AcceptRejectRule.Cascade I see no difference in behavor. What is the difference (not what you can read in the help), ...more >>

Concurrency notification question
Posted by Earl at 2/21/2007 3:51:48 PM
I'm posting this question in both the SqlServer and ADO.Net newsgroups in the event there might be a programmatic answer on either the frontend or the backend. Imagine a small network running the same app attached to SqlExpress. A listbox is filled via a datareader with contact names using ...more >>

ADO.NET Connectionstring+pooling
Posted by njdude at 2/21/2007 10:46:54 AM
When i run this sp_who I see the connection showing up and in the next second it is gone. The connectionstring i have is Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;pooling=true;Min Pool Size=2;Max Pool Size=50;Connection Lifetime=120;Initial Catalog=test...more >>

Connection to Oracle Database from DotNet
Posted by Prasad at 2/20/2007 9:16:03 PM
Hi, I have to connect to Oracle database which is on different machine from the application server.To connect to oracle db from DotNet , do I need to install oracle client?.Also please provide me the connection format I have to use as I am new to oracle. Thanks Prasad...more >>

To William (Bill) Vaughn
Posted by fiaolle at 2/20/2007 7:34:10 PM
What title will your new book have and when will it come or if it's already here? Thanks Fia ...more >>

Please Heeelp I don't know what's wrong
Posted by fiaolle at 2/20/2007 5:24:24 PM
Hi I'm new to ADO in Visual Basic.Net and have problems with updating the DataSet. I'm using the code below, but after I have used the DataAdapter's Update metod nothing happens to the Dataset OR the database (the record is not deleted). Before I used the ExecuteNonQuery, then the record was gon...more >>

Memo field trouble
Posted by musosdev at 2/20/2007 7:11:13 AM
Hi I'm using an AccessDataSource to perform a select query on an MDB file. However, my Memo fields are getting truncated? (to about 250 characters). Why is this happening and how do I fix it?! Thanks, Dan...more >>

Is DataSet.GetXml leaking memory?
Posted by Sunil Menon at 2/20/2007 5:23:51 AM
Dear All, I was just browsing through my code checking where my application is allocating memory and found that my code frequently calls Dataset.GetXml to get xml string output to store data in database. Further investigation through .Net reflector revealed that the call creates a stringwriter ...more >>

localized exception messages
Posted by leibnizster at 2/20/2007 4:41:54 AM
hello, how do I set ADO.NET exceptions to be thrown in a particular language? I downloaded the dutch language pack, set current culture etc. Everything works OK for regular System exceptions (ex. Divide by zero => it shows "Poging door nul te delen."). But the exception related to ADO are sti...more >>

Copying a Record from one DataTable to Another.
Posted by Wayne Gibson at 2/20/2007 12:00:00 AM
Hi, Firstly thanks for taking a look this thread. I'm looking to update/insert records from one database into another. The databases will look something like this: Database1.MDB Table1 fields (Won't know what these are at runtime) Database2.MDB Table1 fields (...more >>

DbProviderFactory, System.Data.Common, huh?
Posted by Jeff Jarrell at 2/19/2007 10:43:29 PM
I finally stumbled across the DbProviderFactory in System.Data.Common. I had a similar factory in my framework but I thought it would be better to use the framework code, so of I went to change the code. As I was doing this it is apparent that when using the DbProvider (both the base and t...more >>

Why is this code so SLOW?!?!?!?!
Posted by Marcus at 2/19/2007 3:54:22 PM
I have a a VB.Net app using an Oledb data connection to an Access 2000 database. There are three tables that I am using in a SELECT query: - ReadProps (2025 records, 5 fields) - Devices (511 records, 27 fields) - ReadPropEnums (3060 records, 6 fields) When I run the following SELECT stateme...more >>

Inserting a row - not working
Posted by JamesB at 2/19/2007 12:25:00 PM
Not sure if you'll be able to help as I'm using an inherited database connection that one of our devs wrote... but in any case... I'm trying to add a new row to a table, using the following code (the below is simplified) DataTable tblImport = myConn.OpenTable("SELECT * FROM table); DataRow ...more >>


DevelopmentNow Blog