all groups > dotnet ado.net > october 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
Updating an empty databound multiline textbox
Posted by Joshua Ellul at 10/31/2003 10:00:26 PM
Hi There,
I have databound a multiline textbox to a memo field in an access database.
When the multiline textbox's value is nullstring ("") the Update command of
the associated Adapter fails. (The field that the multiline textbox is
databound to allows Null values).
Any ideas? Perhaps a b... more >>
DataSet from/to CSV
Posted by Ondrej Sevecek at 10/31/2003 7:25:17 PM
Hello,
is there any method to load DataSet from CSV file and on the other side to
place them to the file or some string?
Ondra.
... more >>
DataView Columns
Posted by Karl Napp at 10/31/2003 6:40:33 PM
Hi NG,
how to make a DataView show only selected COLUMNS?
E.g:
DataTable table // is already in memory and has two columns: "id" and
"value"
DataView view // should only show all rows from "value"
TIA,
KN
x-post & f'up to .adonet
... more >>
adding data row
Posted by RickN at 10/31/2003 5:15:01 PM
I have a dataset with a datatable that has an identity column. There are no
relationships.
I'm trying to directly add a datarow to the datatable using existing data
from the database, including a value for the identity column. It won't let
me because it says the indexer is read only.
What... more >>
ASP page to show different schedule on each day
Posted by Matthew Louden at 10/31/2003 3:12:09 PM
I want to create ASP page that shows the schedule of TV station. Since each
day's (Monday - Sunday) schedule is different, and I want each day will
display the schedule on that day of a week. I wonder if I need to create 7
different ASP pages and call different one on each day?
This is just my i... more >>
Filter records in a form...
Posted by Jan Nielsen at 10/31/2003 3:00:31 PM
Hi
I have a databound form with "person data" (ie first name, surname, gender)
that is bound to a dataset.
I would like to filter the form so it only shows persons with gender =
"Boy".
I have tried to edit the sqlDataAdapter.Selectcommand.commandtext and then
use sqlDataadapter.Fill(MyOriginal... more >>
Inserting image into Access
Posted by apemen at 10/31/2003 2:52:26 PM
Hi,
I tried to insert an Image object, like I insert a text or numereic
value,into a column of type OLE Object,but it received an error message.
Do I need to do extra work to insert an image to OLE Object column?
Thank you.
... more >>
SQL query error
Posted by Eva at 10/31/2003 2:37:10 PM
Hi,
I am trying to add a OleDataAdapter to my form so i can
connect my datagrid to my access XP database. When i am
propted in the configuration stage to enter a sql query,
i use the query builder to create the following query:
SELECT [Caravan details].Beds, [Caravan details].[Caravan
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Mysterious behavior of RowState
Posted by Matt Burland at 10/31/2003 1:41:51 PM
Hi,
I have a form with many controls on it that is bound to a dataset containing
several related tables. The form will display data from one DataRow of a
main table as well as related data from a number of child tables (with 1 to
1 relations). Now I have several problems with the way this thin... more >>
datagrid column bind to a description column of a joined table
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 10/31/2003 1:28:22 PM
I have a SqlDataAdapter that queries the main table
tblTime and joining it with another table tblStaff just to
get a description
column "StaffName" from table. I
Select tblTime.StaffID, tblTime.TimeSpent,
tblStaff.StaffName
FROM tblTime INNER JOIN tblStaff ON tblTime.StaffID =
tblSt... more >>
ADO.NET infomessage event not firing when connection is broken
Posted by itp NO[at]SPAM techie.com at 10/31/2003 12:58:02 PM
Hello,
I have looked at several ADO.NET resources and they all
say to use the infomessage event handler. I have added the
code to my form but when I disconnect the network cable,
it does not fire.
I have also read that infomessage is for server error
messages below 10. I have tested t... more >>
SQL query help
Posted by Eva at 10/31/2003 12:45:51 PM
Hi,
Im new to Vb.net and am trying to create my first
practice project. The problem iv encountered is to do
with SQL queries issued against my access DB iv created.
i want to wright a query that will pull all the caravan
details that are available at a partuclar date which will
be enter... more >>
date intervals
Posted by Angelina at 10/31/2003 12:39:28 PM
Hi
I have got 2 dates that need to be stored on my access
database. arrival_date and departure_date. these values
are entered by a user who is making a room booking. What
i wanted to know is if there is a function in vb.net that
recognises this as an interval and therefore stops
booking... more >>
Access Linked table creation
Posted by brendan walsh at 10/31/2003 12:34:46 PM
I'm using vb.net and actually am using ADOX 2.7 so I can
create an empty access db (working fine) then create
linked tables. I "thought" i did this before and found
references to this working but it barks and says the
properties are read only. is there a problem with the
following? How ... more >>
DataView.Sort (repost)
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 10/31/2003 11:20:26 AM
I am trying to sort a datatable, and return the sorted
results. Not working with a datagrid, or ASP.NET. Cannot
do the sort on the database.
DataView dv = existing table view
dv.sort = "EVENT_DATE DESC"
DataTable NewTable = new DataTable();
foreach (DataRowView drv in dv)
{
DataR... more >>
Exchange / Outlook Public Folder access in vb.net
Posted by Chris Thunell at 10/31/2003 11:08:52 AM
Help!
We keep all our contacts in a public folder called "Company Contacts", I am
writing a windows forms vb.net application, where i would like to find a
contact from that public folder, and get some information from it like,
"Full Name", "Business Fax" etc etc.
Right now i have an Outlook... more >>
Master-Detail with many-to-many relationship
Posted by Darwin S. at 10/31/2003 10:10:41 AM
I am trying to set up a master-detail relationship
between two grids. I have two problems:
1) The DataTables that are the sources for each grid have
a many-to-many relationship, meaning there is a cross-
reference table between them.
2) The DataTable for the detail grid refences a DataTable ... more >>
Stored Proc Time out
Posted by Srimar at 10/31/2003 9:58:42 AM
Hello,
I am having this strange time out issue with some of our stored procs. We
have an SQL server on which we run our databases. Some times all of a sudden
a stored proc that is running fine from ASP.NET will start timing out. The
same query will run fine in the query anlyzer.
Initially w... more >>
ASP vs ASP.NET
Posted by Petr Komarek at 10/31/2003 9:31:26 AM
All,
we are developing ASP pages using middle tier COMs written in VB and using
ADO. It is quite huge application and we are considering development of new
functionality in .NET. It means that the existing code (using COM and ADO)
will be executed side by side with new ".NET" code (using ADO.N... more >>
how to use file udl in .NET
Posted by Tom at 10/31/2003 7:56:59 AM
I've got some file UDL's I use with my current 6.0 apps.
I want to use them with .NET, but I can't get the
connection right. Basically, I'm doing this (C#):
strConnect = "File Name=" + HttpRuntime.AppDomainAppPath
OdbcConnection con1 = new OdbcConnection();
con1.ConnectionString = strConn... more >>
Fastest way to load new table from dataset
Posted by Chuck at 10/31/2003 7:47:41 AM
On a pocketpc 02 with sqlce
I get a dataset with 30,000 records from a webservice
I then load this dataset into a empty table that has no
indexes or constraints. The load takes 50 minutes, which
is about 49 minutes to long. Is there a faster way to do
this?
Dim cmd As New SqlCeCommand
... more >>
problem with dataset constraints
Posted by shiv at 10/31/2003 7:01:47 AM
Hi all,
I have two master/child tables
master: DEPT - PK deptid
child: EMP - PK empid ,FK (DEPT.deptid)
when i fill a dataset with the records of these two tables
Dataset ds=new Dataset();
DataAdapter.Fill(ds,"DEPT");
DataAdapter.Fill(ds,"EMP");
and add constraints to it
DataColumn[... more >>
Need help with correct syntax to search a child table in ADO.net .
Posted by Gordo at 10/31/2003 6:53:31 AM
Hi;
I am try to select only child rows of data from two
related dataset data tables. I am using
the "table.select" method.
Here is an example of the code :
Dim holdstr As String =
MonthCalendar1.SelectionEnd.ToShortDateString
For Each rowCase In dsCases.Tables("dtCases").Ro... more >>
Urgent No Data
Posted by Sundeep at 10/31/2003 6:16:37 AM
Dear all, i am using the following code to get data from
Oracle. Sometime it returns 0 record but if i reduce the
number of columns or reduce the size of columns in query,
i get all the records. ANy Pointers?
DataSet dsTmp = new DataSet();
OracleDataAdapter daOracle = new OracleDataAdapter... more >>
output parameter syntax
Posted by ChrisB at 10/31/2003 6:03:53 AM
Hello:
I am trying to use an output parameter with the data access application
block and seem to be running into some difficulties. Specifically, I am
receiving the error message: "Object reference not set to a reference of an
object" when I attempt to access the parameter value.
Component ... more >>
Passing data between tiers
Posted by ken hughes at 10/31/2003 6:00:48 AM
Hi,
I'm trying to pass data between the Data Access Layer and
the Business Process Layer of my app....
Is the best way to do this...
DAL
public function SavePerson(byval ds as dataSet) as boolean
.... code in here
end function
public function LoadPerson(byval ID as integer) as Datas... more >>
connection pooling vs session state
Posted by roger at 10/31/2003 3:26:47 AM
Using System.Data.OracleClient in .NET 1.1 framework...
If I'm reading the OracleConnection docs right, it indicates
that if I do this:
using (OracleConnection con = new OracleConnection(dsnstring)) {
...
}
then although it appears that I'm destroying the connection
each time, ... more >>
post changes to dataset with code
Posted by Osmosis at 10/30/2003 8:26:22 PM
I have a truedbgrid with AllowAddNew = False
The changes I make to a record are only submitted after I move to another
record.
This could pose problems if there is only one record in the table (because
then you can't change the cursor)
How can I take care of this programmatically ? I want ... more >>
How to pass special characters in Update stmt!!
Posted by Jay at 10/30/2003 5:28:01 PM
Hello,
I need to use Update Sql stmt from my page.
Some of the field values has apostrophes and and quotes.
How do I make ado.net ignore those characters?
Eg-
UPDATE ROOM SET HEIGHT='3' - 5"' WHERE RMNU='100'
Iam using c#.
Thanks.
Jay
... more >>
Changing columns content before binding to windows control
Posted by tlarson29 NO[at]SPAM hotmail.com at 10/30/2003 5:19:29 PM
Hello all,
I have created a dataset with a datatable in it. A dataadapter fills
the datatable with username, password, first name, etc.... Then I put
the datatable in the dataset. The password is encrypted before it is
saved to the db. So when the datatable is filled with the password
col... more >>
Visual Studio, ADO.NET and DNA Architecture
Posted by Jerry at 10/30/2003 2:56:56 PM
Has anyone read any articles which discuss DNA Architecture and the use of
Visual Studio to create database applications?
We talk about Data Access layers, Business layers and Presentations layers
being different programs and then focus our development on using Visual
Studio to create Connection... more >>
Prevent adding/deleting rows in an editable DataGrid
Posted by Philip J. Fry at 10/30/2003 2:35:55 PM
Hi All!
Does anyone know how to disable adding/deleting rows in a
DataGrid whose cells could be edited?
Many thanks,
Phil... more >>
Clone/compare a DataReader?
Posted by VB Programmer at 10/30/2003 1:57:32 PM
I have a datareader that I am using in my VB.NET code. I loop through it
once "processing" each row.
On the 2nd "pass" I want to get the newest data in the database (stored into
a 2nd datareader) and compare each record (compare dr1 and dr2) to see what
has changed. If a row remains the same... more >>
Optional Parameters
Posted by Biser at 10/30/2003 1:14:27 PM
Hello!
I have a question about treathment of optional parameters of Stored
Procedures in ADO.Net
If I have the following SP (on SQL Server 7.0 DB):
CREATE PROCEDURE dbo.test_sp
@first_param int = NULL,
@second_param int OUTPUT,
@third_param int
AS
BEGIN
RETURN 1
END
How c... more >>
Problems doing an insert
Posted by Dan Keeley at 10/30/2003 12:38:46 PM
Hi All, I posted this m.p.d.l.vb but someone suggested I post here, so here
goes.
I've shortened it down to this simple example: I'm getting an error message
saying "Input string was not in a correct format"
I hope someone can help or spot the obvious mistake maybe?
I also wonder if ther... more >>
Call vb.net from SQL Server
Posted by Dave T at 10/30/2003 10:31:33 AM
Does anyone know how (or if it's possible) to call a
vb.net routine from, say, a stored procedure, in SQL
Server 2000?
Thanks!... more >>
How do I Concatinate two fields using databinding in Win Forms?
Posted by Craig at 10/30/2003 9:54:30 AM
I have a data adapter that I created in a Win forms application. I used
the "data adapter configuration wizard" to create the stored procedures in
the database (SQL server 7). I can bind the data to a combo box and it
works fine when I'm displaying only one field.
What I need to do is... more >>
DataSet Question
Posted by Larson at 10/30/2003 9:26:45 AM
I have a large dataset that I want to be able to retrieve a datatable
(product codes) from my dataset which has duplicates. I want to be able to
select the unique product codes and put into a new dataset which i need to
use to bind to a combobox. How can I accomplish this?
Thanks
... more >>
copying a datatable content from an untyped dataset into a table which is inside a typed dataset
Posted by Nedu N at 10/30/2003 9:13:21 AM
Hi Techies,
I am facing problem in copying content of table from a untyped dataset into
to a table inside the typed dataset. I wanted to copy the data into typed
dataset in order to ease the further processing using typed references.
DataSet ds = getDataFromDB(); - i am getting the datase... more >>
Trying to Update ONE record Updates TWO????
Posted by Aaron Ackerman at 10/30/2003 8:47:28 AM
I am attempting a very straight forward Update on a dataset. I have a
WinForms N-Tier app
using VB.NET.
Visual DataAdapters, typed Datasets.
Me.txtHomePhone.DataBindings.Clear()
Me.txtWorkPhone.DataBindings.Clear()
Me.txtPostalCode.DataBindings.Clear()
'New fie... more >>
ARGH! - SQL Debugging in the IDE
Posted by googlenews NO[at]SPAM hotmail.com at 10/30/2003 8:46:53 AM
I am trying to get SQL Debugging working in VS.NET 2003 so that I can
step into stored procedures. I have gotten this to work in the past on
another machine, but I am not having luck with this one yet.
* Windows XP Pro
* VS.NET 2003
* SQL Server 2000 SP3a and most recent patch
* Query Analyz... more >>
Retrieving column datatypes
Posted by Paul K at 10/30/2003 8:13:16 AM
I am currently trying to find a way to retrieve column
datatypes for use in a managed component. I have looked
at using the OleDbConnection.GetOleDbSchemaTable method
and the OleDbDataReader.GetSchemaTable method.
The OleDbDataReader.GetSchemaTable method provides the
information I need,... more >>
How do you update a disconnected dataset
Posted by fogger00 NO[at]SPAM hotmail.com at 10/30/2003 7:38:03 AM
I'm new to ADO.NET, and trying to understand...
Say you have a disconnected DataSet generated by "SELECT * FROM
MyTable WHERE ID = 1". The DataSet is edited and passed back into a
data component for update. For instance:
Persistence.Store(myDataSet);
Assuming Persistence.Store knows the... more >>
RTrim and UPDATE, DELETE problem
Posted by lado at 10/30/2003 6:17:01 AM
Hello,
I have an Access table called Products which
contains text field Description.
When I use Data Adapter Configuration Wizard to generate
the SQL statements for that table it says that it couldn't
generate UPDATE and DELETE statements.
The following is a code snippet for SELECT statemen... more >>
OLEDB Date and JET 4.0 Bug?
Posted by Phil Cox at 10/30/2003 2:39:55 AM
Hi All,
Wondering if anyone else had encountered this problem. As
an English based country our date format is dd-mm-yyyy
format. This has always been a bit of an issue with Jet as
natively it expects mm-dd-yyyy. However, I have struck a
problem with the OLEDBPRovider in .net 2003 whereby I ... more >>
INNER JOIN with ADO.NET
Posted by serge calderara at 10/30/2003 1:46:11 AM
Dear all,
I am using an access 2000 database in my application and
VB.net.
I am able to handle simple querry on a unique table
without any troubles.
Now comes the fact that I need to execute a querry in
order to retrive information from an other table.
this works fine when I execute th... more >>
Copying the content of a DataTable
Posted by Bruce Schechter at 10/30/2003 12:11:17 AM
I fear that I am asking a very elementary question, but never-the-less I
need help so here goes...
I need to simply copy the contents of one DataTable into another DataTable.
My application looks something like this....
DataTable dt1, dt2;
dt1 = new DataTable();
// Read dt1 from database
... more >>
HasChanges doesn't get "set"
Posted by Shanon Swafford at 10/29/2003 11:18:23 PM
I am having problems with the HasChanges() method.
Here's what I have:
1. Access Database with Suppliers and Suppliers_Plants tables.
2. One ComboBox (bound on the Suppliers key) and multiple TextBoxes bound
the Suppliers table fields. This is DataSet41 and I can't seem to see if
there w... more >>
baffled combobox.text setting
Posted by karl at 10/29/2003 11:15:54 PM
Hi
I'm trying to set the text value of a combobox when I navigate to a new
record using
me.cboCombobox.text=""
however it will not reset,
I can step through the code and see the line execute, and check it in the
immediate window, it still retains the value of the last record it was on,
if... more >>
executeReader and executeNonQuery
Posted by Benny Chow at 10/29/2003 10:52:24 PM
Hello all,
I have a sql string that including both insert and select, for example:
sql = " INSERT INTO table1 (id, name) VALUES ('100', 'hello world') ";
sql += " SELECT MAX(id) FROM table1 ";
I want to execute these two sql statement in one execution, so i decided
to use executeReader. ... more >>
|