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 2003

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 30 31

Cant search Date from mySQL.
Posted by Kwok at 8/31/2003 11:20:01 PM
Hi, I search some record(s) according to specific date which is took from datetimepicker, but a dataset.table(tbname).count is zero. here is my code. I use ODBC.net and Option strict On dim seaSql as string seaSql = "Select * from Orders where JobDate = @tmpJdate " DBCom.CommandText =...more >>


Reading Excel files with Jet OLE DB Provider
Posted by Kevin Dietz at 8/31/2003 10:58:38 AM
I have some ADO.NET code that uses the Jet OLE DB Provider to read Excel files. The reading of the files works okay. However, I get strange behavious when I have Excel running and run the program that reads the file that Excel currently has loaded. Excel will pop-up messages such as "File is ...more >>

Jet 4.0 OLE DB Connection String Reference
Posted by Kevin Dietz at 8/31/2003 10:51:42 AM
Where can I find a reference for all the parameters that you can put in a connection string for the OLE DB Jet 4.0 provider? I've been looking all over and can't seem to find it. Thanks. - Kevin ...more >>

I have problems with DataSet
Posted by PABLIN at 8/31/2003 9:20:36 AM
I am using the DataSet and I have problems, when --> used a SqlDataReader dr ----> while(dr.Read()). With dataset ds ---> while(ds.?????). Thanks ...more >>

Number of concurrent users
Posted by John at 8/31/2003 12:08:54 AM
Hi Is there a reliable way to place a 'number of concurrent users' limit in vb.net applications? Thanks Regards ...more >>

SqlDataReader C# Index (Item Property)
Posted by Carlo Razzeto at 8/30/2003 10:30:47 PM
I have a question about what the SqlDataReader index value returns exactly (in VB SqlDataReader.Item("Value")). According to the .Net SDK this property returns: Overloaded. Gets the value of a column in its native format. I translated this as this property returns the value as it's type, so ...more >>

Feedback on an article
Posted by William Ryan at 8/30/2003 5:17:18 PM
I've been working with two of my co-workers on developing a .NET content site. Anyway, writing an article is a little more difficult than I thought. How do you make sure you have the important info without boring non-beginners. How do you write important stuff without turning off beginners? ...more >>

Passing datetime as parameter throws Exception
Posted by Brane Brodnik at 8/30/2003 4:02:30 PM
I have data field MyTime of type Date/Time in MS Access table Test. I want to add record into this table with value passed as parameter. I do the following in C#: OleDbCommand cmd = new OleDbCommand(); cmd.Connection = MyConnection; cmd.CommandText = "INSERT INTO Test (MyTime) VALUES(?);"; ...more >>



Determine whether a query returns results or not (before running it)
Posted by John Sway at 8/30/2003 12:55:28 PM
I'm writing a web-based "Query analyser" tool for our company intranet. It allows a user to type any SQL statement in a form, and execute it over the Web. The SQL can be a query that returns results (e.g: SELECT * FROM members) or it can be a T-SQL (e.g: UPDATE/DELETE/INSERT). What I want t...more >>

OleDb DataAdapter Fill puzzle
Posted by rhino at 8/30/2003 7:11:44 AM
Hi, Working with ADO.Net/OleDb and Access2000. Using dataAdapter1 to update Access table field and dataAdapter2 to display the value from the same Access data source. Problem is, although dataAdapter1 is updating the Access table (verified in Access), subsequent calls to the dataAdap...more >>

MSDE in install
Posted by Konrad at 8/30/2003 5:30:48 AM
Hi How to include MSDE into install and during install create some tables so program and database server are ready to work? Thanks Konrad ...more >>

Urgent Help Needed !! FTP Files from Webserver to Client PC
Posted by EJChew at 8/29/2003 8:44:49 PM
Hello, I need to download files from the web server to the PCs without the "Save As" Dialog Box using ASP.NET . Pls advise if there are any components available for any help is appreciated. Thank You EJ ...more >>

