all groups > dotnet ado.net > july 2005 > threads for july 15 - 21, 2005
Filter by week: 1 2 3 4 5
Is dataview updatable at server side
Posted by Omer at 7/21/2005 11:18:34 PM
Hi,
Can you please tell me whether the dataview is updateable at the server side
and if yes then kindly write a simple code for an example.
Thanks & regards,
... more >>
Saving many rows with Spread and ADO.Net
Posted by Earl at 7/21/2005 5:29:23 PM
I was using Spread for awhile and then haven't played with it for several
months, so I've somewhat lost focus on the data updating ... Anyway, what
I'm trying to do is save many rows from one page of the Spread back to the
database. Is there a better method than looping through through the row... more >>
Timeout setting to SqlServer
Posted by Zeng at 7/21/2005 5:07:46 PM
Hi,
Is there a way to increase the timeout period to Sql Server? Occasionally
my app has to run a long update and it gets timed out.
thanks!
-thinh
... more >>
Getting back sql generated id's
Posted by Ted Bogucki at 7/21/2005 3:46:48 PM
I start with an empty dataset
I then add several rows to it
I then update the SQL table with the dataset update method
The table's primary key is an identiy field so the id's are generated by SQL
how do I get the id's that were generated when the records were inserted?
Can I get them loade... more >>
multiple instances of named argument in list
Posted by monjes NO[at]SPAM hotmail.com at 7/21/2005 2:37:52 PM
I got this error using an Oracle stored procedure ("multiple instances
of named argument in list"). This is not a question posting, but more
to let people know a possible cause of it.
I got this error because I was sending in the wrong database type for
one of my parameters. Apparently, the ... more >>
Find a row index in a dataset
Posted by Chris at 7/21/2005 1:41:03 PM
Hello,
Does anyone know how to find the index of a row in a data table in a dataset?
The Find Method returns a data row, but to remove/delete a row from a data
table you have to supply the row index and I am not sure how to find that.
There does not appear to be an indexof or getindex prop... more >>
DataAdapter retrieves no row from Oracle left join count query
Posted by tonixlaw NO[at]SPAM yahoo.ca at 7/21/2005 12:02:29 PM
Hi guys,
In vb.net, i use OracleDataAdapter to execute following query and fill
into a DataSet. The problem is it returns no row but actually it should
have some rows. If you run this query in sql plus or similiar tool, it
works fine. This problem happens only when the first table has rows
th... more >>
Problems implementing SQLCommand
Posted by Phenom at 7/21/2005 11:57:13 AM
I am attempting, for the first time, to use SQLCommand in asp.net . My
ultimate goal is to utilize a stored proc. When I use the following
code to begin, I get several error messages. I hope someone can explain
these to me and let me know what I need to do to correctly implement
the SQLCommand i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Setting version on SQL Table
Posted by Hari at 7/21/2005 11:31:03 AM
Hi Guys,
Iam trying set a version number to a database table. The main reason is if i
add a new column later on i will be able to make sure that table schema need
to be updated.
I have tried updating the version column in the sysobjects for that table.
but couldn't do that. Is it a good ... more >>
Oracle connection with WebService
Posted by MikeB at 7/21/2005 11:08:04 AM
I wrote the following method to test connecting to an Oracle database:
public static string HelloMyOracleDataWorld()
{
string ret = "";
string connectString = "Integrated
Security=false;PWD=password;UID=user;SERVER=server";
OracleConnection connection = new OracleConnec... more >>
Obtaining Column Names Through GetOleDbSchemaTable
Posted by Dukebball43 at 7/21/2005 9:59:04 AM
I'm currently obtaining the column names of my table (in an access database
file stored locally). However, upon receiving the list, all of the column
names have been sorted and are not in their original order. I was wondering
if this was a result of the method (and in that case if it's preve... more >>
Dataset confusion?
Posted by serge calderara at 7/21/2005 5:52:03 AM
Dear all,
I have read in many places that datasset are great for retriving data that
needs to be updated afterwards as they are working as discinnected mode.
But then an other topic comes is the fact that they are expensive in memory...
So now my question is that:
if you have a huge amoun... more >>
Global Transacted Connection Question
Posted by Ray Booysen at 7/21/2005 12:00:00 AM
Hi All
In our project, I have a globally transacted connection. Is this a
"proper" way of doing things. All movement through this connection is
transacted and the connection is opened and closed as required.
Can anyone think of any pitfalls, pros, cons of this approach?
Regards
Ray B... more >>
No rows returned with OleDbParameter.Value = DBNull.Value
Posted by rguay at 7/21/2005 12:00:00 AM
I'm trying to select data with an OleDbCommand on a parameterized query
When the parameter's value is set to DBNull.Value, no rows are returne
even if one exists. I'm using an Orable 9i database.
Here is a complete setup to reproduce the situation, you just need you
own connection parameters.... more >>
Filling a strongly-typed dataset using Data Access Application Block (DAAB) June 2005 Version
Posted by Bart_Tubalinal NO[at]SPAM hmco.com at 7/20/2005 11:55:56 AM
How do you fill a strongly typed dataset using the new version of DAAB? I
have seen examples written using DAAB v 2.0 but in that version, there's
an object SQLHelper with a method FillDataset(....). This SQLHelper object
does not exist in the current version.
Any help (and example code) w... more >>
How to set Attribute to DataSet?
Posted by Venkatachalam at 7/20/2005 9:50:04 AM
Hi,
I am creating DataSet and many DataTables and populating value to those
tables and finally writing the values as XML.
I want to add attribute to my DataSet. How can I do this?
DataSet objDataSet = new DataSet("Test");
objDataSet.WriteXml(@"C:\Test.xml");
Output:
<?xml version="1.0" ... more >>
DataGrid Header Cuttoff Problem in Windows XP
Posted by Jitender Khanna at 7/20/2005 4:56:19 AM
When the header text of DataGrid is Right aligned ,then the last few
pixels of the header text is clipped off.I tried padding the text with
a space or two but this seems to be trimmed before the text is
rendered.
This problem is detected in windows XP.But when the same code is run on
Window... more >>
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater
Posted by Mattyw at 7/20/2005 3:28:25 AM
Hi
I am having problems opening a connection to an Oracle Database using
Visual Studio.NET 2003.
I can create the connection fine using the new connection wizard and
can browse the database using Server Explorer, the problem appears when
I try to open the connection when I run the project.
... more >>
System.Transactions -- "The transaction has already been implicitly or explicitly committed or aborted" exception when opening SqlConnetion
Posted by Ziga Jakhel at 7/20/2005 12:03:53 AM
Hi, everybody! (sorry for double posting as news.microsoft.com)
I sure hope somebody has already stumbled upon a similar problem and found a
solution.
Basically I'm having a problem with establishing a transaction between my
app server and a sql server, both on different boxes.
When I try... more >>
An OLE DB Provider was not specified in the ConnectionString
Posted by Joe Newlin at 7/20/2005 12:00:00 AM
I am getting an error: Server Error in '/' Application. An Ole Db
Provider was not specified in the ConnectionString. An example would
be, 'Provider=SQLOLEDB.
My Function is this: Public Function GetDataSource(ByBal sql As String)
As DataView
Dim ds as DataSet
Dim cnn as OleDbConnection... more >>
Business Layer - Data Layer
Posted by David Gouge at 7/20/2005 12:00:00 AM
Hi all,
I hope this is a suitable group for this question. Feel free to push me
off to the correct one if not. :)
Basically i have been developing windows applications using Visual
Foxpro for about 5 years for a small software house and we will be
shortly moving to a .net (C#) solution.... more >>
DataSet.WriteXml
Posted by hope at 7/20/2005 12:00:00 AM
Hi,
I have a stored procedure with a query
SELECT
DR_EmployeeView.emp_id,
DR_EmployeeView.emp_sme_id_1 as [emp_sme_id],
DR_EmployeeView.emp_sme_id_2 as [emp_sme_id]
FROM DR_EmployeeView
I need my xml looks like this (with 2 same elements, emp_sme_id):
<nc_employee>
<emp_id>00000026... more >>
Different between datagrid and datalist
Posted by Alex Smith at 7/20/2005 12:00:00 AM
Hi friends
Can anybody tell me where to use datagrid and where to use datalist. Or
explain Different between DataGrid and DataList.
Regards,
Alex
... more >>
To pool or not to pool
Posted by Shimon Sim at 7/19/2005 11:05:11 PM
The question is should I use the connection pooling.
Here are the details.
I am developing ASP.NET application it is running for some time already
while we keep adding some features. Recently noticed that some pages return
error - the amount of connection exceeded the maximum amount.
I starte... more >>
Invalid Cast Exception - Class Objects
Posted by ratnakarp NO[at]SPAM gmail.com at 7/19/2005 10:55:27 PM
hi,
I'm using c#, asp.net 2003 and sql server 2000 to develop a portal
application. my web.config file looks as follows
<configuration>
<configSections>
<sectionGroup name="system.web">
<section name="dsnstore"
type="System.Configuration.NameValueSectionHandler,System,Versio... more >>
DataRowCollection.Remove and DataSet.HasChanges, bug???
Posted by John Rusk at 7/19/2005 9:36:02 PM
Hi,
I'm calling table.Rows.Remove(row) to remove a row from a data table. But,
DataSet.HasChanges() still returns true.
Is there any way to make the row go away completely? (Without calling
AcceptChanges on the dataset or data table. I want to avoid that for the
reasons noted here:
... more >>
Need Help with DAB v1.0
Posted by Shimon Sim at 7/19/2005 9:04:29 PM
I have big application that uses first version of DAB. It could be just
regular performance problem though.
I just noticed that I have major problem with connection pooling.
My connection string saved in web.config file so it should be the same for
all the connections.
I use a lot of SqlDat... more >>
Conceptual delete question
Posted by Earl at 7/19/2005 7:18:30 PM
Something that has bothered me for awhile: whether or not to allow users to
delete what I will a "top-level" data element, for example, a name from a
list of companies. Early in an enterprise's operation of a particular
system, deleting a company name from a list would not be problematic, but ... more >>
Newbie Select Count issue
Posted by Jim Campau at 7/19/2005 2:55:24 PM
Can someone please tell me what is wrong with this code.
I know that the line indicated with and arrow is wrong somehow, but I am not
sure about the query either.
I am just trying to have the txtBox return the number of rows that has [Code
Number] = 2
By the way this is an Access Database
... more >>
OracleDataAdapter Update() not working
Posted by josepinchero NO[at]SPAM yahoo.com at 7/19/2005 2:44:50 PM
Hello,
Can someone pls. offer some advice?
I'm using .Net 1.1, OracleDataAdapter, OracleCommandBuilder.
I fill the dataset (with a Select), return the adapter, later, call
Update on the adapter, and close the transaction (with the connection).
Calling Update returns 10...that 10 rows we... more >>
OracleDataAdapter.update method hangs with 8.1.5 client
Posted by mateo at 7/19/2005 12:13:59 PM
Hi,
I have come across a bug that I have found no documentation or
discussion about. It's just like that one time I had a bird poop on my
head; it was not good luck either.
I'm using an OracleDataAdapter and an OracleCommandBuilder for
automatic command building to build insert, update and ... more >>
Flat xml from typed dataset
Posted by william at 7/19/2005 7:24:03 AM
Hi all,
I use a typed dataset in my applicaiton. There are three levels defined in
the .xsd, first level is member, which has child element named plan, which
has child element named fund. The structure looks like:
<xs:element name="mem">
<xs:complexType>
<xs:sequence>
<xs:... more >>
CLR integration and User Defined functions in SQL Server 2005
Posted by san at 7/19/2005 3:42:02 AM
Hi,
I wanted to find out how one can get the query (the actual SQL statement) in
a TVF that is calling the said TVF?
Example:
select * from SOME_TVF() where blah...
SOME_TVF()
{
// Something like......
string query = GetCallingQuery()
//now query = "select * from SOME_TVF(... more >>
Oracle Stored Procedure Update with DataSet Refresh
Posted by galacta NO[at]SPAM gmx.net at 7/19/2005 2:26:50 AM
Hi there
I try to update a dataset through an oracle stored procedure.
This works fine but as the stored procedure changes some fields on the
row, the dataset shows afterwards some wrong column values.
How is it possible to refresh the dataset after an update stored
procedure?
Could someon... more >>
DataSet.WriteXml question
Posted by Mounil Kadakia at 7/19/2005 12:00:00 AM
hi all,
I wanted to know if there's any way I can influence how the output
of the xml would be using WriteXml.
for eg,
if my dataset has a table called tblMyTable, then in the output XML i want
<MyTable> instead of <tblMyTable>
TIA,
Mounil.
... more >>
Abilities of Developer edition
Posted by Gary Frank at 7/19/2005 12:00:00 AM
I read the following about SQL Server Developer edition:
"SQL Server 2000 Developer Edition is a more restricted version of SQL
Server 2000 Enterprise Edition that lets you perform development and testing
prior to deploying the Enterprise Edition."
What exactly are the limits? Does it jus... more >>
confused - exec sp with pure output parameter in ADO.Net
Posted by Robert Wang at 7/19/2005 12:00:00 AM
I created an sp in northwind in SQL server 2000,
CREATE proc [dbo].[up_getCount]
@Count int output
as
select @Count=count(*)
from northwind.dbo.customers
And ran the following C# code:
using (SqlConnection conn = new
SqlConnection("Server=localhost;Integrated Security=true"))
... more >>
concurrency - Rows affected (getting the right one from a stored procedure)
Posted by Jeff Jarrell at 7/18/2005 8:43:29 PM
I know this may be a sql thing but I would expect someone to have dealt with
this.
I have some update stored procedures with many steps. normally, my stored
procedures "set nocount off".
so the rowsAffected = ExecuteNonQuery doesn't return anything but 0. So I
turn it on (nocount off),... more >>
Error on reading access table
Posted by PhilDaft at 7/18/2005 7:27:22 PM
Dear All
I have a 5 user vb.net app that is trying to display in a grid what i
reads from an MS Access table. The access database lives on a win200
network share. The grid is updated by a subroutine called by a timer
which was intended to fire every few seconds.
Now the app works fine on o... more >>
BUG: DataRowView.Delete() deletes the wrong row in the table
Posted by Nigel Norris at 7/18/2005 6:55:23 PM
There appears to be a rather fundamental bug in DataViews. The DataRowView
keeps track of the corresponding DataRow by two mechanisms - an index, and a
reference. Sometimes it accesses the row by one means, sometimes the other.
If you delete a row from a view, the index for other DataRowView... more >>
Subqueries with OracleDataAdapter in Visual Studio 2003
Posted by Siva. at 7/18/2005 4:17:01 PM
Hi,
I am using Visual Studio 2003 and using OracleDataAdapter to connect to the
database. When I specify to an SQL which has a sub query, it's failing with
he following error,
; Syntax Error: Expecting identifier or quoted identifier. in
System.Data.OracleClient
When I looked at the M... more >>
Preventing Sql Injection in Statement
Posted by Bahman at 7/18/2005 3:16:04 PM
Hello!
I am trying various ways of preventing the injection. I tried this:
"select count(*) from table where userid like @userid"
and
SqlParameter param0 = new SqlParameter("@userid", SqlDbType.NVarChar,50 );
param0.Value = Session["userid"];
myCommand.Parameters.Add( param0 );
That jus... more >>
Passing Data between aspx pages
Posted by tjonsek NO[at]SPAM phenom-biz.com at 7/18/2005 1:35:50 PM
This is my first attempt to develop a form in .net to insert and update
data in a database based upon user input. I'm pretty familiar with ASP,
yet I'm finding some of the differences frustrating.
Page One allows a user to enter a record number and view details to
make sure the correct record wa... more >>
CHECK constraint in .NET framework
Posted by Greg Allen at 7/18/2005 11:32:21 AM
SQL Server provides a CHECK constraint to insure the data in a column
falls within a specified set of values. From SQL Server Books Online:
CHECK
Is a constraint that enforces domain integrity by limiting the possible
values that can be entered
into a column or columns.
How i... more >>
Accessing tables inside a dataset to display in a datalist
Posted by Moojjoo at 7/18/2005 9:00:04 AM
Good Monday Morning:
I am at a dead stop and I am hoping some other developers out there can help
me out. I have built a dataset that first contains a table populated from
SQL Server then I am adding another table that is built from the same Query
and data from active directory. I have bu... more >>
Oledb: Select after insert fails
Posted by vidar NO[at]SPAM webscape.no at 7/18/2005 7:50:32 AM
We're having some problems with our 3-tier application. On one ASP.Net
page, we're reading data from one database, and inserts the data into
another database. After the insert statement has run, we select the
same data, and create and object that is used in the business layer.
If we use the sa... more >>
Dataset empty or is nothing?
Posted by phlakie at 7/18/2005 6:29:02 AM
Excerpt from Code:
dim ds as new dataset
ds= execute("Stored_Proc")
dim name as string= ds.tables(0).datasetname
execute is a function that executes the stored procedure Stored_Proc.
Suppose execute returns an empty dataset, what kind of exception is raised?
... more >>
data binding
Posted by nbohana at 7/17/2005 9:37:01 AM
I am using windows forms that have 5 textbox's they are bound as follows:
drvDetail = (DataRowView) cm.Current;
vueDetail = drvDetail.DataView;
this.BindingContext[vueDetail].Position = cm.Position;
txtSON.DataBindings.Add("Text", vueDetail, "service-order-number");
txtTaskID.DataBindings... more >>
tiny footprint database alternatives to MDB?
Posted by Timo at 7/16/2005 11:21:59 AM
I would be grateful for suggestions for tiny footprint ADO.NET compatible
database alternatives to Access MDB files, supporting XCOPY installation. We
have very simple query needs and no need for JOIN support. Our basic need is
to quickly select from a table containing ~200,000 rows all rows wher... more >>
Can't set value of datagridview cell
Posted by dennist685 at 7/16/2005 5:19:02 AM
I'm going to bother you on one more question. Tell me if I'm out of line.
This one ha 441 views without an answer.
I might mention that these datagridviews are totally unbound. The column
headers I created in the column collection.
Can't set value of datagridview cell
The documentatio... more >>
Can't synchronize individual controls and a datagridview to the sa
Posted by dennist685 at 7/16/2005 5:12:03 AM
Sorry for asking here, but there's been hundreds of views of my question in
the vs 2005 forums, but not a single answer.
Can't synchronize individual controls and a datagridview to the same row.
It was easy to do in vs studio 2003.
When I changed to row in the controls, the row would ch... more >>
Typed Dataset and Bound Controls Error
Posted by Michael Jackson at 7/15/2005 5:20:46 PM
I'm using typed datasets with bound VS2003 Winform controls. In my code to
add a new record, I get the following error:
"Databinding could not find a row in the list that is suitable for all
bindings."
At this point, my database table is emtpy.
Simple Code:
Me.BindingContext(objDocRvwCa... more >>
Too much code for using Typed Data Sets
Posted by Manuel at 7/15/2005 5:18:22 PM
Whenever I want to use a Typed Data Set I find myself writing A LOT of code
which I think shouln't be necessary. For example, if I wanted to get a
DataTable of the Customers table I would have to write all this:
---------------
Dim myCnn As New Data.SqlClient.SqlConnection("TheConnectionStri... more >>
placement of ado.net transactions
Posted by T at 7/15/2005 2:26:04 PM
Hi group, I have an app with a table gateway-style data access layer that
does atomic crud operations on individual tables. but sometimes i want to do
two inserts/updates/etc. on multiple tables as a transaction. I could write
custom data access methods to handle these special cases, but I'd... more >>
Object reference not set to an instance of an object. System.NullR
Posted by Dmitri Kouminov at 7/15/2005 8:25:11 AM
Hi,
I have a very strange error.
string strFilter = "some filter expression";
drFoundRows = m_dsQuote.Tables["Some Table Name"].Select(strFilter);
if(1 != drFoundRows.Length)
{
return;
}
drFoundRows[0]["Some Column"] = 1;
I got the following error when I assign drFoundRows[0]["... more >>
Nulls and data retrieval with .NET 2.0
Posted by Thomas Coleman at 7/15/2005 7:41:19 AM
I have been playing around with 2.0 and I'm trying clarify a few things about
generics and data access. I was hoping to be able to do something like this with
nullable types:
int? foo = null;
DataRow dr = ...;
dr["Column1"] = foo;
However, this does not work if the DataType value is set ... more >>
Can not generate a dataset unspeicifed error
Posted by Chris at 7/15/2005 7:32:10 AM
Hello,
I am using an OleDbData Adapter to query a visual fox pro back end. When I
build the query graphically everything goes fine until I try to generate a
dataset. That throws an unspecified error and will not allow me to add a
dataset to the project.
Any ideas on what to check to r... more >>
How many connections open?
Posted by Earl at 7/15/2005 1:22:03 AM
This has probably been asked before, but I didn't get the memo, so I'm
wondering how to find out how many connections in the "pool" are being held
open by SQL Server 2000.
... more >>
Put a DataTable at the beginning of a DataSet
Posted by DraguVaso at 7/15/2005 12:00:00 AM
Hi,
I have a DataSet, which contains several DataTables. I want to put a new
DataTable in it (tblFileSettings) just before I write this DataSet to an
XML-file.
But what I want is that this new DataTable tblFileSettings is the first
DataTable in the XML-file. So If uses open the XML file, th... more >>
Updating databound textboxes immediately after a database change????
Posted by Jon S via DotNetMonster.com at 7/15/2005 12:00:00 AM
Hi all
I'm new to C# and ADO.Net. I've managed to insert, update and delete records
from a database but I need to know how to show these changes immediately.
For example : If I delete a record from the database, that deleted record
will remain in my forms textboxes until I restart the prog... more >>
how can I get all the content from a enum ?
Posted by Kylin at 7/15/2005 12:00:00 AM
eg:
I want to get all the content in SqlDbType ,
and save this to a array ...
any help ?
--
FireCrow Studio
Kylin Garden
QQ:462042991
MSN:GaoTianpu@hotmail.com
ICQ:156134382
... more >>
|