all groups > dotnet ado.net > june 2005 > threads for june 15 - 21, 2005
Filter by week: 1 2 3 4 5
Delete DataView rows from DataTable (should be simple)
Posted by MattB at 6/21/2005 12:12:24 PM
I'm using vb.net, but if you only have a c# answer, feel free to offer it!.
Anyway, I have a DataTable and a DataView which is a subset I have ID'd
to be deleted from that DataTable. I tried looping through the DataView
and deleting rows like this:
Dim dvAuto As New DataView
... more >>
DataTable.Select method bug in .Net Framework 1.1 SP1
Posted by lynch at 6/21/2005 11:38:04 AM
Since Microsoft removed the original thread from this newsgroup... here it is
again.
Just to add some comments: we are MSDN Universal Subscribers and didn't get
support from Microsoft. We are being ignored for almost 5 months. We have
tested Microsoft .Net Framework 2.0 Beta 2 and the probl... more >>
TRANSFORM statements in ADO (Excel)
Posted by Rob Wills at 6/21/2005 11:21:03 AM
I require a report (in Excel) using data stored in Excel whcih uses the
PIVOT/TRANSFORM SQL function. I've attempted this in ADO as unfortunately
the Pivot Table function in Excel doesn't appear to be able to support my
complex calculation (Sum(AVE)/Sum(Amt))
My connection string etc works... more >>
OleDb: Get Properties
Posted by Armin Zingler at 6/21/2005 10:36:09 AM
Hi,
how can I get properties in ADO.Net? I read about it in the OleDB
documentation (Chapter 14: properties) but I can not find out how to get
them in .Net using an OleDBConnection. Any ideas? I searched "everywhere"
but without success. Currently, I'm trying to get the information from the
... more >>
ado.net unable to connect from Windows 2000 after SQL server Resta
Posted by Baz at 6/21/2005 9:34:02 AM
After restarting my SQl Server instance my ASP.net applicaions running on
Windows 2000 are unable to connect to the SQL Server. My asp appplications
are still able to connect
The connection string I am using is
user id=sa;pwd=????;data source=????;persist security info=False;initial
ca... more >>
Serialization problem with SqlError
Posted by Ramon de Klein at 6/21/2005 4:34:05 AM
Deserializing SqlExceptions on Windows XP (SP2) originating from a Windows
Server 2003 SP1 machine is problemetic. It may generate the following
exception:
Exception: System.Runtime.Serialization.SerializationException
Message: Member name 'System.Data.SqlClient.SqlError server' not foun... more >>
view vs sproc
Posted by Niño at 6/21/2005 4:24:02 AM
i have a query containing inner joins....i use it to populate my truegrid.
which better way of executing my query? make a view of it or make a stored
procedure of it?
im using a dataset and dataadapter to populate a datatable to be bind as the
datasource of my truegrid.
can you suggest a be... more >>
CancelCurrentEdit doesn't
Posted by TLWood at 6/21/2005 1:38:03 AM
Hi
Using Windows.Forms in ADO.NET in VB.NET 2003.
I have 3 dataviews of the same datatable in a dataset, each a subset of the
datatable by means of rowfilter. for example:
Me.dv1 = New DataView(myDataTable)
Me.cm1 = Me.BindingContext(Me.dv1)
Me.dv1.RowFilter = "Actions LIKE '%(1)%' AND ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Cloning Datasets but also filtering
Posted by Daren Hawes at 6/21/2005 12:00:00 AM
Hi,
I have 2 Datasets with 20 tables.
Ones called Surveys and the other SingleSurveys.
Surveys contains ALL survey data (IE SurveyID = 1,2,3,4,5......). All
tables have related ID field (IE SurveyID on each table)
I need to copy over to SingleSurveys only one survey data (IE SurveyID ... more >>
Problem with varcharData
Posted by Alessandro at 6/21/2005 12:00:00 AM
Hi !
I have problem to extract data from a DB when there is a filed "Varchar"
with more or equal to 1000chars !
I don't understand why !
I add parameters like:
prmOleDb = New OleDbParameter()
prmOleDb.Direction = oParam.Direction
... more >>
sql group problem
Posted by steve at 6/21/2005 12:00:00 AM
Hi All
Using VB.net 2003 and ADO.Net with MS Access 2003 database
I want to retrieve records grouped by time, but grouped within 1/2 hour
increments
The program is for a gym membership and I display graphs of the number of
sign-ins by members over the day
The gym uses this info to rost... more >>
dataset merge with itself
Posted by Robin at 6/20/2005 6:30:02 PM
I am trying to create a dataset with multiple records that hold identical
data by merging a dataset with itself. I don't think this will work and I am
looking for other solutions.
For example, a dataset has a parent table called CATEGORY and a child table
called ITEMS. There is a primary ke... more >>
Operator '=' on System.DateTime and System.Double
Posted by googlegroups NO[at]SPAM kirklarsen.com at 6/20/2005 4:08:46 PM
I'm developeing a small app based on the Visual Studio Beta 2 and the
DataGridView.
I'm trying to add a new row to a datatable programmatically and I keep
getting a strange error about not being able to use the '=' operator
between a System.DateTime and System.Double. I do not have a double
... more >>
from mm/dd/yyyy to yyyy/mm/dd
Posted by Asif Qureshi at 6/20/2005 6:18:21 AM
The date in my application is in mm/dd/yyyy format which i use in query
to access data from a mini system on network having data in yyyy/mm/dd
format.How can i change my date into yyyy/mm/dd format in query to get
the result.Or tell me any other solution other than changing the Date
Format of my... more >>
sqltransaction
Posted by Niño at 6/20/2005 12:08:01 AM
im updating a header and detail table with an update constraint. sqlcmd1 is
used to update header, sqlcmd2 is for detail. both cmd runs in one
sqltransaction.
my problem is my second sqlcmd catches a constraint error when updating the
detail table. is it because my record in the header table ... more >>
Question regarding DataRowView.RowFilter
Posted by Stuart at 6/19/2005 11:53:01 PM
Hi There
I am having trouble with the DataRowView.RowFilter
I am giving subscribers to an asp.NET application the ability to search
through a large group of historical records based on a "Subject" field.
They have a textbox (txtSubjectCriteria) within which they enter search
criteria an... more >>
System.InvalidOperationException: ExecuteReader
Posted by Negri at 6/19/2005 6:29:05 AM
Hi, I have a little application coded with .net 1.1, my problem is that this
application worked fine in W2000. But the client change to XP, and from that
get this error.
This problem show when try to read from a table of Access XP.
Anybody knows why this happen now and not with W2000 ???
T... more >>
Return values from SQL compute commands
Posted by John Dann at 6/19/2005 12:00:00 AM
I have a vb.net program that runs summary commands on columns of a
data table. So eg I have a couple of lines of code:
MyValue= DataTable.compute(computestring, Nothing)
where eg
computestring="MAX(" & columnname & ")"
Occasionally it happens that the column is full of DBNull.Value
val... more >>
DataColumn.Expression complex calculations
Posted by Amir Shitrit at 6/18/2005 2:13:01 PM
Hi.
Does anybody know how to perform complex calculations using the
DataColumn.Expression property?
Specifically, I'm trying to calculate the difference between a DateTime
column and the current date:
DateTime.Now.Subtract(certainDate).TotalDays
Is there a way to integrate custom functions... more >>
C# to SQL Server 2000 datatype mappings
Posted by Mark Rae at 6/18/2005 8:43:25 AM
Hi,
Can anyone please point me to a definitive mapping of SQL Server 2000
datatypes to C# datatypes?
I'm currently using the mapping below, but I'm sure some aren't correct...
BigInt, int
Binary, object
Bit, bool
Char, string
DateTime, DateTime
Decimal, decimal
Float, float ???
... more >>
Displaying many-to-many relation data in dataGrids
Posted by Bachus at 6/18/2005 12:00:00 AM
Hello,
I have following problem. I have dataSet with two tables, containing data
about some people and a relation describing connections between these
people:
People:
Id
Name
Contacts:
Id
IdFriend
This is many - to - many relation, every person can have many friends and
every person... more >>
Input string was not in a correct format
Posted by William at 6/17/2005 6:42:28 PM
I am trying to update a backend Access DB once a user make a change in the
datagrid as follows:
private void dgrdResource_CurrentCellChanged(object sender,
System.EventArgs e)
{
int curColumn = dgrdResource.CurrentCell.ColumnNumber;
int curRowIndex = dgrdResource.CurrentCell.RowNumber;
s... more >>
ORA-06550 when using stored procedure
Posted by John Colaizzi at 6/17/2005 4:03:34 PM
I'm getting this error message when I run the code snipped below:
{"ORA-06550: line 1, column 18:\nPLS-00306: wrong number or types of
arguments in call to 'TEST'\nORA-06550: line 1, column 7:\nPL/SQL: Statement
ignored\n" }
The stored procedure contains a function:
FUNCTION test
( pPerio... more >>
Scroll bar in datagrid
Posted by Philip Germanos at 6/17/2005 3:57:01 PM
Hello,
I am displaying one row in a datagrid, and i made its height larger than the
datagrid height because it contains long descriptions, so a vertical scroll
bar appears but with no cursor on it to let me move down the grid.
How can i have access to the datagrid scrollbar?
or what else ca... more >>
Row height in datagrid
Posted by Philip Germanos at 6/17/2005 1:21:11 PM
Hello,
If i execute the code below, i change the row height of my datagrid to be
able to display datatable1. But then i want to display datatable2 in the
datagrid using the default row heights.
How do i switch back to the default datagrid row heights?
thank you.
Code:
cy is the row... more >>
RETURNING INTO returns ORA-01036: illegal variable name/number
Posted by deast_98 NO[at]SPAM yahoo.com at 6/17/2005 10:44:10 AM
Trying to return a value on INSERT using ASP.NET with
System.Data.OracleClient.
Errors on Execute statement. From other articles I have tried using
variable name like :p1 and also tried wrapping in anonymous block
BEGIN...;END;
Dim sSQL As String
Dim nOrderNumber As Integer
Dim cmd As N... more >>
dataset.Merge
Posted by Aurin at 6/17/2005 9:41:07 AM
I have a program that is inserting one row into a table. When I get done
with the update, the inserted row is in the DataTable twice, although it is
only in the database once. For the reasons discussed in the summary, I am
using the user-written method below to update the dataset, rather th... more >>
Drop Database Problem
Posted by PJTewkesbury at 6/17/2005 5:16:03 AM
Hi,
Environment = .NET 1.1, & ADO.NET, MS Sql
I am trying to create a database and populate it with data. If there are no
errors, then it works well. How ever, if there are any errors, I want to drop
the database.
To drop the database I use the sql command 'Drop Database MyDatabaseName'... more >>
PrintDialog question
Posted by Katty at 6/16/2005 9:07:27 PM
Hi,
Is there a way to make the standard PrintDialog to use visual styles on all
it's tabs?
I'm trying to make my application totally for XP visual
styles. = P But the first tab is shown on standard visual style. = (
Thanks,
Katty
... more >>
XML String Doesn't Load Into DataSet Correctly
Posted by Scott M. at 6/16/2005 8:26:19 PM
Why would this string of XML (when loaded into a DataSet) not produce a
DataTable with 2 columns? I am getting a DataTable with just one column
(ProductName). When I try to access the second column in the DataTable
(ds.Tables(0).Columns(1)), I get "Cannot find column 1". By the way, there
... more >>
How to clear connection pool?
Posted by Srinivas Kollipara at 6/16/2005 2:12:03 PM
Hello all,
I am wondering how to clear the connection pools from C# program, because my
program everytime it runs , it needs 70 connections... so whenever my
project fails i wanted to reset connection pools, or else after 3 to 4 runs,
i am getting an error "The timeout period elapsed prior to ob... more >>
Interrogate for Parameters?
Posted by xenophon at 6/16/2005 1:40:51 PM
Is there a way to interrogate a database for expected Stored Procedure
parameters without using OleDbCommandBuilder.DeriveParameters() ?
Thanks.
... more >>
Index 2 is not non-negative and below total rows count.
Posted by MG at 6/16/2005 12:57:04 PM
Hello All,
I'm getting this error on a ASP .NET apps:
Index 2 is not non-negative and below total rows count.
Line 443:
Line 444: Dim ParentTableView As New
DataView(DsSellers1.Tables("SELLERS"))
Line 445: Dim CurrentRowView As DataRowView =
ParentTableView(Me.cboSellers... more >>
ExcuteReader error ???
Posted by serge calderara at 6/16/2005 12:27:03 PM
Dear all,
I have exeecuting the following code :
Dim m_Cmd As New OleDb.OleDbCommand(sSql, Con)
Con.Open()
Dim m_OldbReader As OleDb.OleDbDataReader
m_OldbReader = m_Cmd.ExecuteReader(CommandBehavior.CloseConnection)
Running this I have an OLDBException error saying :
"No value given ... more >>
Mapping Columns w/o DataAdapter?
Posted by Bostonasian at 6/16/2005 8:13:16 AM
The title may not reflect what I exactly want to acheive, but what I
want to do ultimately is to map columns between 2 data tables. One
already has data and the other has schema but no data. And I want to
transfer the data to the empty one(Of course, those two datatable has
different column name... more >>
Connection Strings
Posted by michaeltorus at 6/16/2005 4:59:59 AM
Hi
Trying to sort out how to implement the use of connection strings with our new .Net Data Acces Layer(DAL).
2 solutions have been propoesed. Both suggest storing the connecion string in the machine.config file. The DAL uses SQLCleint namespace. At this stage there is only one SQL data store(... more >>
CommandBuilder and Joins....
Posted by Marc at 6/16/2005 2:46:04 AM
Hello.
I have two tables in a dataset which have both been updated, i am aware
that i cannot use the commandbuilder to update tow tables with a join,
and i obviously get referential integrity errors when i try to update
them one at a time. I am aware i need to roll my own update routine:
has ... more >>
UPDATE problems with Parameters
Posted by MW at 6/16/2005 12:00:00 AM
Hello,
I have a problem with parameters in OleDbCommand in Access 2000 database.
For example this code works and updates the row:
OleDbCommand comm = new OleDbCommand("UPDATE DataTable SET ContactID =
'Marcin', Test = 'just a test' WHERE RowID = @RowID ;",
this.databaseConnection);
comm... more >>
Concat two columns in a SELECT with NULL (Access)
Posted by Martin Rothschink at 6/16/2005 12:00:00 AM
Hi,
to concat two columns in Access I can use + or &. If I use + the NULL
pushes through, so I want to use &.
Example: SELECT Firstname & ' ' & Lastname AS Name ...
Problem: The OleDbCommand object doesn't accepts & in a SQL statement,
only + is allowed.
But now I get empty data if Fir... more >>
Sql connection
Posted by Victor Ciochina at 6/16/2005 12:00:00 AM
Hello,
I have a problem with my application. I use c# to connect to an sql server.
I noticed that after the first connection, my server keeps at least one
connection always opened although I close all my connections in finnaly
block
Thanks
... more >>
Retrieving actual rowcount from SQLDataAdapter when using StartRec
Posted by Arne at 6/15/2005 9:52:06 PM
Does anybody know how to get the actual number or rows returned when using
the StartRecord and MaxRecords parameters with the SQLDataAdapter.Fill()?
Since the whole resultset is returned from SQL Server it would be nice to
access this information. And appending SELECT @@ROWCOUNT to the origin... more >>
Strongly typed table missing "FindBy..." method
Posted by mjf at 6/15/2005 4:03:49 PM
I created strongly typed dataset objects by configuring data adapters
using the VS.2003 wizard. All the tables have primary keys; some have
multi-column primary keys.
Some of the tables have FindBy... methods, such as FindByValue_name
(where Value_name is the name of the primary key field), o... more >>
Dataset refill issue - Stalls for 30 to 40 seconds
Posted by J. Clay at 6/15/2005 4:01:55 PM
I have a typed dataset with three tables, one master and to child. This is
a contact management app, so I pull all of an organization contacts and
associated details into the set. (Anywhere from 1 to 100 contacts and their
associated detail). My form is bound to the dataset using VS2003 form
d... more >>
A couple of questions about updating data through a dataset
Posted by Rod at 6/15/2005 2:55:22 PM
I have been using .NET for three years. We are currently using VS .NET 2003
and SQL Server 2000. Whenever I have needed to update data I normally
created a SqlCommand object, assigned it the appropriate string (depending
upon whether it is a stored procedure or not) and executed it. However... more >>
Typed Dataset Reserved Word: Locale
Posted by Michael McHenry at 6/15/2005 12:36:48 PM
If you try to create a typed dataset with a table named Locale, the
dataset generator fails to create a unique name (like by using an
underscore) and instead gives you the following compile-time error:
Property or indexer 'xxx.Locale' cannot be assigned to -- it is read
only
You can resolve t... more >>
How can I read pdf file and save content in text file ?
Posted by Alex Smith at 6/15/2005 11:34:43 AM
Hi Friends,
I want to open and read a pdf file from disk And save this content of pdf
file into .txt file.
In short I want to convert content of pdf into .txt formate and save this
text file on desk.
Thanks.
Alex.
... more >>
Pass uniqueidentifier to stored procedure
Posted by xanthviper NO[at]SPAM xanthviper.com at 6/15/2005 10:56:53 AM
Hey there,
I've been looking around for awhile now on how to do this and haven't
been able to really find a clear answer.
I have a stored procedure that inserts a new entry into a SQL 2000
table. The Stored Procedure(SP) accepts an ID that has been declared
as a UNIQUEIDENTIFIER in the SP,... more >>
Insert DataColumn At a particular index
Posted by Todd Plambeck at 6/15/2005 10:04:45 AM
Is it possible to insert a datacolumn into an existing datatable at a
particular location? Example, I've got a datatable with 4 columns. I want
to add another column at index 0. I'd end up with 5 columns, columns(0)
would be my new datacolumn.
Thanks,
Todd
... more >>
Howto catch changes in the database
Posted by Derckie at 6/15/2005 5:55:04 AM
Hello all,
I need something in VB.NET that monitor changes in a database (any DB or
even an XML file or something). I can make something that checks every 5
seconds, but maybe there is a better solution like an event is fired from
ado.net. I do not have to make changes or something, but nee... more >>
row display in a datagrid
Posted by Philip Germanos at 6/15/2005 2:18:03 AM
Hello,
I want to display a single row in a datagrid. but this row has 28 attributes
and some of them are brief descriptions(2 to 3 lines). To display data nicely
i want my grid to enlarge in height and not in width, so columns have a
constant width where the title fits in and cells of the r... more >>
INSERT command doesn't work in Access
Posted by MW at 6/15/2005 12:00:00 AM
Hello,
I have a problem with calling INSERT command. It throws everytime a SQL
exception, even though the syntax is proper. At the begining I've tried
using OleDbCommand, and it worked for 2 tables, but it doesn't work for
third final one. These are really easy tables, so I'm really shocked... more >>
Detect all SQL Server in one network
Posted by AAA at 6/15/2005 12:00:00 AM
Hi,
How can I detect all SQL Server, and show all server name in a combo box in
vb.net ?
Thank you very much
Regards
... more >>
|