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 > october 2003 > threads for tuesday october 28

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

cannot get the SqlDataReader object field value
Posted by Matt at 10/28/2003 10:16:42 PM
I just want to get the value of field UserName and Password in SqlDataReader object dr. But it yeields run-time error "Invalid attempt to read when no data is present" on line dr("UserName") and dr("Password") any ideas?? Dim sql As String = "select * from [Admin] where UserName = '" & Text...more >>


Can't edit a field in a dataset
Posted by Don at 10/28/2003 10:13:09 PM
I've created a dataset from a query that returns a column from an amalgamation of fields in the database. e.g. SELECT [FirstName] & ' ' & [LastName] AS [FullName] FROM [tblPeople] However, when I try to modify the value of this column ([FullName], in the example), I get an error saying it's ...more >>

Adding Parameters to SQLCommand in .NET
Posted by pittmichael NO[at]SPAM hotmail.com at 10/28/2003 9:24:39 PM
I have many pages in my ASP.NET (VB) which use the SQL command to call Stored Procedures. They create the parameters and set their value using the following syntax cmd.parameters.add("@ParameterName", value) One page though crashes because the parameters have not been set up, their va...more >>

Does Sort Property Work with non-Primary Keys?
Posted by Daryll Shatz at 10/28/2003 5:53:41 PM
Does the dataview.sort property work with any column in the table or just the primary key columns? When I try to set the sort property to a column that is not a primary key, it is ignored. Do I need to create an index or something first on the columns I want to sort (I am setting the sort pro...more >>

Does Dataset.Tbl.Clear() clear all tables or One?
Posted by Daryll Shatz at 10/28/2003 5:44:59 PM
Does a clear command (ie: DataSet11.TableName.Clear() ) clear just the named table or all the tables in the set? It appears to be all? How can I clear, in order to fill, a specific table in a dataset of many tables? Thanks ...more >>

Create New DataTable From DataView
Posted by Axe at 10/28/2003 4:38:02 PM
I have a DataView but now I need a DataTable to pass into several routines I've created. Can I make a DataTable from a DataView? The DataView is now sorted and cleaned up and I don't want to reference the original table the DataView came from. Axe ...more >>

Creating a subset table/view
Posted by Sabine at 10/28/2003 3:37:59 PM
How can I crate a subset table or view from a table? I only want certain columns and all the rows? I do NOT want to loop through the rows and add those to my new table or view. I just want to specify a couple of columns and retrieve a subset table or view. Someone has an idea? Thanks, ...more >>

CAN ANYBODY HELP?!
Posted by Sergey Ivasenko at 10/28/2003 2:58:52 PM
Could anyone help me with the following problem! I open an SqlConnection. Then: 1. execute a reader on SqlCommand and get data through that reader; 2. in a certain time I call Cancel() method on SqlCommand and SqlDataReader.Close(). If I perform steps 1 and 2 several times (sometimes it ha...more >>



Access Related Query
Posted by Kishor at 10/28/2003 2:27:42 PM
Hi, I am using Access as a backend to my project. From my front end I am issuing the queries, however I am finding it is too much slow. I wanted to execute multiple sql statement. My question here is how to execute these multiple statement?. Is it possible in acess 2000. can I have your sugge...more >>

Connection Pool error.
Posted by Kevin Burton at 10/28/2003 2:09:51 PM
I am getting the following SQL exception: Error: ReadSessionData: Error 1 - Type: System.Data.SqlClient.SqlException Source: .Net SqlClient Data Provider Target Site: System.Data.SqlClient.SqlInternalConnection GetConnection(Boolean ByRef) Description: General network error. Check your ne...more >>

MSDE install -- help!
Posted by David at 10/28/2003 1:28:03 PM
I have downloaded the latest edition of MSDE and am trying to install it on my machine to work with Visual Studio .NET 2003. I ran the install program exactly as Microsoft specified, using the command: setup.exe /qb INSTANCENAME=VSDOTNET DISABLENETWORKPROTOCOLS=1 SAPWD="mypass" The ins...more >>

Odd ExecuteReader Error
Posted by jdrewes NO[at]SPAM hotmail.com at 10/28/2003 12:18:38 PM
Finally run out of ideas on this one.... Just to get it outta the way, the environment: 2 NLB Web servers (each Win2003, IIS6, 2G memory, 2 physical/4 logical CPU, 2 NICs, Unicast) 1 DB Server (Win2K, SQL2K, 2G memory, 2 physical/logical.. no hyperthreading) I'm periodically getting a "Tim...more >>

Active Directory Related Question.
Posted by Arvind P Rangan at 10/28/2003 11:18:11 AM
Hi, I like to know if there is any way we can use SQL Query syntax for getting values out of ADS. If there is any method pls let me know with example. Thanks Regards ARvind Rangan ...more >>

Can't add data to DataSet from non-creating thread?
Posted by John at 10/28/2003 11:06:29 AM
Hi, My app receives data via an async socket. I need to put this data into a DataSet and display it via a DataGrid. If I add the data to the dataset when it arrives using the async created thread, my app crashes with a NullException inside Application.Run(). If I disconnect the DataSet fr...more >>

newbie transaction question
Posted by ChrisB at 10/28/2003 10:24:38 AM
Hello All: I am attempting to execute two statements as part of a single transaction using the Microsoft data access application block. The code, which is similar to what follows, returns this message when it attempts to execute the second "SqlHelper.ExecuteReader" statement: "The SqlCommand...more >>

Porting a data layer from SQL to OleDb/Access
Posted by jeffyjones NO[at]SPAM hotmail.com at 10/28/2003 9:07:54 AM
I'm quaking at the thought of doing this (it's against my will!), but are there any significant "gotchas" porting a data layer from the SqlClient to the OleDb classes for use with Access? I've got straight-forward SQL for all of the commandtext, generally with parameters for every query. Does Ac...more >>

DataBinding Question
Posted by Jake at 10/28/2003 7:50:17 AM
Hi, Right now in my app I am using databinding for some of my combo boxes. I only uses databinding to display the data to the user. Here is my question. Since, databinding keeps the dataset in memory is it better just to loop through the dataset table and add each item? Or should I create a...more >>

HOWTO: Insert New Row
Posted by Greif at 10/28/2003 6:48:56 AM
I want to write a funciton that has 2 parameters(string tableName and IDbDataParameter[] params). I can't seem to figure out how to create a new record using a combination of a Dataset/DataTable/DataRow. Or is there a better way to insert rows? ...more >>

MDAC and .NET framework
Posted by Alex K at 10/28/2003 6:38:11 AM
Hello all. I have a set up question. Here it is: I wrote ASP.NET application that uses ADO.NET (everything is managed code). Now I am going to deploy this app to my web server. I installed .NET Framework 1.1 Question: Do I need to install MDAC2.7 on my web server for ADO.NET to work? Thanks. ...more >>

Binding data from DataReader to DataGrid
Posted by Makarand at 10/28/2003 5:21:20 AM
Hi I have used SQLDataReader for fetching data(due to performance issue) and now I want to bind this data to DataGrid, How should I do this? Sample code is most welcomed :) Makarand ...more >>

Does WinForm UserControl inherit BindingContext of owner?
Posted by David Adams at 10/28/2003 2:23:56 AM
Hi, Does a usercontrol placed on a form automatically inherit or acquire the parent forms' BindingContext? Thanks, Dave ...more >>

comparison error
Posted by John at 10/28/2003 12:34:13 AM
Hi I am getting the 'Operator is not valid for type 'DBNull' and string "".' error on the following line; If (mydatatable.Rows.Item(I).Item("Forenames") Is System.DBNull.Value) Then ' 'I' is the loop variable from 0 To mydatatable.Rows.Count - 1. Any ideas on what is the reason for this ...more >>

Extract images from sql server
Posted by Filip De Backer at 10/28/2003 12:12:24 AM
Hi, I've got a column in a table which contains images (bmp and jpg, i guess sql server don't convent the jpg to bmp??). How can I extract these images from the table. I've tried something with a MemoryStream, but I don't know how to save it to a file because this stream is a byte arr...more >>


DevelopmentNow Blog