all groups > dotnet ado.net > august 2004 > threads for august 1 - 7, 2004
Filter by week: 1 2 3 4 5
Oracle Stored Procedure - Wrong Number of Parms Or Wrong DataTypes
Posted by Jim Heavey at 8/7/2004 4:49:01 PM
Hello, I am trying to learn how to use stored procedures within the .Net
environment.
I have been successful in calling a stored procedure with a "REFCursor", and
NO input parameters, but when I attempt to call a stored procedure with a
single input parameter and an output parameter with a ... more >>
Oracle PLSQLRSet Property
Posted by Jim Heavey at 8/7/2004 12:15:02 PM
I was reading Oracle Documentation about the need to set the PLSQLRSet
property to "TRUE" if you will be returning a recordset. To do this it
indicates that you should use the Command.Properties["PropertyName"] = TRUE.
I find no such property for the .Net environment. Perhaps these instruct... more >>
Oracle DataType
Posted by Jim Heavey at 8/7/2004 9:21:01 AM
If I have a variable described in Oracle as NUMBER(6) or NUMBER(4) what
datatype does this translate into when I am building a parameter? There is
no "Number" data type to select from when I am populating
"Oracle.DataAccess.Client.OracleDataType". When does the number become INT16
vs. INT... more >>
Is there a way to specify a variable value in a Typed Dataset
Posted by Rythm at 8/6/2004 8:45:03 PM
This might be almost impossible, but I thought I might ask anyways.
I have a value stored in my Config file or a property in the same Namespace
(DataLayer)
I want to see if there is a way that I can specify in the XML of the Typed
DataSet to use this value.
For example:
<xs:element nam... more >>
Question about SqlTransaction
Posted by Issac at 8/6/2004 7:35:00 PM
Hi,
I am writing a module which will update 2 tables
(Master/Detail) in SQL database. There's a foreign key
protection among those tables so that I have to add a
record in Master table prior to add record in Detail
table. What I want to do is I want to create a
SqlTansaction to rollba... more >>
delete a row from a datagrid
Posted by fanor at 8/6/2004 5:49:44 PM
Hi guys,
I have a datagrid bound to a datatable. How can I delete a row from the
datagrid without pressing the key delete. I was looking for some
datagrid method that can delete de current row, but I didn't find it.
Thanks a lot for your help,
... more >>
OT
Posted by William (Bill) Vaughn at 8/6/2004 3:30:59 PM
Happy Birthday William.
--=20
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.=20
This posting is provided "AS IS" with no warranties, and confers no =
rights.
... more >>
There is no original data to access
Posted by Josh at 8/6/2004 2:53:40 PM
hi, i'm getting this error when updating a datarow and have no idea what's
causing it...
appreciate any help
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Data.VersionNotF... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
better use ADO.Net
Posted by ruben barzallo via .NET 247 at 8/6/2004 2:17:31 PM
(Type your message here)
Hi,
What is better way to use ADO.Net in applications with much transactionality?
SProcedure?, Command?, DataAdapter?, DataSet?
What is the best?
Sorry for my English.
--------------------------------
From: ruben barzallo
-----------------------
Posted by a ... more >>
Oracle Stored Procedure
Posted by Jim Heavey at 8/6/2004 1:35:01 PM
If I have a stored procedure in which one of the input Parameters secifies a
Default value, do I still have to create the parameter anyway? I tried not
providing and it says that I a missing a parameter...so it seems heavily
waited in the direction of I have to provide, but I wanted to check ... more >>
DataAdapeter Events
Posted by runningdog at 8/6/2004 12:35:00 PM
Hi,
I am writing a control that needs to respond to changes in the DataSet that
it is bound to.
Is there an event raised that I can catch to check every time the
DataAdapter performs a fill.
TIA Steve
... more >>
How do I map INSERT parameters to DataTabler Columns?
Posted by Tazama at 8/6/2004 12:17:04 PM
I wan to execute an update command that will insert many new rows into a
database table. I loop through my dataset running the update command on each
datable. The problem is that the update commangd fails. I want to map the
parameters used in the insert command to the columns of the datatab... more >>
2 DataView's from 1 DataSet/DataTable influence each other...
Posted by DraguVaso at 8/6/2004 12:09:31 PM
Hi,
I have 2 comboboxes, both bound to a different DataView, but thoe DataViews
are bound to 1 DataTable in 1 DataSet.
Like this:
Dim dvwList2 As New DataView
dvwList2 = MyDataSet.Tables("tblAccounts").DefaultView
dvwList2.Sort = "Account ASC"
cmbAccount.Da... more >>
Access or SQL Server?
Posted by Peter at 8/6/2004 11:00:56 AM
Hi,everybody,
I'm a newbie of .net, I've programed some database code with VB6 and Access
.. Now,I'm turning to vb.net and can't decide which database tool to use,
Access or SQL Server? Could somebody give me suggestions? Any suggestions
will be appreciated ?
... more >>
Monitoring OleDbConnection pool
Posted by -bda- at 8/6/2004 4:25:01 AM
Hi,
I've a question about monitoring OleDbConnection pool in performace counter.
Am I able to do this ? I know I'm able to monitor SqlConnection pool through
..NET CLR Data performance object, but I really need use OLE Db provider for
many reasons.
Thank you... more >>
@@Identitiy in vfp
Posted by Mark Vroom at 8/5/2004 8:55:47 PM
I need some help on inserting records from vb.net into Visual FoxPro. In
VFP8 we (finally) got primary key type fields. That solved some issues with
the oledb driver, the driver is now able to determine which field the
primary key field is. Unfortunately I still cannot find a property like (for
... more >>
Running a simple query
Posted by John at 8/5/2004 6:55:01 PM
Hi
What is the easiest way to get a bunch of records from an access table based
on a where condition? I don't need to write back anything, just want to
check if any records matching a certain condition exist in the table.
Thanks
Regards
... more >>
subclassing a DataRow class in a typed dataset
Posted by Tim Mackey at 8/5/2004 5:18:38 PM
hi,=20
i've started playing with the VS strongly typed datasets and i'm doing =
an experiment to see if they will be a viable replacement for my =
business objects.=20
the typed dataset contains a class for each of my row types, and i want =
to add 2 variables to this class (it's simulating f... more >>
more documentation for working with typed datasets?
Posted by Sam Jost at 8/5/2004 4:35:49 PM
I'm just evaluation typed dataset's, and can't find much information how to
use them with a database.
The things I'd need to know are:
- What will happen if the database and the dataset do not match? How can I
catch this?
- When I will need new fields in my dataset and database, I can change ... more >>
Autosproc, DAL, Data Access Application Blocks, etc.
Posted by David at 8/5/2004 1:54:31 PM
Hi
I am using VS NET Enterise Architect and generate SQL stored procedures for
data access.
Should I (can I) use Data Access Applications Blocks (DAABs) to refer to
these?
And what about Autosproc to create wrappers? Does it / should it use DAABs.
Or are DAABs out of favour?
Any guidanc... more >>
Data Relations performance issue
Posted by alexbenari_stuff NO[at]SPAM yahoo.com at 8/5/2004 1:05:06 PM
I am encountering a strange performance issue with DataRelation which
I am hoping someone can cast some light on.
I have two tables related to each other by a single field (of type
varchar, about 60 characters long on average).
Now I load a single row from the first table to a DataTable and abou... more >>
Loading DBF file into grid works on some machines
Posted by Darin at 8/5/2004 11:24:14 AM
I have 2 developemnt machines here, an XP Pro and 2000 pro. The
following code works on both:
Dim connS As String
Dim tmpConnection As System.Data.OleDb.OleDbConnection
Dim da As System.Data.OleDb.OleDbDataAdapter
Dim ds As DataSet
Dim dt As DataTable
... more >>
problem with dataviews and its datatable
Posted by fanor at 8/5/2004 11:16:45 AM
Hi guys,
I understand that a dataview is kind of a collection of indexes to the
records of the table. So, if I have an index of a record in the
dataview I should be able to know the position of that record on the
table. see the code
..........
..........
dt=this.dsCM1.clients;
S... more >>
How to import XML from web into DataTable?
Posted by Mika M at 8/5/2004 10:51:51 AM
Hi!
My DataSet contains DataTable named as 'CurrencyRates', and it contains
fields: 'Currency' (like 'USD'), 'Rate' (like 1.1983) and 'Updated' (date
when updated). My application contains 'Update Currencies'-button, and
pressing it application should update 'Currencies'- DataTable (or insert ... more >>
DataViewManager: Multiple Tables and Filter
Posted by Alex Pecoraro at 8/5/2004 10:47:48 AM
Hi all,
We have a situation where we are using an DataSet object to store/load a =
file (e.g. there is no database), and have the need to be able to bind a =
subset of the dataset to a grid control. =20
The problem is that we need to be able to filter across two of the =
tables to determine... more >>
Stored Procedure
Posted by Ed at 8/5/2004 9:51:06 AM
hi,
I have a Stored Procedure in the SQL Server, called prCustomers it is
"select * from customers" - very simple
How am I able to execute the stored procedure get a result set and put the
first record of the result into a single textbox called last name
e.g.
objConnection = ... more >>
Problems with Winform Datagrid
Posted by Karl Beigan via .NET 247 at 8/5/2004 7:45:16 AM
Help Me please,
I'm in the process of putting together an application that will=
stream video into WMP (SDK version 9), based on a a user=
selection via a Winform datagrid=2E I'm using the=
SqlHelper=2EFillDataset fuction to fill a strongly typed dataset=2E=
However the problem has arrise... more >>
OleDbDataReader getvalues prob
Posted by chiranjeeb ghosh via .NET 247 at 8/5/2004 7:44:08 AM
(Type your message here)
dim myStrArray() as string
While objReader.Read()
Dim tempObj() As Object
objReader.GetValues(tempObj)
myStrArray(row) = tempObj
row = row + 1
End While
the above code i... more >>
SqlCommand, CommandType.Text and Parameters to make a big Batch
Posted by Chris Bilson at 8/5/2004 6:58:06 AM
I keep telling myself I am thinking of ways to implement things that
could help make my application more efficient, but really just having
fun with ADO.NET and SQL Server.
I use DataSets to keep track of work users have done, until they are
ready to save their work and I need to call a stor... more >>
Update Primary Key value
Posted by runner at 8/5/2004 6:12:05 AM
Hello!
I have a problem when updating the value of a primary key column in the
parent table. After the update which works fine against the database and all
its childrows - I get a constraint error when doing merge on the dataset.
Can someone explain why the update against the database works ... more >>
Need a starting point: Displaying Data on a Form
Posted by Matthias Steinbart at 8/4/2004 9:19:01 PM
Hi,
here is my problem: I'd like to display data in a grid-like control on a
form. The data is fetched from an SQL DB using the SqlDataReader. Problem
is, the user must have the chance to set his/her preferences as of what
columns (fields) he/she will see and the order of them as well. (Like i... more >>
.Net Scalability problem
Posted by wahib NO[at]SPAM iws-australasia.com at 8/4/2004 9:18:07 PM
Hi
Actually I need Technical Support
I finished a Great project using .Net and SQL Server and .Net Mobile
Control
My Business case is to implement this Program to accept about 1
Million concurrent users
So I designed the project as master Node that has all administration
project and about 10... more >>
Converting DateTime format when retrieving a dataset
Posted by John Dann at 8/4/2004 4:29:02 PM
I have an Access-type database (actually created by ado.net via Jet
4.0 etc) with one column storing date/time information as DateTime
type. I need to retrieve this particular date/time column (along with
others) into a dataset or datareader but in the older OA format (ie
as a double type) for ... more >>
how can I find a row position
Posted by fanor at 8/4/2004 4:24:34 PM
Hi guys,
I have a form with many controls bound to a table.
To find some especific record in that table I use a dataview. The find
method give a index of the record on the view not in the table, so now I
want to find that record in the table because I want that record to be
show in the ... more >>
STORED PROCEDURE is not working HELP
Posted by google NO[at]SPAM joriz.is-a-geek.net at 8/4/2004 2:45:16 PM
I have this code in my btnclick event.
Dim cnn As New SqlConnection(Constants.SQLConnectionString)
Dim cmd As New SqlCommand
Dim cmd As New SqlCommand("spAverage", cnn)
cnn.Open()
cmd.CommandType = CommandType.StoredProcedure
Dim prm1... more >>
Remove identity
Posted by Konrad at 8/4/2004 2:45:15 PM
Hi
How to remove identity from
column in SQL Server on unempty table?
Is it possible with MSQDMO?
Thanks
Konrad
... more >>
SHOWING STRING IN WEB PAGE
Posted by Gina L. Hernandez at 8/4/2004 2:29:24 PM
Hello:
I have an application in .NET. I need to show the parameters have been
passed through the WEB page, like for example:
http://login.passport.net/uilogin.srf?id=2
Where and what instruction I have to use for this.
Thanks
Gina
... more >>
OracleClient Parameters Stored Procedures
Posted by DaVbGuy at 8/4/2004 2:03:04 PM
With VB 6 I used this piece of code:
dim adoCmd as new Adodb.Command
dim adoParm as new Adodb.Parameter
with adoCmd
.commandText = "OurComp.SaveWidget"
.commandType = adCmdStoredProc
Set adoParm = .CreateParameter("FirstParam", adChar, adParmInput,
Len(pStrFirst), pStrFirst)
... more >>
DataTable Question
Posted by Roshawn at 8/4/2004 1:39:42 PM
Hi,
I have a DataSet that contains one DataTable and holds data pertaining to
books. This table has a primary key column based on the ISBN of books and
is loaded with data. Suppose I add other books to the table and one of them
is a book that is already in the table. Will the table now have... more >>
NEWBIE - Expressions in SQL Statements
Posted by RockNRoll at 8/4/2004 11:44:27 AM
Greetings,
I have a SQL Statement that runs fine in Access:
SELECT [PACONTNUMBER] & [PAcontname] AS Expr1 FROM dbo_PA01101
(It basically is a single row that concatenates PACONTNUMBER and PAcontname)
When I try to use this statement in asp.net, I am getting an error.
Are expressions a... more >>
DataViews and deleting rows in the DataTable
Posted by Jon Skeet [C# MVP] at 8/4/2004 11:18:42 AM
I'm seeing some behaviour which seems utterly bizarre to me. I'd expect
that a DataView should automatically track the changes in the table, so
that if rows are deleted etc, existing DataRowViews sort themselves
out. Here's a test program I'd expect to work just fine:
using System;
using S... more >>
DataSet DB Storage - How is this Handled?
Posted by Eric at 8/4/2004 11:02:26 AM
If I have a DataSet with a table and I add a row and subsequently delete it
prior to a database update, is the row and added and deleted at the DB level
or ignored?
TIA
... more >>
Server Explorer
Posted by jmmb at 8/4/2004 10:13:30 AM
When using Server Explorer in VS.Net, I can query tables, create stored
procedures and even design objects in the database.
Another very important feature is the ability to drag a stored procedure to
your application generating all the code for the command.
Anybody knows if all of these works fo... more >>
DataView.RowFilter
Posted by Magne Ryholt at 8/4/2004 10:03:11 AM
I need to filter a view on values from parent table, this works fine e.g.
"Parent.Name='MyFathersName'"
However, I also need to filter on grandparent and grand-grand parents
(a.s.o.) columns as well, syntax "Parent.Parent.Name='MyGrandFathersName'"
does not work (exception is thrown), any one ... more >>
CR questions, and TY to Bill
Posted by Patrick at 8/4/2004 9:15:47 AM
Now I got my report form to load without a licensing error, thanks to Bill
(William Vaughn).
But I keep getting the error "can't load data" when I start the form.
In my delvelopment system it mostly all worked from day one, but moving it
to another machine involved installing MDAC, MSDE, the... more >>
System.Data.SqlClient.SqlException - General network error. Check your network documentation
Posted by julia_beresford NO[at]SPAM hotmail.com at 8/4/2004 8:29:10 AM
Hi All
I am getting the following exception:
General network error. Check your network documentation
System.Data.SqlClient.SqlException
From within my web application I connect to database on my local
machine and have a For Each loop round code that calls a stored
procedure:
Dim sqlC... more >>
OdbcDataReader.GetSchemaTable with Access databases
Posted by silvano.tamburini NO[at]SPAM email-dot-it.no-spam.invalid at 8/4/2004 7:32:32 AM
With ADOX, or DAO, I can have all information I need on Access
databases, including all properties of the fields of all the tables.
For example, I Can get informations about 2 properties:
- AllowZeroLength
- Required
With ADO.NET the property 'Required' is available with GetSchemaTable,
but... more >>
OO programming and datagrids
Posted by russell8mccloy NO[at]SPAM hotmail.com at 8/4/2004 7:29:54 AM
Hello there,
I am building a web system with a 3 tiered design (DAL / BLL and pres
layer). I have all my objects (ie... USER object for example) and
collection objects that build up collection of my objects.(ie
...userCollection object.) This is all well and good but when I come to
binding a ... more >>
Inside Ado.Net
Posted by Shreyas at 8/4/2004 7:15:04 AM
Generally in programming we use DataConnection and called dc.Open()
We Give DbCommand various parameters and result sets.
But, All this commands/ procedure to retrive data from Database is predefined or mechanical one.
Actually,I want ot know what actually happens when you connect to database o... more >>
Importing Excel into a Dataset
Posted by Alex at 8/4/2004 6:59:03 AM
I've created a windows application with the follwoing code, and it works just fine:
string strConn;
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=" + System.AppDomain.CurrentDomain.BaseDirectory
+ "//XL//my.xls;" + "Extended Properties=Excel 8.0;";
Ol... more >>
SqlConnection
Posted by Arun S via .NET 247 at 8/4/2004 4:48:50 AM
When i use the SqlConnection class to establish a connection to a=
sql server, i get the following error=2E But when i verify the=
connection using a =2Eudl file, it succeeds=2E Further it also works=
through an =2Easp file (Server=2ECreateObject("ADODB=2EConnection"))=
!!!
[SqlException:... more >>
where is IDbException
Posted by Andy Fish at 8/3/2004 5:16:28 PM
Hi,
I have done a bit of programming against the System.Data.SqlClient classes
but in order to maintain some prospect of database portability in my code I
would prefer to use the more general IDbConnection, IDbCommand etc.
However, I notice there is no corresponding IDbException, and the
do... more >>
Multiple Datatables in Dataset
Posted by Sameer Motwani at 8/3/2004 4:12:25 PM
Hi,
Is there a way to add, delete, select and update multiple DataTables in a
Dataset using a Single SQL String and a single DataAdapter object.
I read somewhere that we could fill multiple tables in a dataset by
sepearting the two queries by a ;
like SELECT * FROM TABLE1 ; SELECT * FROM TABLE... more >>
How to import file of the www
Posted by Mika M at 8/3/2004 3:40:15 PM
Hi!
How can I check that file exists in the internet, because for example the
following is NOT working ...
blnExist =
System.IO.File.Exists("http://www.suomenpankki.fi/ohi/fin/0_new/0.1_valuutta
k/fix-rec.txt")
.... and how do You recommend to import/update file of the net into DataSet
... more >>
Two forms, two controls, one dataset, one currency
Posted by waxabi NO[at]SPAM excite.com at 8/3/2004 3:40:11 PM
An application contains two forms FormA and FormB
Form A contains a DataGrid bound to the DataSet ORDERS
Form B contains a ListBox bound to the DataSet ORDERS
How can I get
the selection in FormA.DataGrid to reposition both
1) the DataSet ORDERS
2) and change the ListItem index in FormB... more >>
Two columns with same name in ADO Recordset Fields collection
Posted by Sandeep Limaye at 8/3/2004 3:01:02 PM
Hi,
Is there any way that I can add multiple columns with the _same name_ into
the Fields collection of an ADO recordset? I am fetching data into an
OracleDataReader through the usage of ODP.NET, and I want to create and
populate a Recordset from it to be returned to my COM clients.
At pres... more >>
Q: Using Merge with an array of DataRows objects
Posted by Geoff Jones at 8/3/2004 2:45:43 PM
Hi
I'm trying to get an idea straight in my head and I hope somebody can help
me.
I have a DataTable, called Books (and whose table name is Books), which I'm
adding to a dataset as follows:
myDataSet.Merge(Books)
This works fine. I can do things like:
DataGrid1.DataSource = myDataSe... more >>
Can I return multiple tables using Access 2000?
Posted by yachea2002 NO[at]SPAM hotmail.com at 8/3/2004 2:40:17 PM
Is it possible to bind multiple datatable in one SQL statement?
Some thing like this stored procedure for example that returns three results:
select * from table1
select * from table2
select * from table3
This syntax is not working like it is on access.
Is there a way to get the same j... more >>
Driving me crazy...
Posted by Ed at 8/3/2004 2:31:03 PM
I have an employee table in a SQL Server database
I know how to bind data into a drop down list for a Field Name called State.
strSQL = "Select StateAbbreviation + ' - ' + StateName as StateInfo, StateAbbreviation From US_State"
objAdapter = New SqlDataAdapter(strSQL, objConne... more >>
Charts binding to DateTime data
Posted by John Dann at 8/3/2004 1:40:17 PM
Not sure where best to ask this, but maybe I could start here:
Looking for a commercial vb.Net compatible chart control for use in
WinForms that can natively (ie without iterating through a complete
dataset doing type conversions) bind to a DataSet or DataReader where
one column, which will be... more >>
Coding ADO in VB.Net environment
Posted by Lokanath at 8/3/2004 1:25:02 PM
Hi,
I am upgrading my database componenet from VB6.0 to VB.net but would like to use ADO for database operation. Am trying to retrieve no of tables in a database using connection.openschema method of ADODB. It works fine in VB6.0 but blows of in VB.net. The code looks like
rsReadOnly = New ADODB.R... more >>
Data Question
Posted by Ed at 8/3/2004 11:43:47 AM
When I tried to retrieve the data from SQL Server database and assign it to a field, it generates an error since the data in SQL Server is "NULL" how am i able to solve that problem?
thanks,
Ed
Source=datasourcename;Database=databasename;User ID=;Password=;")
Conn.open()
myadapter=new ... more >>
newbie needs help with DataSet
Posted by Danny Ni at 8/3/2004 10:41:34 AM
Hi,
I have a dataset which has one datatable which has one datacolumn, is there
a way to convert it to a String[]?
TIA
... more >>
DataAdapter.Update Command Failed To Update Database
Posted by tllee NO[at]SPAM bloomberg.net at 8/3/2004 8:34:21 AM
I am using the following code below to update a simple Access database
with historical stock prices:
-------------------code
snippet----------------------------------------
'Open connection to update data
Dim myConn As New OleDbConnection(ConnectString)
myConn.Open()
'Create the S... more >>
DataBinding an textbox to an Expression DataColumn
Posted by valentin.cazako NO[at]SPAM csfb-dot-com.no-spam.invalid at 8/3/2004 7:04:41 AM
I have databind a textbox to a datacolumn that happen to be an
expression.
Strangely enough, when the calculated expression value changed, it
does not seems to update the textbox. Is it bug ?
I have tried to trap the changed event on the column but because it is
an expression, I never receiv... more >>
hide relation in parent table
Posted by royrose78 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 8/3/2004 5:03:16 AM
Hi,
I created a dataset with 2 tables and a relation in a module.
Now, I have a form with datagrid that suppose to show only
the parent table.
:?: How can I hide the symbol (+) from the parent datagrid without
deleting the relation. :?:
Thanks
Roy.
... more >>
ADO.Net Dataset questions
Posted by bj at 8/3/2004 1:08:55 AM
I was perusing groups.Google.com and found a couple of articles for parsing
out a CSV file into an ADO.Net dataset. Although I haven't tried it yet,
the following example seems the most straight forward:
Dim TextConnectionString As String
TextConnectionString = "Provider=Micro... more >>
Command with parameters and IN SQL operator
Posted by Frédéric Mayot at 8/2/2004 10:49:14 PM
Hi,
It seems that this code does not work, what's wrong ??
dim s as string = "SELECT * FROM sometable WHERE somefield IN (@stuff)" '
where somefield is an int
dim cmd as new command
dim arr() as integer
[...]
if arr.length > 0 then
cmd.parameters.add(new sqlparam("@stuff", arr))
[..... more >>
Adding a record to a Database Table
Posted by CES at 8/2/2004 10:45:21 PM
All,
I've spent all day trying to find simple examples of how ADO.NET works but
I'm still out of luck. I'm trying to do one simple thing add a new row to an
Access Database. I've adapted the code below from a number of sources but
I'm getting an error on the last line "daVisitors.Update(drVisito... more >>
Q: changing the datatype
Posted by Geoff Jones at 8/2/2004 7:17:43 PM
Hi
Can anybody tell me how to change the datatype of a field in a database
using VB.net code?
For example, suppose that the database has a field initially specified as
Text, how do I change it to DateTime from within VB.net?
Geoff
... more >>
newbie on getting value from a dataset
Posted by Danny Ni at 8/2/2004 6:48:22 PM
Hi,
I tried to get a value from dataset. Here is my code:
int intCustomerID = (int)(dsCustomer.Tables[0].Rows[0].ItemArray[0]);
I keep getting "Specified cast is not valid", I know for a fact that the
value is an integer.
So how do I cast it?
TIA
... more >>
crystal reports error
Posted by Patrick at 8/2/2004 6:23:39 PM
I got my data to work in the form on the other machine, finally. But now
Crystal reports won't show the report I designed. It says "keycodev2.dll not
found, or invalid key code"
I can't find any file named keycodev2.dll on my development box or anywhere.
What's the deal? I went to Crystal repo... more >>
101 ADO Help
Posted by CES at 8/2/2004 6:07:48 PM
This is the first time I've tried to convert my .asp ado connection to the
..NET framework and I'm totally lost. Most of the examples I've seen are
incompliant or more complicated then I can comprehend. I was wondering If
someone could point me to a referance that showes an entire example of
con... more >>
DataAdapter not updating rows with RowState=Modified
Posted by Marco at 8/2/2004 5:06:38 PM
Hi,
I have a strange problem. Most probably I am not seeing something huge,
so... please help.
Here's the problem:
I have a typed DataSet: MPDataSet
I must update a Row on the DB table Product, and the values of this Row are
passed to me through a Web Service, so I do not have the original ... more >>
Sybase Connection Help
Posted by Lloyd Taylor at 8/2/2004 4:48:36 PM
Hello,
I am having problems with connecting to sybase using visual studio.
I have installed Sybase Open Client and now have the drivers to create a
sybase connection.
In visual studio I have successfully created a connection to 1 sybase
database on a server (Server1) using tool --> Connect ... more >>
Access 2002 instance not closing from .NET call
Posted by Rich Wallace at 8/2/2004 4:35:35 PM
Hi all,
I have an app that contains the following code....
----------------------------------------------------------------------------
------------------------------
Public Sub CreateNewDatabase(ByVal DbFile As String, ByVal sLots As String)
Dim catNewDB As New ADOX.Catalog
... more >>
Dataadapter Add vs Update
Posted by Devon Kyle at 8/2/2004 3:39:05 PM
I have a generic question regarding ADO.net and how the CommandBuilder works.
I have a datagrid/dataset that is partially populated from pre exisiting records in a database table as well as NEW records/rows which are being added to the same dataset by a user via a simple textbox/form.
My que... more >>
connection
Posted by Fei at 8/2/2004 3:00:06 PM
Hi,
I have a question about connection. I want to trap when the internet
connection is down. For example, I fill in a Invoice row and lock it up. Now
somehow, the client has a internect connection failure so that it loose
connection to SQL server. How can I trap this in my application? I tr... more >>
null value
Posted by Andy at 8/2/2004 11:22:28 AM
How to set Value property of OleDbParameter class to database NULL value?
TIA
... more >>
DataReaders Vs DataSets
Posted by John Smith at 8/2/2004 10:51:59 AM
Hey folks,
Since in the windows form world, you can't bind a SqlDataReader to a
DataGrid, but you can bind a DataSet, would it be quicker to:
a) Return data to a SqlDataReader. Then loop through it and add the data to
the DataGrid manually 1 row at a time.
b) Return data to a DataSet and b... more >>
ASP.Net + DataSet
Posted by marcan1215 NO[at]SPAM hotmail.com at 8/2/2004 10:36:06 AM
Hi all,
I want your opinion about a thing...
i'm going to develop a website in ASP.Net and I'm questionning myself
if i should a DataSet (.xsd) for all my Site (Like load on the
Session_Start and use it during all the navigation) Or if I should
create a new DataSet on some page, when i need... more >>
Oracle Stored Procedures
Posted by Jim Heavey at 8/2/2004 5:11:02 AM
Back about 3 years ago when I took an Oracle class, I recall that when I created an used a stored procedure in Oracle, that I was taught to create a column in my output which contained the "return" code which I would manually populated in the procedure. Then I would loop through reading those recor... more >>
How can I add the prefix value to an DataColumn
Posted by Satish H.S at 8/2/2004 3:25:02 AM
Hi ,
How can I add the prefix value to an DataColumn ?
For example:
I have one table called Employee in that EmpID is Column.To this column i want to add "SRIT" as a prefix value , like " SRIT- XXXX".
Any ideas regarding this.
Thanks,
Satish
... more >>
Connection problem with Oracle client and pooled connections
Posted by Martin Farrow at 8/2/2004 3:21:01 AM
I am having a problem with my ASP.Net project using an Oracle database. The error I am receiving is below:
Timeout expired. The timeout period elapsed prior to obtaining a
connection from the pool. This may have occurred because all pooled
connections were in use and max pool size was reach... more >>
Question: Display export file contents in datagrid
Posted by VB Programmer at 8/1/2004 9:56:06 PM
I have a comma delimited export file with 10 columns. I want to display the
first 5 and the last 2 columns in a datagrid or table. Is there any way to
do this automatically? If not, does anyone have any ideas how I can do
this? Can I just feed it to a dataset and use it with normal ADO.NET?
... more >>
how to find out my ADO.NET version
Posted by aftab at 8/1/2004 8:16:02 PM
Can anybody help me in steps of finding up
my ADO.NET version , is it using some set of commands
or can I do it in VB.NET Application also
-Aftab
... more >>
Please help...
Posted by Ed at 8/1/2004 6:55:01 PM
Hi,
I would like to have my web connect to a SQL Server and display data on a web form. My question is if a Social Security Number is not is the database, error occurs... what should i do... thanks
<%@ Page Language="VB" debug="true" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
... more >>
formatting a datalist into columns? Please Help
Posted by Moe Sizlak at 8/1/2004 6:11:46 PM
Hi There,
I am wanting to format a datalist into columns, so do I need to use a table
rows & columns? or can I use templates and a property at the top of the list
itself ? It seems that when I try to format the datalist I can't get it to
look like a normal html table.
Moe
col1 col2 col3 ... more >>
DateTimePicker Issue.
Posted by Manuel Canas at 8/1/2004 5:52:27 PM
Hi There,
I'm having this problem with a DateTimePicker and I just can't figure it
out.
I'm using binding on a form. I'm binding all the object on the graphical
properties, I have created a data adapter and dataset as well, all that has
been done with working ok.
New I call the AddNew() ... more >>
Obtaining data from Web Service
Posted by Roshawn at 8/1/2004 10:13:08 AM
Hi,
OK, guys and gals. This one has been troubling me for some time now, and
I've yet to come up with a viable solution. Here goes.
I am consuming a web service that returns product information for books
(title, publisher, price, etc). I'm using ADO.NET on the client side to
save this da... more >>
what's the difference between xml schema and datasets?
Posted by Elhanan Maayan at 8/1/2004 8:40:20 AM
hi..
when i choose add new item in visual studio i see i can add a dataset or an
xml schema.
both appear to create typed datasets, so what's the diffrerence between
them?
btw off topic did anyone manage to work FileSystemWatcher in a windows
service? i once tried somethign simial with file... more >>
How to correctly install ByteFX in IDE?
Posted by s_u_l_o NO[at]SPAM hotmail.com at 8/1/2004 2:08:03 AM
Hi.
How should I correctly install ByteFX in VS.NET IDE? I just used
Tools-> Add/Remove Toolbox Items.. and add ByteFX.MySqlClient.dll to
Toolbox. What should I do with ByteFX.MySqlClient.Design.dll? I asked
because once I read in microsoft.public.dotnet.framework.adonet mail
like this:
‘(…)By... more >>
|