all groups > dotnet ado.net > december 2003 > threads for monday december 8
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
mdac 2.7 and unique ID
Posted by subi at 12/8/2003 10:12:26 PM
I noticed that if I have mdac 2.7 on my server, installed
together with Visual Studio .Net installation, everytime
I refer to a unique ID, it returns me the ID without the
curly braces.
Any idea how to retain the curly braces?
Thanks and regards,
subi... more >>
Formatting doesn't work
Posted by Michael Wong at 12/8/2003 10:08:41 PM
I am trying to format a textbox (to display it as percentage) using the
following code (taken from the help sample), but it doesn't work and I found
the faulty line but don't know what to do with it.
private BindDiscount()
{
Binding b = new Binding("Text", this.dsInventory1, "Table.Discount")... more >>
RowState doesn't change! in DataBind
Posted by Sérgio at 12/8/2003 8:06:02 PM
Hi all.
I have a DataTable populated and binded to a multiple controls.
When i change a value in any control, that value is refleted into DataTable.
But there's a bug: the property RowState for the current Row is "Unchanged".
The value would be "Modified."
Any one can help me PLEASE !
Thanks... more >>
DB table name n DS
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/8/2003 7:59:33 PM
Hi,
When I retrieve a table from database to Dataset, Is there anyway to
know what is the table name,its name originaly in the database,
through any DataSet property, or form Bindingcontext ones?
MTIA,
Grawsha... more >>
Image Columns
Posted by Roshawn at 12/8/2003 7:01:10 PM
Hi,
I was wondering if I could create a DataColumn that can contain images and
add it to a DataTable. It appears there is no System.Image datatype to
choose from. How do I go about doing this? (I want to store images in the
database, not just a string indicating where they are located)
T... more >>
Binding to DataGrid
Posted by jasmine at 12/8/2003 6:56:08 PM
hi friends
I am developing web application in .NET using c#. I encounter a problem in binding the results to the datagrid. I have a storeprocedure that produce 2 results set. I need to read the results and bind it in a datagrid control. But i am able to bind only one result set eventhough i am us... more >>
SQL Parameters
Posted by Jim Heavey at 12/8/2003 6:44:43 PM
I am writing a "generic" routine which will return to the "calling"
procedure a list of all of the parameters and the parameter types. The
intent is the calling program will read the "Parm names and Types" and
build a HashTable of the values which will then be passed back to
actually build ... more >>
serializing object to db
Posted by Karl at 12/8/2003 6:33:43 PM
Hi,
Using C# and I need to instantiate an object and then
serialize it and save it to a database.
I have declared my class and used the [Serializable] tags
etc.
I am using FileStream and BinaryFormatter to serialize ok
but when I come to save to the db I get an error saying I
need ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
inserting HTML into SQL Server
Posted by Mitch Abaza at 12/8/2003 6:04:34 PM
I've got a simple SQL Server 2000 table with an ntext field defined and I'm
having a heck of a time inserting html into it. Everytime I try, I get an
ADO.NET error complaining about invalid syntax because its trying to parse
out the various HTML tags (>,<,+, =) and it's puking. Is there a way t... more >>
Problem with passing SqlParameter in VB.NET
Posted by Niksa Baldun at 12/8/2003 5:46:44 PM
Check this out. I try to execute a stored procedure on SQL Server 2000 like
this:
cmdA = New SqlClient.SqlCommand("NP", cnnMain)
With cmdA
.CommandType = CommandType.StoredProcedure
.Parameters.Add(New SqlClient.SqlParameter("@Name", strName))
.Parameters.... more >>
Connection Pooling.
Posted by lee337_g NO[at]SPAM yahoo.com at 12/8/2003 5:19:09 PM
Hi,
I've got a small C# application that connects to my database via the
..NET OLE DB managed provider and it targets the 1.0 version of the
..NET framework. Pooling seems to be working fine, and I'm not seeing
multiple connections fired up during a run through the app. However,
when I targ... more >>
The rows aren't deleted
Posted by yoramo at 12/8/2003 4:16:36 PM
Hello
I'm trying to delete a row from a dataset with the following code:
public void Update()
{
oleDbDataAdapter3.Update(dataSetGen11) ;
}
public void Delete(int iIndx)
{
dataSetGen11.Tables["Stam"].Rows.RemoveAt(iIndx) ;
Update() ;
dataSetGen11.Tables["Stam"].AcceptC... more >>
Transaction and ADO.NET
Posted by Francois Malgreve at 12/8/2003 4:16:08 PM
Hi,
I am using SQLTransaction.
I just wonder if it is possible to use the same transaction over multiple
command object.
I would like to have 3 commands object in my code (3 inserts or updates) and
put them in the same transactions.
Somehow in the .NET framework reference, it is using a sing... more >>
update db with modified column in dataset with existing connection
Posted by Zeng at 12/8/2003 4:14:12 PM
Hello,
I have a dataset with just one row and an existing open connection. The
datarow contains some changes. Would someone know an efficient way in
terms of performance to do this? Thanks!!
... more >>
Calculated Fields in a DataTable
Posted by dorong NO[at]SPAM earthlink.net at 12/8/2003 3:29:16 PM
I am looking for an elegant way to have a calculated field in a
DataTable. Using the Column.Expression property appears to be limited
to simple expressions. An example of where this might be necessary
follows:
Suppose we have 2 tables - Order and OrderStatus. In Order we have a
field called S... more >>
Oracle .NET Data Provider and positional parameters
Posted by fuzzy333 NO[at]SPAM hotmail.com at 12/8/2003 3:25:52 PM
I'm trying to call a stored procedure adding parameters by specifying
their names. I used to do this in VB with the NamedParameters option
on a recordset I believe. If someone could tell me how to do this i
would be very gratefull.
Anyway while I was trying some stuff out to get this to work... more >>
"does not allow nulls" errors
Posted by Karim at 12/8/2003 2:14:24 PM
I am using typed datasets and I am getting "does not allow nulls" errors
when I add new datarows. Where in the schema (xsd file) does asp.net know
that a column is required? I do not want to add default values for each
column.
Karim... more >>
[ANN] Firebird .NET Data Provider 1.5 RC 1 available for download.
Posted by Carlos_Guzmán_Álvarez at 12/8/2003 1:29:25 PM
Hello:
Firebird .NET Data Provider 1.5 Release Candidate 1 available for download.
Release Changes:
- Bug fixes.
- Better fit to ADO.NET.
- Improved blob reads.
- Improved character sets handling.
- Performance improvements.
- Added support for Firebird-like connection stri... more >>
SQL Connection String on a NON-standard TPC/IP Port
Posted by Jim Ciotuszynski at 12/8/2003 1:24:29 PM
Anybody know how to connect to a SQL server with a port installed on a port
other than 1433?
Thanks,
Jim
... more >>
Date/Time Question
Posted by Robert at 12/8/2003 1:03:51 PM
I have a SQLConnection object, DataAdapter, and Dataset on my form. I am
able to connect to the SQL 2000 server and retrieve data into my dataset.
When I bind a textbox to a dataset column which contains a date, I see both
the date and time displayed in the box. How can I only display just the da... more >>
ADO Command - .Properties("XSL").Value = XSL_FILE
Posted by Terry Aney at 12/8/2003 12:51:28 PM
I used to have the following code in VB/ADO when using a
FOR XML clause in SQL Server. Is there a .Net/ADO.Net
counterpart?
' Set strm = New ADODB.Stream
' With strm
' .LineSeparator = adCRLF
' .Mode = adModeRead
' .Type = adTypeText
' .Open
' End W... more >>
Date with RowFilter
Posted by Stan Sainte-Rose at 12/8/2003 12:50:48 PM
Hi,
I have a little problem with the Dataview Rowfilter.
I use the following syntax to filter my datas
VueMarge.RowFilter="idbonf<>0 and dcdef>=#" & tDate1.value.ToUniversalTime &
"# and dcdef<=#" &
tDate2.value.ToUniversalTime & "#"
But it doesn't work. I can't retreive any datas from m... more >>
Problem with connection to AS400
Posted by Uri Dimant at 12/8/2003 12:36:03 PM
Hello,friends
I've got this error now after user tries to connect to AS400 ("Ordinal=1
Status=UnsupportedConversion)
Can someone shed light on the problem?
Public Const CONNECTION_STRING As String = "Provider=IBMDA400;Data
Source=00000.1;User ID=KK;Password=RR"
Private Sub Form1_Load(ByVal s... more >>
Retrieving from a datareader by column Name with multiple columns same name
Posted by Jamin Mace at 12/8/2003 12:30:41 PM
I am trying to pull data out of a data reader by column name from a cmd that
joins to tables. Both tables have an "ID" column. How do I access by column
name and include the table to access from? All of my code and sql is below
I want to access the data this way to that I don't have to alias ... more >>
How to update DataSet without moving in data-bound form???
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/8/2003 12:19:31 PM
Greetings,
I would like to know of a way to reflect changes to dataset from
data-bound form without the need to move forward?
MTIA,
Grawsha... more >>
Ddata bindings (Bindingcontext)...Please Help!
Posted by grawsha2000 NO[at]SPAM yahoo.com at 12/8/2003 12:15:17 PM
Greetings,
Thank you for your kind attensition...
I have an app, one MDI form,frmMDI and one childe frmData. I did
databinding,using frmMDI bindingcontext property, to a table in the
dataset (dsEmployees). I use frmData to enter and search data. I use
dsEmployees to to get records from t... more >>
Updating datasource from a DataGrid filled with join statement
Posted by Markus Heid at 12/8/2003 11:34:21 AM
Hi,
I've got following problem: I'm filling a DataGrid with a data retrieved
from a join statement. The user can insert new lines into the grid or
manipulate existing ones. My question is how can i write that changements
back into the database if I have to insert values into several pages?
Inse... more >>
Concurrency question
Posted by Bill at 12/8/2003 10:41:27 AM
Here's the basic problem pertaining to the question to
come.
Using Access Database with the following tables
Customers
-CustomerID (primary key)
-Customer name,address,phone
Orders
-OrderID (primary key)
-CustomerID (referential key)
-Order Data
OrderDetails
-OrderDetailID (Prima... more >>
Slow dataset initiallization problem
Posted by kevin at 12/8/2003 9:53:25 AM
hi all
I have a dataset generated by an oleDbDataAdapter, there are about 20
columns in the dataset, but it seems like it takes a long time to initialize
the dataset, e.g. if I
fill the dataset on a button click, it will take 2 to 3 seconds to return
the first fetch, but all clicks onward wil... more >>
image column inside a dataset
Posted by Uzi Baruch at 12/8/2003 9:37:21 AM
Hi!
does anyone knows how can i put an image column inside a typed dataset.
i read that it's possible but couldnt find how.
thanks,
Uzi
... more >>
How do I read new lines from a table column ?
Posted by reddyduggempudi NO[at]SPAM hotmail.com at 12/8/2003 9:05:43 AM
Hi,
I am using .NET 1.1 and SQLServer 2000. I have a table with some strings
with new line chars. E.g.: "This is line1.\nThis is line2.".
When I read this using a DataReader into a string, it is reading as
@"This is line1.\nThis is line2.". So, when I display it using a
MessageBox.Show(myMe... more >>
Excel and Scientific Notation
Posted by Paul at 12/8/2003 8:28:31 AM
Hi,
I got around Excel omitting certain cells when its type is
numeric by providing Extended Property IMEX=1.
Now the problem is the numeric values aren't really
numeric at all -- it's a symbol that happens to be
numeric. Excel is returning these symbols in scientific
notation and in ... more >>
Code in App.Config
Posted by Lora Connors at 12/8/2003 5:15:52 AM
The location of my Access database is "c:\lora\lora.mdb".
I'd like to declare a Common Variable that can store the
Connection String values for a Database. But, I'm not
sure about the code to be written in the App.Config.
Also, how do I bind it at run time using code?
Thanks!... more >>
datatable-sort
Posted by reiks at 12/8/2003 3:56:12 AM
I have a datatable . My requirement is to sort the table
rows in ascending and descending order basing on the
columns which I give it.
I've used the following expression
ds.Tables[0].DefaultView.Sort="au_fname";
but it's sorting in ascending order but not in descending.
How to speci... more >>
Listing 'active' users connected to a SQL Server database.
Posted by Steve Randall at 12/8/2003 2:56:09 AM
I'm sure this has been done before but I can't seem to
locate anything on this subject so...
I am looking to write a management component using VB.NET
and ADO.NET that returns a list of the 'active' users
against a specific named database in SQL Server 2000. The
key point here is 'active'... more >>
|