all groups > dotnet ado.net > february 2004 > threads for tuesday february 24
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
Sample needed
Posted by John at 2/24/2004 10:50:53 PM
Hi
Is there a simple asp.net site with MS Access backend that I can use as a
learning example?
Thanks
Regards
... more >>
ASP.Net
Posted by Alex Chan at 2/24/2004 8:50:17 PM
Hi All,
Is anyone tried the ASP.net Data bind control? Will you use it for
implementation? Is it good?
Please advise.
Thanks
... more >>
Using Oracle security
Posted by Paul Speranza at 2/24/2004 7:25:49 PM
I have a web app that needs to work with a PowerBuilder app's database. This
means sharing tables for user rights and other such things. The PB app uses
Oracle's logons so the user id and password are passed in the connection
string. To authenticate a user they are telling me to get the id and
p... more >>
Generating typed datasets - how to??
Posted by John Sparrow at 2/24/2004 7:10:30 PM
Anyone know of reference material for creating typed datasets
programatically?
I want to get similar functionality to the "Generate dataset" link in
SqlDataAdapter. I've read mention of an example in framework beta2.. anyone
got a copy I can download???
I guess I should be looking at TypedD... more >>
Creating a DataSet with Data and Schema based on data in DataRow
Posted by Andy Sjostrom at 2/24/2004 5:16:25 PM
Hi!
I have a DataSet (dsTracking) which contains a row is updated with DataSet
XML and inline Schema.
So, in a DataRow I have XML data and schema that can be used to create a
DataSet.
The XML data and schema was created using DataSet.WriteXml with the
appropriate XmlWriteMode:
ds.WriteXml... more >>
Puzzled & "SELECT Scope_Identity()"
Posted by Lloyd Dupont at 2/24/2004 5:14:02 PM
I used a SqlAdapter.
I have an InsertCommand whose CommandText goes like that
INSERT INTO table ( field1, field2, ...) VALUES ( @field1, @field2, ... )
I have an event handler for the RowUpdated event
which goes like that:
IDbCommand cmd = myConn.CreateCommand();
row[identity] = cmd.Ex... more >>
Exception "Object must implement IConvertible." during parameterized query
Posted by Andre Ranieri at 2/24/2004 4:51:07 PM
Folks
I'm getting a fatal exception thrown when I try to run a parameterized insert query from a SqlDataAdapter. The table I'm appending records to is not the same table that populated the dataset in the first place. In my SQL database, ServiceID and Amount are int 4 and money 8 datafield types,... more >>
Datagrid Question -- Beginner
Posted by GG at 2/24/2004 4:31:08 PM
HI
I am looking for a way that I can grab the value of a particular cell in a particular row. Is that possible and if so how can I do it
Any help would be appreciated
Thank You... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
using SqlTransaction in ADO.NET Problem
Posted by Ric Pullen at 2/24/2004 2:53:45 PM
I am writing a data upload routine, i need to split 1 row of data into 3
tables.
I am tring to do the followin
Insert Patient Details
Insert Sample
Loop
if Old_Sample <> Current_Sample then Insert_Sample
Loop
Insert_Resuilts
end loop
... more >>
Convert datetime to System.DateTime
Posted by Martin Schmid at 2/24/2004 2:43:58 PM
I have a table w/ a column of datetime (MSDE). How do I convert that to a
System.DateTime type?
--
Thanks,
Martin Schmid, EIT, CCSA, MCDBA, MCSE
... more >>
GetString equivalent?
Posted by Tom at 2/24/2004 2:07:28 PM
Is there anything in ADO.NET that is equivalent to the old ADO GetString?
This would return a record/recordset as a string.
Thanks.
Tom
... more >>
Need Help with select
Posted by Dave Brown at 2/24/2004 1:31:58 PM
Hi all
I have a DataTable containing all String datatypes.
I need to query the table for records where one of the fields numeric value
is between two other numeric values.
I've been trying the following
string val1 = '1';
string val2 = '2';
filt = "Field1 between '"+val1+"' and '" + val... more >>
Simple Iterator
Posted by Martin Schmid at 2/24/2004 1:00:32 PM
I have a dataset that contains view... i.e., the structure is like this:
[char(9), date,char(255)]
Using ado.net in C#, how to I create an 'iterator' on this table to read the
first row, next row, etc.. until I reach the last row.
--
Thanks,
Martin Schmid, EIT, CCSA, MCDBA, MCSE
... more >>
how to run a sql file using ado.net?
Posted by haiwen at 2/24/2004 12:46:08 PM
Hello, everyone
I have a web application that includes a SQL database. we used to install the database seperately since it needs to be installed on another computer.
I want to write a window application that can be added in the Custom action of the Web set up project, but it seems I can not use a... more >>
DataSet.Merge not saving to DB
Posted by RobR at 2/24/2004 12:31:07 PM
MAJOR HELP NEEDED:
I can't seem to track down the problem with this code! No errors are thrown, but the data does not get saved back to the "destination" database. HELP!!!!????
Here's the situation: taking a dataset from SQL, want to merge it with an Access dataset, and save it - THAT'S IT! The ... more >>
how to use InsertCmd with data Adapter?
Posted by Rich at 2/24/2004 11:49:25 AM
Hello,
I have a data grid (grd1) on a form (vb.net) which
displays data correctly from an Access mdb table. I
populate the grid control with a typed dataset (ds1) which
I fill from a data adapter (da1), connection conn1.
Now I want to insert a record into the Access table and
reflect ... more >>
Acessing a field in an OleDbDataReader
Posted by Bisley at 2/24/2004 11:41:38 AM
I have an OleDbDataReader that gets created based on the following
(simplified) SQL
select table1.field1, table2.field2 f
from table1, table2
where ......
on my development machine, the following line works fine.
myOleDbDataReader.GetString(myOleDbDataReader.GetOrdinal("field1"));
How... more >>
Double.NaN and SQL float data type
Posted by Guogang at 2/24/2004 10:59:52 AM
Hi,
I use C# to fill a data field of "float" data type in SQL 2000 server. When
I use Double.NaN value, there seems to be a problem in "Query Analyzer". I
can no longer select the row, an error message: "Numeric value out of
range". However, in Enterprise Manager, I can still see the row with ... more >>
all pooled connections were in use
Posted by dotNET Developer at 2/24/2004 10:54:54 AM
If this forum is the wrong place to discuss this issue please point me to
the right forum...
We have an ASP.NET application (InterNet app) originally written in .NET 1.0
running for about 2 years. Recently we installed .NET 1.1 and upgraded the
app to 1.1. During the deployment we also install... more >>
query statement returns error only in code
Posted by CSharp at 2/24/2004 10:36:54 AM
Hello all,
I have to execute the following simple query in MS Access and I am using the
OleDbCommand object to do this.
SELECT Entries.MessageID, Entries.DatePosted, Entries.MessageBody,
User.UserName FROM Entries INNER JOIN User ON Entries.UserID=User.UserID
I get an error saying:
Synta... more >>
Names with apostrophes
Posted by Jason at 2/24/2004 10:17:04 AM
I have a web form that is connected to a database. I'm collecting user
information and when a user with a name like O'reilley enters his name it
fails because of the apostrophe. How do I detect the apostrophe and pass
the insert command a safe string to insert it into the database. Is there
a... more >>
Schema (XSD) creation for BULK INSERT (Interop.SQLXMLBULKLOADLib) /repost/
Posted by wisecoyote at 2/24/2004 10:16:06 AM
I'm using WriteXmlSchema to create a schema from a dataset. The next step is to do a BULK INSERT into SQL SERVER 2000, but the XSD file needs the changes listed below to work correctly. Is there a better way to create a XSD for BULK INSERT? Or what is the best way to change and remove elements in th... more >>
Tracing Data Adapter Activity ?
Posted by JezB at 2/24/2004 10:14:15 AM
How can I trace what a data adapter is actually trying to do ? I have a
problem since my adapter is always affecting 0 rows on any "Added" or
"Modified" records in my data table, but deleted rows work fine. I can't
seem to "step into" the stored procedures when the Update method of the data
adap... more >>
SQLDataAdapter's UpdateCommand not working
Posted by Andre Ranieri at 2/24/2004 9:21:08 AM
Folks
I've been working on this since yesterday, mined msdn and the usual discussion groups to no avail
I'm trying to do some maintenance on our database, and clear out certain phrases from the JobInstructions field in our database. sCriteria will include some year-specific phrases like "Okay t... more >>
Dataview Rowfilter
Posted by Martin at 2/24/2004 8:22:57 AM
Hi,
I want to filter on a date column of my view. I use the following syntax
:
MyDataset.MyTable.DefaultView.RowFilter = "MyDateColumn >= #" & StartingDate
& "# and MyDateColumn <= #" & EndingDate & "#"
It works perfectly until I change my date format to dd.mm.yy. I get an error
message ... more >>
Creating new table in database.
Posted by Amir jalaly at 2/24/2004 7:21:05 AM
how can create a new table in a dataset and database with some columns that I want
We have a dataset ,dataadaptor and dataconnection and i mean with ADO.NET statments. ... more >>
DataSet.Merge not saving to DB
Posted by RobR at 2/24/2004 7:11:09 AM
MAJOR HELP NEEDED:
I can't seem to track down the problem with this code! No errors are thrown, but the data does not get saved back to the "destination" database. HELP!!!!????
Here's the situation: taking a dataset from SQL, want to merge it with an Access dataset, and save it - THAT'S IT! ... more >>
Pesky DataColumn
Posted by scorpion53061 at 2/24/2004 6:35:57 AM
In this statement:
select CONVERT (CHAR(10), DATE, 101) AS DATEOFORDER
the dataset had it appear as "DATE" which was empty and as DATEOFORDER which
was as it should be.
If I try:
Dstran1.Tables(0).Columns.Remove("DATE")
it balks and says there is no column called "DATE"
I dont want ... more >>
Dataset: Fieldaccess using DB Tablename
Posted by fpleyer76 NO[at]SPAM gmx-dot-de.no-spam.invalid at 2/24/2004 5:28:17 AM
Hi,
I store an SQL Result with two tables in my DATASET.
Now I want to access the fields int_width which existin both tables.
I only found the solution shown below.
Is there a solution where I can use the name of the Database tabel
and the fieldname ([database table].fieldname)
e.g. tbl_... more >>
How to get real datacolumn type?
Posted by neomat8 NO[at]SPAM hotmail.com at 2/24/2004 4:47:50 AM
Hi,
I'm trying to get a DataColumn type (VB.Net + Framework 1.1).
The property DataColumn.DataType is supposed to return dotNet
framework type. But no matter what is the real type of the DataColumn,
all I get is System.RuntimeType.
I'll really apreciate a tip to solve this problem.
Thanks... more >>
Single connection or not ?
Posted by Julien Cheyssial at 2/24/2004 12:55:55 AM
Hi all,
To summarize my problem, I'd like to know if it's better to open many short
SqlConnection for each database calls, or one longer SqlConnection used by
all database calls.
Let's say I have a function called "GetMyPageData()" in my Business Logic
Layer :
function GetMyPageDataInXml... more >>
data type mapping
Posted by mjkhan at 2/24/2004 12:06:07 AM
Does anyone know how .Net data types are mapped to DbType and vice versa?... more >>
|