all groups > dotnet ado.net > april 2004 > threads for thursday april 1
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
DataView.Row Filter Issue
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 4/1/2004 10:16:09 PM
Hi!,
I have the following code for my Dataview which doesn't work: Any suggestions...
Dim dv As DataView
dv = New DataView
With dv
.Table = TestTable
.AllowDelete = True
.AllowEdit = True
.AllowNew = True
.RowFilter = "Column1 = Select Column from AnotherTable"
'I hav... more >>
Counting items and returning values
Posted by Andrew Banks at 4/1/2004 9:03:12 PM
I have a table of product orders. It contains a row for "platform" and I
need to return how many times each platform is listed in the DB
Example data for platform could be:
XBOX
XBOX
XBOX
PLAYSTATION
PLAYSTATION
GAMECUBE
PLAYSTATION
I'd like the data to be returned as
XBOX - 3
PLAY... more >>
Sessions: A theoretical question
Posted by Ron M. Newman at 4/1/2004 8:10:48 PM
Hi,
How do you maintain sessions (that contain data) in ASP.NET applications?
1) In memory on the web-server? in this case how do you handle multiple
requests from the same session which may be routed to different machines via
a load balancer?
2) Is this database? If so, do you have to f... more >>
OT- Deklarit & ORM Projects
Posted by William Ryan eMVP at 4/1/2004 7:44:48 PM
A few months ago, a good friend of mine starting using LLBL gen to generate
data access code. He's are very hard core ADO.NET developer so I was kind of
surprised when he told me he really liked it. I decided to give the whole
ORM thing a try and found that it was surprisingly good. However, LL... more >>
Using Variables to connection to SQL2000 Database
Posted by haynesc NO[at]SPAM bf.noacsc.org at 4/1/2004 3:58:30 PM
Hello everyone,
I have a question about SQL connection strings. I have a VB.NET
application where the user enters in a name and password into 2 text
boxes: txtName and txtPass, respectively. I have 2 variables that
takes any input from txtName and txtPass and puts them into two
variables: s... more >>
stored proc works in Query Profiler, times out in VB
Posted by Brian Link at 4/1/2004 3:37:47 PM
I have a stored procedure that is hanging when executed from VB.NET.
If I "exec spName parms" from query profiler, it zips right along.
When calling the DataAdapter.Fill method, it will hang, and errors out
with the error "Timeout has expired".
The stored proc is as follows:
ALTER PROCEDU... more >>
Access Date/Time field causes Concurrency Violation
Posted by pmilin NO[at]SPAM peakpeak.com at 4/1/2004 2:42:17 PM
I'm using the OleDBDataAdapter and a Typed dataset in a databound form
in C#.
The database is Access and the table contains a date/time field. The
database data already exists and the date field has both a date and a
time (e.g. 4/1/2004 12:47:29 AM). If I include the date field when I
configu... more >>
How i know the size of "resultset"?
Posted by Matrix at 4/1/2004 2:16:37 PM
How i know the size of "resultset"?
OleDbCommand cmdPerson = new OleDbCommand("{call
PackPerson_JamesTest.allPerson_JamesTest({resultset 4, ssn, fname,
lname})}", cnOra);
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Characters unrecognized in database
Posted by hb at 4/1/2004 2:03:51 PM
How do I prevent an apostrophe or double quote copied from Word and pasted
into a textbox on my webform from being converted to upside down question
marks in my database?
I set the content type of the page with
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
- but this do... more >>
BLOBs and MemoryStream ?? VB.NET SQL2000
Posted by rcl58 NO[at]SPAM iglou.com at 4/1/2004 1:26:07 PM
I am writing an Image to SQL and can use the code below to accomplish
the streaming. However, I need to write an Image that exists in
memory. I don't want to save it to disk just to re-load and stream
it. Suggestions? Use MemoryStream() somehow?
Dim fs As FileStream = New FileStream(fileNam... more >>
when creating an xml document from a dataset
Posted by Tom Vukovich at 4/1/2004 1:15:25 PM
and returning the xml to the requesting web page, how do you insert the XML
declaration?
ds.EnforceConstraints = False
Response.ContentType = "text/xml"
ds.WriteXml(Response.OutputStream, XmlWriteMode.IgnoreSchema)
I would like to add
<?xml version="1.0" ?>
to the top of the response... more >>
Tables and HasChanges
Posted by Andy Gilman at 4/1/2004 12:20:28 PM
Why doesnt DataTable have a HasChanges method (DataSet does)?
I assume I can write one easily but i dont see why there is none.
Also I dont understand why there is no event on DataSet for
HasChangesChanges
... more >>
ReadXml from client side??
Posted by Fernando Vaca at 4/1/2004 11:55:31 AM
hi, i dont't know if it can be done, i want to write and read a xml file
from a client side.
I 've done this code:
-------------------------------------
Dim ds As DataSet
ds=filldata()
ds.WriteXml("c:\data.xml")
......
......
ds.ReadXml("c:\data.xml")
------------------------------------... more >>
DataBinding generates exception ???
Posted by Chris at 4/1/2004 11:41:15 AM
Hi,
I have a DB-table 'AirplaneTypes' that has to 2 fields that form the primary
key :
'at_name' and 'at_model'
both in the DB defined as type : char 15
MyWinform client :
void Form_Load(...) {
// m_dsAirplaneTypes1 is the DataSet
DataTable myTable = m_dsAirpla... more >>
Sorry but Repost again - Databindings
Posted by MadCrazyNewbie at 4/1/2004 10:43:34 AM
Hey Group,
Sorry but i`ve been searching everywhere for this even went out and bought a
ADO book and still carn`t find what im looking for:(
I have the following code for my postion changed:
Private Sub objdsAccess_PositionChanged()
If Me.BindingContext(objdsAccess, "Users").Position ... more >>
error while trying to connect to Oracle
Posted by Reny J Joseph Thuthikattu at 4/1/2004 10:16:36 AM
Hi,
When i try to connect to oracle from my vb.net application i am getting
following error
"Unable to find entry point named OCIEnvCreate in Dll oci.dll"
I tried to connect using Microsoft .Net Data Provider for oracle.
The connection string is "Server=pcname;uid=username;pwd=password;"
... more >>
create new DataTable
Posted by John at 4/1/2004 9:52:26 AM
(This is a repost, I got in trouble for not posting it
here first.)
What is the most efficient way to perform a filter on a
DataTable and then have a new DataTable with only the
rows matching the filter?
The only thing I can think of is the following:
1. dataTableNew = dataTableOld.... more >>
BLOBs and Stored Procedures, VB.NET, SQL2000
Posted by rcl58 NO[at]SPAM iglou.com at 4/1/2004 7:07:35 AM
Does anyone know how or have an example of Reading & Writing Blobs
using stored procedures? I need to use stored procedures to eliminate
granting user access rights to tables.
Thanks
Bob... more >>
Error Updating DataSet
Posted by Ian at 4/1/2004 2:31:08 AM
I have a dataset that I have used the .FillSchema method to add an empty copy of the underlying structure of an Access
table. I use an OledbCommandBuilder to generate the INSERT, UPDATE, statements
I then add quite a few records to the empty datatable within the dataset. This works fine
But whe... more >>
Connect to AS/400 from .NET
Posted by marcus.malmgren NO[at]SPAM plastal.com at 4/1/2004 12:49:03 AM
Hello!
I'm trying to write a VB.NET program that connects to a AS/400 Server.
I've tried almost everything, but it will not connect.
I've tried to set up a DSN using the Client Access ODBC-driver
(v8.00.04.08) but with no result. I've also tried a DSN-less
connection.
From VB.NET i'm using o... more >>
BindingContext problems
Posted by Depesz at 4/1/2004 12:46:57 AM
Hi
My english is not perfect...
I create a simple form by the Data Form Wizard. In last window of Data Form
Wizard I chose display style "Single record in individual controls". After
compilng the code my application works fine.
Next I add a DataGrid control to my form generated by the Data Form... more >>
Loading xml into dataset fails
Posted by Justus at 4/1/2004 12:41:10 AM
What would cause the xml in this example to fail when loaded into a dataset
Changing the childnode '<a>' under 'node2' to something else fixes the problem, but I really need to understand why this happens, although the two '<a>'s are under different nodes
<Body
- <node1><a>1</a><b>2</b></node1
... more >>
|