all groups > dotnet ado.net > november 2004 > threads for friday november 19
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
How do I force a datatable to a position based upon an index key from another unbound control
Posted by Larry Woods at 11/19/2004 8:45:02 PM
I have a combobox with a value field that represents a key in a dataset
table that is NO bound to this combobox. In the SelectedIndexChanged event
procedure I want to position the dataset table to the record with the key
from the combobox. I can't quite figure out the right combination of
meth... more >>
RowChanged event
Posted by Aaron Smith at 11/19/2004 3:56:02 PM
If I add a handler to the row changed event of a datatable, it fires
when a row has been added, but when in the event, it hasn't actually
added the row yet... Is there a way around this? How can I make sure
that the row has been added to the dataset during this event? Or is
there another one... more >>
XML DATA source DataSetDataSource DataMemeber
Posted by le_mo_mo NO[at]SPAM yahoo.com at 11/19/2004 3:54:27 PM
Hi,
I have a DataSetDataSource populated from an XML datasource.
DataMember is assigned to one of the datasets in the XML file. I have
a DataList which is displaying the DataSetDataSource. Any idea on how
to get the DataSetDataSource inlcude multiple datasets within the XML
files?
Here is ... more >>
move a row from one table to another
Posted by Brian Henry at 11/19/2004 3:42:26 PM
is there anyway to move a row from one data table to another with the same
schema?
... more >>
Problems deleting through datagrid/view
Posted by DCraig at 11/19/2004 3:28:10 PM
I'm having a hard time deleting selected records through a datagrid bound to
a view, VS .Net 03, SQL 2K is the back end although I'm not updating the
database in the code where I'm having a problem.
I am putting the selected rows into an array of datarowviews in the first
loop, that is working... more >>
ADO.net or TSQL Transactions
Posted by Simon Harvey at 11/19/2004 3:05:51 PM
Hi all
Should implement a transaction in both the stored procedure AND in ADO.net
code or is doing it in one or the other good enough to protect against
concurrency and atomicity problems?
Thanks
Simon
"Mary Chipman" <mchip@online.microsoft.com> wrote in message
news:8egpp052lm2jkk... more >>
Problems with Access DB and fields of type Decimal
Posted by Guido Kraus at 11/19/2004 1:29:03 PM
I have an Access 2000 database with a table that has a field of type
'Decimal'. Precision = 5, number of decimal places = 2
My VB.NET application (FrameWork 1.1 SP1) has a strongly-typed DataSet for
this database. The field within my DataSet is of type Decimal. I also have a
DataAdapter to ... more >>
Automatically populating a dataset with all the mdb's tables
Posted by Phil Greg at 11/19/2004 1:27:09 PM
Hi,
I just started reading about ADO.net, and the way I see it, there's no way I
can automatically fill my Dataset with all the tables, and relations between
them automatically, am I right?
As far as I understand, I would have to know the structure of the (Access)
database I'm accessing, and... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
OdbcDataReader and Oracle BLOB data
Posted by Fletch Padgett at 11/19/2004 12:33:12 PM
Hello, I am attempting to retrieve BLOB data from an Oracle 9.0.2 Database. I
ma using the GetBytes() method of the ODBCDataReader and am running it some
issues with larger documents.
The Code:
Private Function RetrieveBlob(ByVal lngFormSeq As Integer) As Boolean
'************************... more >>
installing stored procedure programatically
Posted by Konrad at 11/19/2004 12:29:21 PM
Hi
How can I install stored procedure
programatically in SQL Server?
Thanks
Konrad
... more >>
How to pass a null value for a stored procedure?
Posted by Andrew at 11/19/2004 12:13:05 PM
Hi friends,
There is a parameter (integer) for a stored procedure. I need to pass a
value in my C# code, like the follows,
System.Data.SqlClient.SqlParameter sp = new
System.Data.SqlClient.SqlParameter("baseID", System.Data.SqlDbType.Int);
sp.Size = 4;
sp.Value = null;
However, I got ... more >>
SQL Server transaction problem
Posted by nick at 11/19/2004 11:49:56 AM
I am writing a SQL server table and Ole Jet dbf table. They are in a SQL
transaction. However, writing dbf file (on network driver) sometimes halts
and I must close the browser (or in VS.Net when debug). After that, the
table lock of SQL server remains. I must go to SQL enterprise manager to
... more >>
stored procedure results
Posted by jaYPee at 11/19/2004 11:43:30 AM
I have downloaded some source code but I want this to convert the
results into datagrid.
dr = cmd.ExecuteReader()
'****************************************
' SHOW THE RESULTS
'****************************************
sResults = ... more >>
RowState not changing
Posted by NCZIMM at 11/19/2004 11:19:11 AM
I have a DataGrid with edit and delete buttons bound to a record set. I have
added code to remove records from the record set and re-bind to the data grid
when then delete button is clicked. This works fine. I use GetChanges to get
the records for writing to the database and it comes up null.... more >>
Accesing fields in a datareader
Posted by Jordi Vidal at 11/19/2004 10:03:07 AM
Hi,
I have a simple query with an inner join:
select A.Field1, B.Field1 from A inner join B on A.Field2 = B.Field2
when I read the values with an oledbdatareader accesing a SQL Server
database (reader["Field1"]) return the value from the table "A", and i can't
read the value in the table ... more >>
ADODB.Command creation problems
Posted by Barrett at 11/19/2004 9:01:08 AM
Hello,
I am trying to create an instance of the ADODB.Command object using
javascript on one of my webpages.
var oCon;
var oCmd
oCon = new ActiveXObject("ADODB.Connection");
oCmd = new ActiveXObject("ADODB.Command");
The oCon creates succesfully, the oCmd returns an unable to create ob... more >>
I need to make my app portable. How do I change my dataadapter source?
Posted by Larry Woods at 11/19/2004 8:41:04 AM
I am using dataconnections/dataadapters but I don't want to tie my
application down to a specific database. It seems as if I MUST use a
specific connectionstring when defining my dataadapters. This does make
sense but then how do I move this application to another site that has a
different SQL... more >>
HOWTO: Select Records From A DataSet
Posted by Dan Sikorsky at 11/19/2004 7:33:03 AM
How do you select records from one dataset and create a second dataset? I
need to pull out the master records from a dataset and create a master
datagrid in which to embed a details datagrid (for a master/details type
report).
--
Thank you kindly,
Dan Sikorsky BAB, BScE, MSC
... more >>
Allowing user selection of a datasource at run time?
Posted by Nick Cave at 11/19/2004 6:13:01 AM
I am writing a database front end windows application in C#. I need to allow
a user to select a database to connect to at run time via a standard dialog
box. This is easy in Visual C++ 6.0, all you have to do is #include
atldbcli.h and then call the CDataSource class Open() method with no
... more >>
Return Dataset using SQLCommand
Posted by MrMike at 11/19/2004 5:15:03 AM
Hi. I know how to use a SQLDataAdapter to execute a query and return a
dataset. For example...
SQLDataAdapter.Fill(DatasetInstance, "StoredProcName/TableName")
But could someone please give me an example of how to execute a query and
return a dataset using a SQLCommand? SQLCommand doesn't... more >>
GetSchemaTable with subquery couldn't return basetablename
Posted by miz NO[at]SPAM ms10.hinet.net at 11/19/2004 1:45:47 AM
as title said ,
I run code below , the column(a1ap6d1.in_seq) from subquery
could not return basetablename but null
I realize that using join syntax could ,
but subquery is popular syntax ,
is there any way to get correct basetablename when a query contain
subquery?
Dim rdr As SqlDataRea... more >>
|