all groups > vb.net data > february 2005
failure trying to save : system.nullreferenceException.
Posted by Barret Bonden at 2/27/2005 2:09:48 PM
I get "An unhandled exception of type "system.nullreferenceException.
Object reference did not set to an instance of an object"
while trying to save back to the database - relating to : da.Update(ds)
, the last line of code in this listing.
Trying to learn ...
Imports System
Imports Sys... more >>
datatable.clear not saving
Posted by Greg at 2/25/2005 3:18:40 PM
Can someone explain to me why the following segment of code will not remove
all rows from the datatable?
My application is a Winforms front end connecting to an Access mdb back end.
Public Sub ClearTable(ByVal pstrTableName As String)
prpGetDataSet.Tables(pstrTableName).Clear()
... more >>
Reading SQL Queries from a SQL Server
Posted by Atley at 2/23/2005 10:35:10 AM
Is it possible to read the actual query structure from a SQL query on a SQL
Server in VB.net?
Also I want to be able to write a query into the server.
I can't seem to find any articles on this, so if anyone out there has been
able to do this, any help would be greatly appreciated.
... more >>
Storing transactional (historical) data
Posted by SQLScott at 2/23/2005 10:17:03 AM
One of the requirements for our application is that on certain tables (so far
about 2 dozen out of 300 right now) we need to track record changes. Meaning,
we need a "history" of the table. We need to track who changed what record
and when.
The way I have thought about doing this is by crea... more >>
Trying to get my data quickly
Posted by Atley at 2/16/2005 2:02:40 PM
I have a query that is based on two other queries that are based on tables
in a database.
All of the queries that are used for this final query use grouping and
totals.
In the application I am making, I need to choose a date range to select the
subset of the data I need. This is done in th... more >>
Reading a dataset into XML
Posted by Chet Cromer at 2/15/2005 8:21:16 PM
I have a table in my SQL Server that I am loading into a datatable. I am
then saving the dataset that this table is a member of (it's the only
table in the dataset) to an XML file so that I can use it offline in
another part of my program. The code I use for this is:
ds.WriteXML("c:\cli... more >>
Image from SQL to PictureBox
Posted by Gary Shell at 2/15/2005 6:30:38 PM
I have a column named "PictureImage" in a SQL database defined as
datatype=image. It has a Bitmap picture in it. (I verified the type by
creating an Access project and a looking at the data, which access reports
as "Bitmap Image".)
In my VB.NET app I use the following code:
Dim bytBLOBData(... more >>
Designing simple mdb database
Posted by Giobibo at 2/14/2005 10:40:44 AM
I have to create a simple two tables mdb database for a vb.net applicaton.
Is there in VS.NET a visual application (like VB5/6's Visual Data
Manager) that allow to create/manage simple mdb database?
Thank you for replying.
Gio... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Enterprise Library - Data Access Application Block (for windows applications)
Posted by Najm at 2/13/2005 10:35:05 AM
Hi,
Do u know where I can find a good simple example on how to use the
enterprise library (data access application block) for windows application
(not web).
Thanks
... more >>
Sending parameters to a stored procedure (VB.Net 2003 + SQL Server)
Posted by James at 2/10/2005 4:12:14 PM
I'm using Visual Basic.NET 2003 and SQL Server 2000. I'm attempting to pass
parameters to a stored procedure which will insert a record in a table.
The connection to SQL Server seems fine, but when my VB.Net app reaches the
ExecuteNonQuery() line I get an error:-
"An unhandled exception o... more >>
MDAC update
Posted by Fred at 2/10/2005 4:07:57 PM
I have just tried to run a simple application on a Win2000 PC and get the
error message that I need MDAC version 2.6 whereas I only have version 2.53
How do I update to version 2.6
Thanks,
Fred
... more >>
Catch Error on Select Statment
Posted by Justin Emlay at 2/9/2005 10:22:54 AM
LOOP
Try
DaReports.SelectCommand.CommandText = "SELECT DISTINCT
TimeSheets.Employee..... FROM (Employee INNER JOIN TimeSheets ON
Employee.Employee = TimeSheets.Employee) WHERE ........
TimeSheets.Employee = " & Employee(x)
DsReports1.Clear()
DaReports.Fill(DsReports1)
Catc... more >>
Getting ID of last added record
Posted by C CORDON at 2/8/2005 7:43:18 AM
How can I get the Id (in a autonumber field) for the last added record in
access?
TIA!
... more >>
ADO.NET - Update Problem
Posted by Sergio Terenas at 2/7/2005 8:01:41 PM
Sorry if this is too basic but I've been banging my head on this for =
some time now.
I'm using Visual Stucio 2003, VB.NET. I'm able to build a win form with =
an OleDBConnection, DataAdapter and DataSet against an Access 2003 =
database using Jet 4.0.
I'm able to browse, move forward, backw... more >>
Enterprise Library - Data Access Application Block
Posted by Najm at 2/6/2005 2:01:06 PM
Hi,
Do u guys know where i can fiund a simple walkthrough on how to use the =
"Enterprise Library - Data Access Application Block" in a simple =
application.
Thanks... more >>
Design time VS Run time
Posted by Najm at 2/5/2005 1:22:01 PM
Hi,
i was wondering if there is a way to have a class that would open a database
connection, initialize a dataset based on a schema already included in the
project and fill it. for this i should create dataadapters at the class
level. My problem is that i only know how to do that on one form lev... more >>
Unable to add new row to table(newbie question)
Posted by Capnelectron at 2/5/2005 12:27:25 PM
I've added a new table to an access database programmaticaly, but when I
attempt to add a new row, the code executes ok, but the new row is not added
I saw the post about impementing the oledbcommandbuilder but I must be doing
somthing wrong:
Dim nrecs As Integer
Dim AccessConnection As New... more >>
Retrieving a single value from an oledb dataset
Posted by Capnelectron at 2/4/2005 12:42:47 PM
I've written the following code (which works) to retrieve a single value
from an oledb dataset.
Is there a simpler way to get a single value rather than iterate through the
rows collection? (only a single row is returned each time)
Dim nrecs As Integer
Dim AccessConnection A... more >>
Connect to SQL Server
Posted by TS at 2/3/2005 7:21:04 AM
Hi all,
I'm trying to connect to an SQL database from my vb.net form, but getting an
error message. The code I used is the following:
Private Sub ConnectSQL_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles ConnectSQL.Click
Dim myConnection As SqlClient.SqlConne... more >>
for better database connectivity
Posted by Lal at 2/2/2005 3:02:13 PM
Dear All,
I am seeking a valid suggestions from your side regarding the sql server
performance.
my connection object get initialized at the time of login. I remain
connected throu out the session that is I do not close the connection object
on whole programmed on run time. what are your sugge... more >>
Vb.NET FoxPro 8 Help Needed
Posted by Michael Erlewine at 2/2/2005 7:04:00 AM
Can you direct me to someone who (for a fee) would show me how to connect
from VB.NET to FoxPro free tables (.DBF files). I can pay via PayPal or
other . I probably have a few other questions, but I would pay for help.
Please email me at michael@erlewine.net
Thanks,
Michael Erle... more >>
Save dataset as MSExcel file
Posted by David at 2/1/2005 7:26:26 PM
I hope someone can point me in the right direction. I need to create an
Excel file from a dataset.
Any help would be hot
Thanks
David
... more >>
Matching data from table
Posted by cmwong76 NO[at]SPAM hotmail.com at 2/1/2005 3:30:33 AM
I have a problem using VB which I try to explain:
In sheet A I have a table with :
column 1: dates (e.g. 01-01-2005) over a range of 3 years
column till 8: numbers
In sheet B I have a row with dates (say row 1)
what I want to do is to use the date of row 1 in sheet B, look it up
in the t... more >>
|