all groups > dotnet ado.net > december 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
Datasets keep dissappearing from my WinForms
Posted by David Hearn at 12/31/2003 11:48:17 PM
I am dragging my SQL Server table onto my Windows form to create my
connection and adapter. I then go an generate my dataset and save
everything. When I build, I keep getting compile errors and if I
switch to code view and come back into design view or if I close the
form and re-open it, my data... more >>
Encoding problem
Posted by Calvin Lai at 12/31/2003 9:28:31 PM
If my data in SQL server was stored from a web application with
requestEncoding set as iso8859-1. And now I want to change the data encoding
to big5, (or anything else), how could I do that? Thanks for all advice and
input.
Calvin
... more >>
Crystal reports on client?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/31/2003 9:27:49 PM
Hi,
If I use (in development) connection object from design tools in
ToolBox to get data from db to crystal reports, how can I make
changes to server name and security options in runtime. That is, is
there an option during "packaging and deployment" where I can make
connection setting as pe... more >>
Interesting Problem with System.Data.SqlClient.SqlCommand.ExecuteXmlReader()
Posted by Dylan Phillips at 12/31/2003 8:51:50 PM
A strang error is occurring when I run the following code:
SqlConnection c =3D new SqlConnection();
c.ConnectionString =3D "Initial Catalog=3DNorthwind;user =
id=3Dsa;password=3Dkat1ie;Data Source=3Dserver";
c.Open();
SqlCommand command =3D c.CreateCommand();
command.CommandType =3D CommandT... more >>
Select Max value from DataTable
Posted by John Xavier Smith at 12/31/2003 7:50:02 PM
Is there a more optimal way than creating a new column as an expression? The
following code snippet works, I was hoping for a better alternative:
<DataTable>.Columns.Add("MaxIndentation", typeof(string),
"Max(indentation)");
MessageBox.Show(<DataTable>.Rows[0]["MaxIndentation"].ToString());
... more >>
OracleDateTime
Posted by Cowboy (Gregory A. Beamer) at 12/31/2003 6:24:17 PM
Anyone have any clue why invalid date casts fine into OracleDateTime.
DateTime dt = new DateTime(20004,14,45); // this
bombs
SqlDateTime dt = new SqlDateTime(20004,14,45); // this
bombs
OracleDateTime dt = new OracleDateTime (20004,14,45); // ... more >>
Why use Input Parameters?
Posted by Michael at 12/31/2003 3:43:33 PM
Coming from an ADO Background, I got by ok without using Parameters when I
executed SQL Statements. I would just dynamically create the sql statement,
inserting text between single quotes here and there, and send her off to the
server, and voila, It worked.
Now I'm learning ado.net, and many ... more >>
CDaoDatabase Class// get ref
Posted by Julien at 12/31/2003 1:56:29 PM
How do I set reference to a Foundation Class Library from
VB.net?
I'd like to get access to the CDaoDatabase Class...
Dose anyone know if I can even do it with VB.net
Small code snip would be cool... Remember VB code not C
Thanks
..
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Need Ado.Net XML C# Book
Posted by Trey at 12/31/2003 1:39:35 PM
Can someone recommend the best book that covers ADO.NET. I want good
coverage of XML use in ADO.NET and I would like the examples to be in C# (if
possible).
Thanks
... more >>
Returning Oracle Data Reader
Posted by Anon at 12/31/2003 12:55:21 PM
I have a method that returns OracleDataReader type. I am
having problems calling the method from Web Services.
Can the Oracle Data Provider for .NET be serialized? if
not what are my alternatives.... more >>
GetChildRows() and DataRelation problem
Posted by Claudiu Tomescu at 12/31/2003 12:49:27 PM
Hi,
After hours of frustration digging for an answer I decided to post this
message concerning my GetChildRows and DataRelation problem.
What I'm trying to do is to use a DataSet to fetch data from 3 tables and
then using relations to navigate parent-child records.
First I created an XSD fi... more >>
Static Data Functions
Posted by Nick P. at 12/31/2003 12:44:31 PM
We use a Class that contains all static data calls to retrieve and
update our SQL Server. the retrieval methods have been very fast, but
sometimes the update functions get Verrrrrrrrrrrrrrrrry slow. We use a
Mutex to synch the calls so that only one user at a time has access to
the data that is ... more >>
DataGrid: Suspend/ResumeLayout (DataView manipulations)?
Posted by alex n at 12/31/2003 11:22:32 AM
hello.
i manipulate a dataview
(updating and thus filtering a large amount of rows)
and the datagrid bound to the dataview
slows down this process much by adjusting its scroll bars
and maybe trying to redraw itself.
ok, Suspend/ResumeLayout doesn't help.
grd.DataSource = null;
// updat... more >>
Confused about the DataRow object
Posted by duane NO[at]SPAM roelands.org at 12/31/2003 10:35:02 AM
I'm having a frustrating problem with some simple code. Isn't that
always the case? :)
Here's the code in question...
Public Sub GetAllEmployees()
Dim tbl As DataTable = EmpDataSet.Tables(0)
Dim Row As DataRow
Dim MyString As String
For Each Row In tbl.Rows
... more >>
continuous SqlCommand ExcuteNonQuery good idea?
Posted by Daniel Bass at 12/31/2003 10:11:34 AM
In the scenario where I have multiple entries (a couple of thousand on a
worst case) I'd like to add to a database via Stored Procedures, is it
proper procedure to:
- create a SqlCommand object for the insert
- add parameters etc to this sqlcom obj
- create a SqlConnection object to connect t... more >>
Understanding CommandBehavior.CloseConnection
Posted by Michael at 12/31/2003 8:47:10 AM
I'm trying to understand CommandBehavior.CloseConnection, used in this
context
conn.Open()
cmd = New SqlCommand(sql, conn)
rdr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
Is that the exact same as if I had done this?
conn.Open()
cmd = New SqlCommand(sql, conn)
rdr = cmd.Execut... more >>
here's a weird one: web server and adodb.dll
Posted by Tom Wilson at 12/30/2003 10:48:38 PM
I'm in a pickle.
Maybe you guys can shed some light.
I am setting up a web site that uses a ADO and SQL server. My first site
went well, and works wonderfully. So I use the same classes and modules I
developed to build a second site. I'm developing and testing on a Windows XP
machine, then ... more >>
A little question about handling nulls from database
Posted by Simon Harvey at 12/30/2003 8:40:48 PM
Hi everyone,
I'm wondering if there is some easy way to deal with null values being
returned in a DataRow.
When I get data from a database (Access) most of it is string based.
However, I don't always know if a particular row will contain any
information in any given column.
Sometimes there... more >>
pooled connections
Posted by dave at 12/30/2003 5:36:58 PM
I am getting an error about my # pooled connections
exceeded or timeout exceeded. I am searching my code for
any open data readers.
I have read that i can use perfmon to watch the number of
pooled connections using .net clr data and
counter "sqlclient:current #pooled and nonpooled".
M... more >>
Dataset problem-- while using complexTypes
Posted by tabrez at 12/30/2003 5:09:33 PM
Hi,
I am facing a problem while trying to use complexType in
an element. I want to nest an element "somechildren" into
an element "some". This can be done by creating a nested
relationship between "some" and "somechildren". However,
the problem is that the fields in the child
table "so... more >>
Problem reading text file..
Posted by Simon Verona at 12/30/2003 4:46:23 PM
I'm trying to populate a dataset with the contents of a csv text =
file.... This is one of a number of attempts I've made to read in this =
file (I don't actually want to display the information, but read through =
it line by line in code..).
My code at the moment looks like :
Dim TextC... more >>
Should I be using .Dispose()?
Posted by Michael at 12/30/2003 4:33:37 PM
Should I make calls to .Dispose() for ado.net objects when I'm done with
them, or is it best to let .net's garbage collector handle these objects
after I'm done with them?
Thanks
... more >>
DataRow
Posted by Jim Heavey at 12/30/2003 4:29:36 PM
The documentation indicates the DataTable has a property called "Rows" and
it states that "Gets the collection of rows that belong to this table."
When I go to use this property (show up in intellisence) all is well, but
when I attempt to compile, the compiler tells me there is no such proper... more >>
DataRow
Posted by Jim Heavey at 12/30/2003 3:12:41 PM
If I am using c# and I have a DataRow and I know that I want the value for
a column named "Fred" - how can I access this column if I do not know it's
index? Must I loop through the columns collection to find the right index?
Thanks in advance for your assitance!!!!... more >>
Access Database question
Posted by Eddie at 12/30/2003 2:57:19 PM
Hi,
I working with vb.net and a Microsoft Access Database. I
am tring to input a single quote ' into a table (query
below). However, I am recieving an error. How would I go
about performing such a task?
INSERT INTO list (name, value) VALUES ('Sam', 'Sam's Car')
Thanks in advance.
E... more >>
DefaultValue
Posted by Jim Heavey at 12/30/2003 2:49:32 PM
If I am setting up a DataTable and a particular column is defined as a GUID
and in SQL Server it has a default value of newid() does this mean that I
should define the "DefaultValue" for the column as new Guid()? How do I
handle setting the DefaultValue for the column in the datatable?... more >>
Refreshing dataset problem?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/30/2003 2:34:17 PM
Hi,
I noticed that since I have created lookup table in combobox, there
has been a performace degradation in refreshing dataset (clear and
fill)?
'code for creating lookup table in combobox
da.Fill(ds, "employees")
cboreportsto.DataSource = ds.Tables("employees")... more >>
Editing data within a datatable
Posted by AC at 12/30/2003 2:04:42 PM
I have a datatable that contains data I'm inserting programatically (not =
from a datasource... using between postbacks to persist data). I need =
to be able to update the elements within the table, but I also need to =
sort the elements using a DataView. Here's my code as it stands:
Dim dv As... more >>
ADO Exceptions
Posted by John Bollwerk at 12/30/2003 12:45:16 PM
Does anyone know the name of the exception that is thrown
when an attempt is made to add a duplicate entry (key
value) to an Access data base?
The int value appears to be -2147467259.
Any one know where I can find a list of exceptions and
their corresponding integer value?
Thanks... more >>
Complex SQL Statement
Posted by George Addison at 12/30/2003 12:30:55 PM
I thought I might post this to see if there is a pro that
can help me. Here's what I want to do:
- I have two tables ('tblPositions', 'tblTrades')
- A relationship exists at tblPositions.ID =
tblTrades.PositionID
- I need to pull only one record from each relation set
(the one with the ... more >>
SQL Server does not exist or access denied
Posted by kamran at 12/30/2003 11:41:48 AM
Hi all,
I am getting the following error message in my asp.net page while connecting
to SQL server
"SQL Server does not exist or access denied"
I am using the following code
constr = "User ID=designers; Password=designers; database=DesignManagement;
server=dserv" ;
SqlConnection objco... more >>
ANN: Free DataAdapters generator
Posted by Miha Markic at 12/30/2003 11:24:56 AM
Hi there ADO.NET users.
I have a new year present for you :)
I've put together a template that generates update/insert/delete commands,
an adapter that holds them together plus code for doing updates.
It works for Sql server or Access for now.
Template is run with CodeSmith (free template bas... more >>
How do I Update a Disconnected DataSet?
Posted by Bill Szerdy at 12/30/2003 10:59:15 AM
Here is the code I have and it does not work. Any
Suggestions?
public bool saveRackTypes(DataSet saveSet)
{
SqlDataAdapter myDataAdapter = new SqlDataAdapter();
try
{
myDataAdapter.SelectCommand = new SqlCommand
("SELECT * FROM RackType", _myConnection);
myDataAdapter.Update(s... more >>
Newbe question about Oracle
Posted by Daniel Bello Urizarri at 12/30/2003 10:56:06 AM
Hi:
Is there any way to get connected with an Oracle server without installing
the 200MB Oracle Client. Some kind of driver?
Oledb, Odbc, *db*?
I'm using the 8i version. Is it possible under the 9i version?
Thanks
... more >>
transactions with dataadapter update?
Posted by Mathew Michuta at 12/30/2003 9:44:30 AM
I have a dataset that i read into a datagrid, and I need
to find a way to update that table using transactions in
case some records update and some don't.
I would rather use the data adapter update so I dont have
to use all those update statements.
Thanks!... more >>
DataTable allowing duplicate Entries!?
Posted by TJO at 12/30/2003 9:42:31 AM
I have a typed DataTable with two only fields that, together, I have set as
the key. Why then is the DataTable allowing duplicate entries?
... more >>
Databindins?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/30/2003 9:11:39 AM
Hi,
Will be very thankfull if somone can exaplain the difference between;
txtbox.databinding.add(New binding(("property of contorl",ds,"property
of" _ & "datasource")
AND
txtbox.databinding.add(("property of contorl",ds,"property of
datasource")... more >>
Cannot update: Read-only
Posted by John Spiegel at 12/30/2003 7:42:42 AM
Hi,
This is probably simple, but I've got a very simple C# function that
connects to a VFP database and takes a SQL command as a parameter. When I
attempt to send that command to the database (ExecuteNonQuery), it throws an
exception indicating "Cannot update the cursor <TableName>, since it ... more >>
Where should I declare & instansiate Connection Obj?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/30/2003 7:33:31 AM
Greetings All,
Where should I declare & instansiate Connection object? That is,
should I do it in class or main module.
I'm really confused, if connction obj. is decl. and insta. before
connection string gets servername and database from registry this will
causes an error? Any doc or codes ... more >>
vb.net query
Posted by sanjitsil NO[at]SPAM yahoo-dot-com.no-spam.invalid at 12/30/2003 5:38:54 AM
I am learning VB.NET, trying to insert record in Access Database using
oledbCommand.
I am getting an error Which is typed below during compiling the
programe. I am sending the source code .Please rectify the error and
send me.
ERROR MESSAGE: An unhandled exception of type
'System.Data.OleD... more >>
Intercept UPDATEs and change to INSERTs
Posted by Fred Morrison at 12/30/2003 5:25:36 AM
What's the best strategy for intercepting updated rows in
a DataSet (let's assume only one DataTable) and turning
them into INSERT's (I'll tweak a Date/Time stamp to insure
they are new rows that don't violate any constraints)? I
don't need code examples, just advice from those with
exper... more >>
Stored Proc problem
Posted by J Jones at 12/30/2003 4:53:12 AM
I have 400 rows in the TRAIT_NOTES tabel but my sp. returns just 87 records
any idea why that may be?
ALTER PROCEDURE dbo.GetTraits
AS
SELECT
1 AS TAG
,NULL AS PARENT
,NULL AS 'TRAITNOTE!1!'
,NULL AS 'Result!2!CONDITION'
,NULL AS 'Result!2!NOTE'
UNION
SELECT
2
,1
,NUL... more >>
setting a row
Posted by reiks at 12/30/2003 4:41:23 AM
I want to set a row i.e. upon calling my fucntion
SetRow(int val), the cursor should be present in that
particualr row. I dont want to use Edit button for my web
daatgrid
How to acheive it?... more >>
Sybase Database
Posted by S.Rajesh at 12/30/2003 1:53:25 AM
we are using the sybase 12.5 database in the unix server.
using the oledbdataadpator, how can i connect to the
database.
That is what should be my string in the ConnectionString
Thanks... more >>
Data Proviers for Dot.Net
Posted by jovin NO[at]SPAM yahoo-dot-com.no-spam.invalid at 12/30/2003 1:06:24 AM
Pls send me the Providers available for Dot.Net to Oracle 9i.......
With advantages and disadvantages....
With thanks....
Jovin
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgrou... more >>
Connect to Excel spreadsheet ??? - PART 2
Posted by <-> at 12/30/2003 1:04:05 AM
Hi,
Thanks to Paul Clement & William Ryan, I've connected to my Excel
spreadsheet by using the "Jet 4.0 OLEDB" provider and by setting "Extended
Properties" to "Excel 8.0". Although the connection is prefixed with
"ACCESS" rather then "EXCEL", I can successfully use the VS.NET Server
Explorer... more >>
Staic Methods in a data layer object good or Bad?
Posted by Nick P. at 12/30/2003 12:53:18 AM
We have a faily large Asp.net application and we removed all of our
dat access calls to an object that just contains the actual static
calls we use against datatables and calls that execute directly
against command objects (non query calls) We wrap all of our calls
with a Mutex to avoid collisio... more >>
legacy distributable report requires .cdx development in ado .net
Posted by Bernie Yaeger at 12/29/2003 11:28:30 PM
For more reasons than is worth going into, I have to retain a legacy
distributable Crystal report. This report requires .dbf and .cdx files that
I am able to create in .net using the odbc driver. However, for the report
to work properly, I have to generate .cdx index files for these. Here the
... more >>
Use DataSet over DataTable
Posted by Michael at 12/29/2003 4:06:37 PM
Is there ever any reason to use a DataSet over a DataTable, if I will only
be working with one sql server table throughout my system?
Thanks,
--Michael
... more >>
What is a .Net 'provider'?
Posted by Simon Harvey at 12/29/2003 2:45:37 PM
Hi
I've been able to make data driven applications for some time now. I've made
them using Java/JDBC and C#/ADO.net.
I was just thinking though - I hear the term 'data provider' quite
frequently, but I'm not sure what exactly a 'provider' is.
Is it like a driver to a *particular* database... more >>
|