all groups > dotnet ado.net > january 2007 > threads for january 29 - 31, 2007
Filter by week: 1 2 3 4 5
Multiple table in dataset query
Posted by Microsoft at 1/31/2007 5:48:16 PM
Hi everyone,
Before I begin I should point out that I am quite new to programming and
VB.net and am using VS2003 with SQLExpress 2005.
I have two data tables a staff table and an office table, the linking field
is office_id. I have created a form and added a datagrid, when the form
loads... more >>
Writing data from a table to another
Posted by max at 1/31/2007 3:27:15 PM
Hello,
I'm working on an Access db in VS2005. I have a table, called tblPatients,
in which I have three columns: PatientID (primary key), PatientName and
DoctorName. This table is filled with more than 4.000 records. I load this
table on a form, I make queries, updates, deletion, it does w... more >>
Stored Proc results in DataGridView
Posted by BillyRogers at 1/31/2007 2:02:01 PM
I'm trying to get the results of a stored proc (with no input parameters)
into a datagridview. I'm able to get the results into a messagebox but i'm
nor sure how to get them into a DataGridView
Using cn As New SqlConnection(strConn)
Try
cn.Open()
Ca... more >>
Getting double count of updated records
Posted by David at 1/31/2007 12:36:28 PM
I have an SQL statement that uses the Command method ExecuteNonQuery and it
is returning twice the number of rows (24) actually updated. When I run the
same statement using SQL SELECT I get 12 rows. Below is my ASP.NET SQL
code:
strSQL = "UPDATE File_Mst" & _
" SET CheckedOut = 12345" ... more >>
Do I need a DataRelation?
Posted by hawbsys at 1/31/2007 11:05:04 AM
Dear all. I'm wondering why it's so hard to bind a lookup value from
a
related table into a textbox on my form.
Say I've got two tables, product and productcategory. I'm paging
through product information using the bindingnavigator, one product
per page. Everything on the form is bound to fie... more >>
How to update a dataset table row I have previously added ?
Posted by Bishman at 1/31/2007 10:41:10 AM
Hi,
C# App. VS2005
I have a detail table ordered descending on a field called DetailRowID
ie
ArrayIndex Detail RowID
0 3
1 2
2 1
I add a new row but it goes to the end of the dataset so does not
ArrayIndex ... more >>
One DataTable class in two datasets - design-time support
Posted by Jiøí Neu¾il at 1/31/2007 10:11:29 AM
Hi, I created two datasets in dataset designer in VS 2005. Both of them
contain the same datatable. I think, having two classes for one DB datatable
is stupid and badly maintaining. So I need manually add DataTable class from
first dataset to second. So I modified designer.cs of second dataset... more >>
VB.NET Master Detail DataGridView Control
Posted by Adnan Abbasi via DotNetMonster.com at 1/31/2007 9:19:16 AM
Hi,
I m a newbie to VB.NET. So, i have problem in doing some tasks like
Master/Detail working with DATAGRID VIEW object along with BindNavigator.
How can i implement Master / Detail that work with the BindingNavigator?
Your advice will be highly appreciated.
Adnan A.
--
Message poste... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
run commands before SqlDataSource select?
Posted by Sergei Shelukhin at 1/31/2007 7:10:25 AM
Hi. Is there any way to run sql commands on the same connection that
SqlDataSource uses to select data before the select? Apaprt from
trying to build a multi-command CommandText.
Overriding the class would be ok but I can't find the way to do it
... more >>
New row not shown in Access after INSERT
Posted by CZuhars at 1/30/2007 6:20:06 PM
Hi,
My .NET application writes to an Access 2003 db through OleDb. I'm
using a stored query in Access to insert a new row. The app's C# code
sample includes:
myCommand.CommandType = CommandType.StoreQuery;
myCommand.CommandText = "InsertName";
myCommand.Parameters.AddWithValue("@FIRST... more >>
DB connection problem in setup for Microsoft Course 2524
Posted by michael sorens at 1/30/2007 4:37:00 PM
I am working through the manual for course 2524 (Developing XML web services
using ASP.NET). It is at least 4 years old so hopeless outdated (:-) but I
think I can salvage it to still be useful. I actually tried this with just
the express editions of visual web developer, C#, and sql server 20... more >>
DataAdapter with Transaction (.net 1.1)
Posted by prof_martin at 1/30/2007 4:19:01 PM
Hi All,
I created the following code, it is working, simple update of DataTable,
populating data to datatable/dataset is outside/before.
Problem: when I tried to use the transaction it doesn't.
It prompt error message "Execute requires the command to have a transaction
object when the c... more >>
ADO .NET 1.1 issue with stored proc params missing but only if culture is Turkish.
Posted by gcxmuirhead NO[at]SPAM gmail.com at 1/30/2007 1:33:02 PM
I have an application that is localized into a number of cultures
(Turkish is one) and a number of stored proc calls are failling when
the site is run in Turkish but not in any other language, but not all
procs fail. I am using framework 1.1, standard datasets and table
using SQLDataAdapter ... more >>
How to use DataGridView in VBExpress and SQL Server 2000
Posted by BillyRogers at 1/30/2007 12:54:00 PM
I'm using VBExpress and SQL Server 2000 which means that I can't use the
wizards/database explorer to do this stuff. It has to be done in code.
I've figured out how to connect to the database and execute a query, but so
for I've Only been able to put the results into a messagebox. I want to... more >>
Custom ADO.NET Provider, question about DbCommand.ExecuteReader
Posted by Jed Ozone at 1/30/2007 9:54:14 AM
I'm converting over a ADO.NET provider I wrote in 1.1 .NET to 2.0. I don't
understand why the DbCommand.ExecuteReader methods (it's overloaded) is not
virtual or abstract. This method would most likely need to be modified by
any class inheriting DbCommand. On the other hand, DbCommand.ExecuteS... more >>
Implementing SELECT DISTINCT with DataTable.Select method
Posted by Andrea Caldarone at 1/30/2007 9:40:35 AM
Hi all,
I've a standard DataTable, is there a way to get an array of value like that
one I obtain in SQL Server suppying the SELECT DISTINCT [field] statement?
Have I to loop trough the datatable to build the array or is there a simpler
way?
... more >>
How to find out records number affected?
Posted by Ivan Abramov at 1/30/2007 1:34:00 AM
Which was updated by the sql UPDATE instruction.
Is there some objects returning the number
or I have to do explicit SELECT nevertheless?
Thanks in advance.... more >>
Setting Command Timeout globally in Asp.Net / windows applications...
Posted by tom.herz NO[at]SPAM gmail.com at 1/29/2007 6:10:39 PM
Hi,
I've been tasked with the following:
We need to add elements to app.config and web.config to be able to
specify the CommandTimeout for SQL Commands. Since there is no option
in the connection string to set this property globally, this means
that every time we execute an SQL command ... more >>
loadOption.upsert
Posted by Carly at 1/29/2007 3:19:15 PM
Hello,
Can somebody explain to me in plain language what is the meaning of
each value in the LoadOption enumeration?
Or some clear articles about DataTable.Load and DataRowVersion.
Thanks,
Carly
... more >>
Joining oracle and SQL Server data
Posted by Joel Zinn at 1/29/2007 1:56:38 PM
I am working on a project where we need to join data from a SQL Server db
with data from Oracle. I have searched and have not found any good method
to accomplish this.
Here is what I have to work with:
User table in SQL Server with Names, addresses, etc. The key is UserID
Asset table i... more >>
STRANGE PROBLEM
Posted by at 1/29/2007 1:04:27 PM
Im getting that error (It is strange. I Run my programme step by step
pressing f11. im looping SqlCommand in a while loop. The First step runs but
when a enter 2nd step in my loop it returns error ? )
any idea ?
System.Data.SqlClient.SqlException: Procedure or function sp_adduser has
too ... more >>
Concurreny violation on delete in dataset
Posted by Flomo Togba Kwele at 1/29/2007 12:57:40 PM
I received the following error:
Concurrency violation: the DeleteCommand affected 0 of the expected 1
records.
on the Update method of the adapter below:
Me.ClientBindingSource.RemoveCurrent()
Me.Validate()
Me.ClientBindingSource.EndEdit()
Try
Me.client... more >>
Constraint error on fill of dataset
Posted by Flomo Togba Kwele at 1/29/2007 12:09:42 PM
I've defined a dataset containing 3 tables via the DataSource
Configuration Wizard.
In the UserControl.Load event, I place:
Try
clientAdapter.Fill(DsClient.Client)
personAdapter.Fill(DsClient.Person)
addressAdapter.Fill(DsClient.Address)
Catch
... more >>
Close not closing...
Posted by theinvisibleGhost at 1/29/2007 9:25:02 AM
I've written a small app which has 2 buttons.
The 1st button goes away to a directory full of SQL Scripts, and then
runs them against the database.
The 2nd button has code to do some modifications to the database,
looking like the code below:
______________________________________________... more >>
SQL Server dataset read from database A and write to database B
Posted by RWC at 1/29/2007 8:24:35 AM
Hello,
What I want I fairly simple (I guess), but I can't work it out.
In one application I export data from a SQL Server database to an XML
file. I have used the DataSet.WriteXML method to do this. My XML file
looks like this (simplified):
<?xml version="1.0" standalone="yes"?>
<broke... more >>
DataGridView for several tabels in a DataSet
Posted by atally12 NO[at]SPAM hotmail.com at 1/29/2007 7:19:59 AM
I have a DataSet with two tables in it, with a relation between them.
I fill the tables with records programmatically with these commands:
System.Data.DataRow newRow = myTable.NewRow();
//give values to each column in the row
myTable.Rows.Add(newRow);
I want to create a DataGridView that is bo... more >>
Problem with ODP.NET on Windows 2000
Posted by tal.brown NO[at]SPAM gmail.com at 1/29/2007 12:49:08 AM
Hi,
I wrote a simple application that opens and closes connections to an
Oracle DB using the standard ODP.NET API. The ODP version is
2.102.2.20 and the DB version is 9.2.0.7
This application works fine on Windows XP, but when running on Windows
2000 (SP4) it takes about and hour and fin... more >>
|