ANN: September 2, "ADO.NET with Visual Basic .NET"" chat
Posted by Jason Cooke [MSFT] at 8/29/2003 3:59:40 PM
Every application uses data. Come and ask members of the Visual Studio and SQL teams about the best approaches for working with data in your applications. Date: September 2, 2003 Time: 1:00 - 2:00 P.M. Pacific time 4:00 - 5:00 P.M. Eastern time 20:00 - 21:00 GMT 21:00 - 22:00 BST (For ...more >>

Oracle CLOB parameter limit?
Posted by Andrew at 8/29/2003 3:51:33 PM
Hey all, I'm getting the following error when calling an Oracle9i proc from a .net 1.1 app, passing a clob parameter that is larger than ~32,000 characters: ORA-01460: unimplemented or unreasonable conversion requested. Is there a parameter size restriction for oracle procs? How do I pass ...more >>

file download - using response.writefile()
Posted by EJChew at 8/29/2003 3:26:30 PM
Hi, I have ASP.NET page that would like to download a list (many) pdf files. I intend to down the file into the browser C:\ root drive without prompting the user to "SAVE AS" dialog box. Would appreciate some help on this (maybe a code snipnet). Thanks EJ Chew ...more >>

DataRowChangeEventHandler Issue
Posted by Jeff Hagins at 8/29/2003 12:55:30 PM
I have written a DataRowChangeEventHandler to act as a "security" filter based on the current users "role". The event handler needs to be able to reject/cancel Inserts to the ADO.NET DataTable (these inserts are the results of a Select against the dataSource using the Fill method on a SqlD...more >>

ADO.NET in C# - statement problem, please help?
Posted by jez at 8/29/2003 8:57:50 AM
I've been stuck with this stupid problem for the past two days.. I give up now, please help me? Here's the code : OleDbCommand updatedb = conn.CreateCommand(); updatedb.CommandText = "INSERT INTO maintable (name, number) VALUES ('John Smith', '01215489746')"; updatedb.ExecuteNonQuery(); ...more >>

Change Winform Query Question
Posted by Woody Splawn at 8/29/2003 8:27:54 AM
I had an experience this morning that I don't quite understand with VS 2003. I have a Winform with the underlying data coming from three different tables. This data for the Winform is obtained by use of a dataset. The form has tabs. Data in the Contracts table goes to the Contracts tab, data ...more >>

Lhotka's VB.Net Business Objects
Posted by busy NO[at]SPAM sulfurmines.com at 8/29/2003 7:29:31 AM
Has anyone tried implementing Rockford Lhotka's CSLA framework from his book Expert One on One Visual Basic .Net Business Objects? The reason I pose this question here is 2-fold. 1. He basically does away with most of ADO.net, other than the DataReader to read a row in order to stuff the ...more >>

How do I insert into an Excel spreadsheet?
Posted by rsine at 8/29/2003 7:01:00 AM
I am using Excel as a small database to store settings of a comm program I am writing. While I can read from excel fine, I am stuck on how to write any changes back to the database. I have been trying to use an INSERT INTO but I get the following error: Operation must use an updateable query ...more >>

MS Oracle ADO.NET provider bug 2?
Posted by Simon Tobias at 8/29/2003 2:46:49 AM
The following code returns an InvalidOperationException syntax error when stepping over the da.FillSchema statement : Syntax Error: Expecting ',' or 'FROM' after column alias or '*'. The same code works fine using either the MS OleDb data provider or Oracle's native provider. If I add ...more >>

[Q] Reading BOOLEAN return value from Oracle function
Posted by João Pedro Martins at 8/29/2003 1:39:04 AM
Hello, Can anyone tell me how to retrieve a boolean return value from an Oracle Function, using MS .Net Framework Data Provider for Oracle? In the documentation there's a "Mapping Data Types" table that shows which Oracle data types correspond to which .Net types (OracleType.xxx), but Bool...more >>

DataRepeater for windows forms
Posted by Filip De Backer at 8/29/2003 12:24:21 AM
Hi, I've sen that VB6 has a datarepeater and that ASP.NET has something like that. But is there something like that for windows forms, or has someone something like that? Thanks Filip...more >>

is ADO.net built on top of ADO?
Posted by Allan Quatermain at 8/28/2003 8:23:35 PM
Is this statement true? "ADO.NET doesn't have it's own engine to connect to a data source, it uses ADO internally. It's another layer on top of ADO. It's pretty much the same as doing an interop with the ADO components... " ...more >>

SQL Indexes
Posted by William Reyes at 8/28/2003 7:08:21 PM
I have a question regarding indexes. This may be a SQL newsgroup question. If it is I apologize. I actually posted it on both just in case. If I create an index on a table. Will this index be checked through when I execute a select statement from VB.NET or is this index only used through st...more >>

Saving Times in .Net
Posted by Chris Huddle at 8/28/2003 6:58:29 PM
I'm trying to save a time (08:01 for example) to a Data/Time field (formatted Short Time) in an Access table using VB.NET. The problem is that even when I write this time to a dataset, it winds up saving as #08/28/2003 08:01 AM# in the database, where the date is today's date. In plain ol' VB...more >>

collections / OO approach on datasets
Posted by Christian H at 8/28/2003 3:56:37 PM
Hi! I was wondering if there is a "better" way to use dataset's instead of using "someset.Tables["sometable"].Rows[index][index]" in order to get the content out of the datatables. I think "collections" is what I'm looking for, though I'm really not sure. I have a dataset that has 8 tables ...more >>

Using ADO.NET to connect to a CSV File, Need Help
Posted by C Newby at 8/28/2003 3:26:05 PM
Using an ODBCConnection and ODBCDataAdapter object, I am able to connect to a CSV file. However, my data tables are all comeing back with the first line of the CSV file used as a column header line. How do i disable this? TIA// ...more >>

Why doesn't GetColumnError or GetColumnsInError return anything when the dataset HasErrors?
Posted by tim_frawley NO[at]SPAM fishgame.state.ak.us at 8/28/2003 10:34:16 AM
If I do the following code I get nothing returned. Dim i As Integer For i = 0 To ds.Tables(0).Columns.Count - 1 If ds.Tables(0).Rows(0).HasErrors Then MsgBox(ds.Tables(0).Rows(0).GetColumnError(i)) End If Next I get a message box for every column and message boxes are alwa...more >>

populate a treeview from a db
Posted by basmah3 NO[at]SPAM hotmail.com at 8/28/2003 10:21:11 AM
I'm trying to populate a treeview from a SQL tables in C#. i've written the SQL procedures (i.e. database wise is sorted). However, I would like to see an example of how to retrieve the data from the tables (recrusive method). I finally worked out how to retrieve the data. it was just a matter...more >>

HELP: Recordcount always -1 (using adOpenKeyset)
Posted by VB Programmer at 8/28/2003 9:58:20 AM
I cannot get my recordcount to show up properly (using ADO 2.5). It keeps showing -1! Here's a snippet: Dim dbMyDb As New ADODB.Connection Dim rsWebData As New ADODB.Recordset dbMyDb.Open gConnectionString rsWebData.Open "SELECT * FROM WebDataLogAc;", dbMyDb, adOpenKeyset...more >>

datagrid problem
Posted by John Wilson at 8/28/2003 7:54:20 AM
I have a sql string that I put through a connection object to fetch my data out of vfp tables using the oledb driver, and then bind it to a datagrid in vs.net 2003. The sql contains a left join between 2 numeric fields, and every time the table on the right side of it has no matching record for...more >>

Datagrid Navigation event again
Posted by Puspak at 8/28/2003 7:16:55 AM
Here is the scenario: I have a hierarchical data grid. I click on expansion sign on row (this row is not the currently selected row) and then navigate to show the detals of that row. Now is there a way to get the row on which I clicked to navigate to the child-rows?...more >>

OracleDataAdapter
Posted by Scott.Sosna NO[at]SPAM gmacrfc.com at 8/28/2003 5:08:06 AM
I am using OracleDataAdapter.FillSchema() to get the primary key information for the table used in the query string assigned to the command. If the table is referenced directly (such as SELECT * FROM SCHEMA.TABLE) I get the array of DataColumns in the primary key. If the table is referenced th...more >>

datatable doesn't see modified rows
Posted by Paul at 8/28/2003 3:51:38 AM
Hi, I'm binding a DataTable to several controls and everything seems to be reflected okay. When comes to updating the database, I'm calling DataTable's Select(string.Empty, string.Empty, DataViewRowState.ModifiedCurrent) and passing this DataRow[] into SqlDataAdapter's Update() method....more >>

SQLTransaction Commit method
Posted by Jay at 8/28/2003 1:02:39 AM
I'm currently debugging an application. Unfortunately, it is one of those problems that happens sporadically, and I haven't found a reliable way to reproduce it. The basic structure of my code is: try { // execute some update stored procedures sqlTransaction.Commit(); } catch ...more >>

OleDbDataAdapter from DataSet
Posted by Graeme Richardson at 8/27/2003 11:23:51 PM
Is it possible to get a handle on the OleDbDataAdapter that was used to populate a DataSet? Alternatively, is it possible to get the OleDbCommand and OleDbConnection used to populate a DataSet - I can use these to create a new DataAdapter and re-populate the DataSet. I can a handle to the DataT...more >>

SQL 2000 nasty or my silly mistake?
Posted by Esmond Hart at 8/27/2003 11:09:12 PM
I am using ADO.NET to create a gazetteer from use by a=20 team of botanists requiring to map species distributions=20 world wide. The intention is to place the common Atlas=20 database under MSDE 2000 on a server which will initially=20 be shared by a group on a LAN. We are using VB.NET 2003=20 ...more >>

sqldatareader and updates
Posted by Dune at 8/27/2003 9:07:51 PM
I'm a bit confused as to how the sqldatareader oughta be used... so far, I've just assumed that it was only used with SELECT statements and "Provides a means of reading a forward-only stream of rows from a SQL Server database." (from msdn) however, sqldatareader has a RecordsAffected p...more >>

SQL Server Security
Posted by Ed Crowley at 8/27/2003 4:20:16 PM
I have a client application written in VB.NET that I need to add security to. To take a simple example, say I have an Employee table, some stored procedures to read/write to and from this table and a class which uses these stored procedures to pass data to the application layer. What I need to ...more >>

ADO.NET security and threads
Posted by Bob Grommes at 8/27/2003 3:03:30 PM
Working with the 1.1 CLR and VS.NET 2003, I have two small console apps that are executed periodically by a scheduler. One uses ODBC to check a back-end for certain records and the other uses ODBC to update those same records. The ODBC driver I'm talking to is capable of locking up the process...more >>

User Access
Posted by Kartic at 8/27/2003 2:40:36 PM
Hi, I have created an application in vb.net using SQL Server 2000 database . What I want is to restrict users to access the application more than once,from the same computer or from any other computer. What is the best way doing it as database is disconnected. Currenty I am storing/flag the...more >>

OracleClient connection string problem in V1.1
Posted by John Colaizzi at 8/27/2003 2:00:46 PM
I've installed the V1.1 framework and things have stopped working. Basically I can no longer get a connection to our Oracle 8.1.7 server with the 8.1.7 client software installed. It all worked fine with V1.0. If I use the same connection string in V1.1 that worked in V1.0 strConn = "Data Sou...more >>

Multi Table Join and retrieving the DB-ORIGINAL table name...
Posted by mtatro NO[at]SPAM lgc.com at 8/27/2003 1:27:40 PM
I have a multi table join...i.e. string sql = "select customers.name, customers.id, address.street, address.city from customers, address where customers.id = address.id" then I execute the following code: Dataset ds = new DataSet(); System.Data.SqlClient.SqlDataAdapter dataAdapter = new...more >>

Connection pool timeout
Posted by John Rempel at 8/27/2003 1:22:40 PM
I have an ASP.NET application written in framework version 1.0.3705 and it's been running for over a year without issues. I just moved it to a new Windows Server 2003 machine with the 1.0 framework installed beside the default 1.1 and now I periodically get this message: Timeout expired. The...more >>

Data paging page without using Datagrid control
Posted by koda007 at 8/27/2003 11:58:06 AM
Hi I want to do a data paging page without using Datagrid control. Can someone help me to find properties in ADO.net which had in ADO to do this? I'm using SQL Server 2000. Regards, Koda ...more >>

Paging?
Posted by DaMan at 8/27/2003 11:05:24 AM
Ok.. I followed simple code example in MSDN for simple paging of a datagrid, but I get Error: AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid with ID DataGrid1 when AllowPaging is set to true and the selected datasource does not implement ICollection. Why,??? ...more >>

Off Topic: Does anyone use a better newsreader than Outlook Express?
Posted by Michael Lang at 8/27/2003 10:24:22 AM
I've been having trouble with outlook express (OE). I have been "caught up"... then post a new message... click on another group... read messages there for 5-10 minutes... then back on the group in question to trigger a download of headers... my message isn't there. And it never appears later...more >>

BUG?: DACW generates DBDate parameters instead of DBTimestamp for oledb DA.
Posted by François Rioux at 8/27/2003 9:49:57 AM
Hi, I'm using VSStudio.Net 2003 bound to an Access 2000 DB. Using the datasets and an oledb data adapter. Using the DACW, I generate a dataadapter select and insert,update,delete commands using the DACW. The Insert command parameter type for an Access Date/Time field is DBDate, which results...more >>

String Array Manipulation Problem
Posted by Garfield at 8/27/2003 9:33:29 AM
Hello I have a function that returns a string array. The string has a name = and an ID number, they are separated by a comma. I cannot for the life of me by using the string methods get to separate = the two items. Example. The string array looks like, the array is called Trainee :-=20 ...more >>


DevelopmentNow Blog