all groups > dotnet ado.net > september 2003 > threads for wednesday september 10
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
Dataset drag n drop declaration
Posted by Jeff Brown at 9/10/2003 11:04:49 PM
OK i removed all of my datasets to start fromo scratch again with another
method.
Is there a way i can create all my datasets in the MDI Parent form and
reference them from child forms
*******************
for instance i just created dsName1 in the MDi Parent and the dsName.xsd was
created in... more >>
DataAdapter and Update command
Posted by Julia Sats at 9/10/2003 9:59:07 PM
Hi,
This is code from MSDN help (OracleDataAdapter.UpdateCommand Property)
' Create the UpdateCommand.
cmd = New OracleCommand("UPDATE Dept SET DeptNo = pDeptNo, DName = pDName
" & _
"WHERE DeptNo = poldDeptNo", conn)
cmd.Parameters.Add("pDeptNo", OracleType.Nu... more >>
Dataset Question? Please Help
Posted by Jeff Brown at 9/10/2003 5:32:33 PM
I have a MDI Program and several child windows.
On one child window a dataset is loaded with trailer_Num & Trailer_ID only
On another the dataset is loaded with trailer_Num, Trailer_Location and
several other fields.
My Datasets have been declared in each child Window, but when i change
win... more >>
Reset AutoIncrement value
Posted by Srikanth at 9/10/2003 4:54:13 PM
Hi,
I have a DataTable with some rows and bind to a DataGrid. The first
column in the DataTable is an AutoIncrement value. I am clearing the rows in
the DataTable by calling DataTable.Clear(). After this I want new rows in
the DataGrid to start with AutoIncrement value of '1' instead of con... more >>
insert record..
Posted by yyt at 9/10/2003 4:08:36 PM
Hi
I read through quite a few news postings and articles related to the
Concurrency issues in ado.net. .. But didn't get the concept and hence has
not solved my problem.
I have a asp.net app. where user submits a form to the database. The
asp.net appl. calls a SQL2K stored procedure to per... more >>
Java and ASP.NET Web-Service
Posted by B. Voronkov at 9/10/2003 3:38:41 PM
Îáû÷íàÿ ÏîäïèñüDo i have a possibility to work with ASP.NET Web-Service in
the client, written in Java?
... more >>
Checkbox in Datagrid
Posted by Simon at 9/10/2003 3:21:59 PM
Hi Guys,
I'm trying to use a checkbox control in a datagrid. The
objective is to display readonly Customers from a
database, then allow a user to select customers with the
checkbox. Then, iterate through the dataset extracting
the primary key fields and submitting them to a stored
pro... more >>
Assign new stored procedure to data adapter
Posted by Patrick Frutiger at 9/10/2003 3:20:52 PM
Hi NG,
can I assign another stored procedure as select statement to a data adapter
during runtime ?
thanxx for answer
P@rick
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Stored Procedure Returns Same Value Using ExecuteScalar and Sql Server
Posted by mike NO[at]SPAM ovidinc.com at 9/10/2003 3:15:52 PM
When running the sp from Query Analyzer, or even firing it from the
command window in VS.NET, the sp returns the correct value (an
incremented one). However, in code it doesn't update the variable i'm
assigning the result too. I'm guessing it's some sort of caching???
Here is the sp:
ALTE... more >>
Do DataColumn objects store their DbType
Posted by Hasani at 9/10/2003 2:55:52 PM
I'm working with a database that has 100+ tables and the average table has
at least 40 columns.
using the OleDbParameter class, some tables use Timestamps, and other use
Dates, but when retrieved from the database, using a DataRow, they all show
up as System.DateTime objects. Now when I update t... more >>
E_FAIL(080004005)
Posted by Konrad at 9/10/2003 2:02:57 PM
Hi
When I'am trying to configure DataAdapter
it gives me error like in subject.
After I reduce number of fields in
select formula all is ok.
How to avoid this problem?
It concerns Access database.
Thanks
Konrad
... more >>
Create DSN entry
Posted by jsaunders at 9/10/2003 1:52:50 PM
I have written a program that uses ODBC connections. Can
anyone tell me how to have it create the System DSN for
an access database on load? or in the deployment package?... more >>
is this casting valid
Posted by VBM at 9/10/2003 12:51:27 PM
DbType myDataType = (DbType) SqlDbType.Image;
... more >>
Add primary key
Posted by Konrad at 9/10/2003 12:20:07 PM
Hi
How to add primary key column to DataTable which
have no primary key? Using if possible ADO.NET.
It concerns Access database.
Thanks
Konrad
... more >>
Help! TypeCastConversion?
Posted by Richard Brown at 9/10/2003 11:35:28 AM
I have a datareader object where I am trying to convert the fields coming
from it into my structure.
The line in question is as follows:
col.Length = (reader.IsDBNull(2) ? (short)0 : reader.GetInt16(2));
col.Length is defined as a 'short'
(BTW, this is in C# code, using the intrinsic shor... more >>
Best Practices - Async Updates
Posted by James Cadd at 9/10/2003 11:20:06 AM
Please forgive the restatement of my post from a few days
ago, but I hope this question is more clear. I'm working
with a C# Windows Forms app.
What is the best practice for handling the changes made
by a user that occur after an asynchronous update has
been initiated, but before the upd... more >>
Do I specify a length for text parameters?
Posted by Jeff Johnson [MVP: VB] at 9/10/2003 10:57:44 AM
When setting up an SqlCommand object, is it required and/or recommended to
use the size parameter when the data type of the parameter is text
(SqlDbType.Text)? I'm converting an old program and I'm a ways away from
testing it, so I figured I'd ask first. In ADO specifying a size (for
adLongVarCh... more >>
Updating database from Typed Dataset without loading entire database
Posted by Jeremy Summers at 9/10/2003 10:07:32 AM
I am trying to add some new records to a table and I have the new records in
memory in a typed dataset. How can I update the database with these new
records without loading the entire table into a dataset (it is quite large)?
Jeremy Summers
... more >>
Is it possible for my code to find out the size of varchar column?
Posted by johngilmer NO[at]SPAM yahoo.com at 9/10/2003 8:52:35 AM
I want to ask the DB how large a varchar column is so I can ensure
that strings being inserted there are not too long.
thanks in advance,
John... more >>
OleDbCommandBuilder improvement
Posted by Samuel at 9/10/2003 7:48:24 AM
Hello again:
I think in the next version of the .NET Framework, OleDbCommandBuilder
should use square brackets when generating commands for column names with
spaces.
UPDATE [My Column] column2 [Column 3] ... ...
Otherwise it throws an OleDbException "Incorrect SQL statement sintax" when
... more >>
Windows Forms' Binding system bugs?
Posted by Samuel at 9/10/2003 6:19:44 AM
Hello:
I first put the code and then I'll comment it:
.... somewhere in Form_Load ...
Binding binding = new Binding("Value", myTableDataView, "StartupDate");
binding.Format = new ConvertEventHandler(StartupDateBinding_Format);
StartupDateDateTimePicker.DataBindings.Add(binding);
....
... more >>
Retrieving value in AutoNumber field
Posted by Tracey at 9/10/2003 5:18:02 AM
I am trying to get the value from an Autonumber field in
an Access97 database when I insert a record into it. My
code is always returning 0 as the value which is wrong can
anyone see what the problem is?
Thanks in advance.
Private cmdGetIdentity As OleDbCommand
Private Sub btnNew_Cl... more >>
HLP: What should I use?
Posted by Mr. B at 9/10/2003 5:02:34 AM
Here's my situation... First off, I'm a complete Newbee when it comes to 'data
bases'. And I'm a week end programmer (: My appologies if I get a bit too
verbose here
I've VB4 to VB6 experience... and have started using VB.net just this year.
Most of my apps have always used TXT type files fo... more >>
.ExecuteNonQuery()
Posted by Primillo at 9/10/2003 12:52:39 AM
'Insert, delete and update buttons
'don't work, the full source code is:
Public Class WebForm1
Inherits System.Web.UI.Page
Protected WithEvents Button1 As
System.Web.UI.WebControls.Button
Protected WithEvents Button2 As
System.Web.UI.WebControls.Button
Protected WithEvents... more >>
|