PC Review


Reply
Thread Tools Rate Thread

Database Information Not Refreshing

 
 
Mike
Guest
Posts: n/a
 
      7th Oct 2003
Hi Jody,

I'm not sure we're talking about the same thing. The
issue is not with my program it is with Visual Studio.NET

I go to Tools -> Connect to Database in Visual Studio.NET.
I then connect to my database, and am able to view tables,
data etc...in the "Server Explorer" on the left.

At this point everything is fine and I can see all the
tables, fields and data in the database.

Now... I Run my program in debug mode, and through my
program add a record/etc... I can go to the database and
see the data but then when I go into "Server Explorer" and
go down to the table, I do not see the new data in .NET
(the data is in the database). The refresh at the table
level (in the Server Explorer) should "theoretically"
requery the database and get the new data (otherwise, why
bother having a refresh?)




>-----Original Message-----
>ado.net is disconnected. You will find that you may be

executing a bit of
>sql to actually update the database but you are not re-

loading the data back
>into your dataset
>
>Have a look at the documentation on DataAdapters
>
>Cheers
>Jody
>MCSD.Net
>
>"Mike" <(E-Mail Removed)> wrote in message
>news:106801c38c45$4dce8cc0$(E-Mail Removed)...
>> I have an access database connected through odbc. I can
>> connect to the database and see all the tables and data

in
>> Visual Studio.NET. However, when I run my program and

add
>> a row to a table, that row does not show up in the

Visual
>> Studio View. Using the refresh or run at the table,
>> database or dataconnection level does not retrieve the

new
>> data either.
>>
>> I have to disconnect from the database and reconnect in
>> order to see the new data. I'm running VS.NET 2003
>> version 7.1.3088, and have checked for updates.
>>
>> Can you please tell me how to refresh this data or is

this
>> a bug
>>
>> Thank you,
>>
>> M...
>> .
>>
>>

>
>
>.
>

 
Reply With Quote
 
 
 
 
Rob
Guest
Posts: n/a
 
      7th Oct 2003
I assume you are querying a database and populating a
local data table in ADO.NET. To "Refresh" the data
you "Clear" the table and use the "Fill" command in the
DataAdapter.

Compared to earlier versions of ADO, ADO.NET requires more
control from the designer in order to give greater
flexibility.

HTH
Rob
>-----Original Message-----
>Hi Jody,
>
>I'm not sure we're talking about the same thing. The
>issue is not with my program it is with Visual Studio.NET
>
>I go to Tools -> Connect to Database in Visual Studio.NET.
>I then connect to my database, and am able to view

tables,
>data etc...in the "Server Explorer" on the left.
>
>At this point everything is fine and I can see all the
>tables, fields and data in the database.
>
>Now... I Run my program in debug mode, and through my
>program add a record/etc... I can go to the database and
>see the data but then when I go into "Server Explorer"

and
>go down to the table, I do not see the new data in .NET
>(the data is in the database). The refresh at the table
>level (in the Server Explorer) should "theoretically"
>requery the database and get the new data (otherwise, why
>bother having a refresh?)
>
>
>
>
>>-----Original Message-----
>>ado.net is disconnected. You will find that you may be

>executing a bit of
>>sql to actually update the database but you are not re-

>loading the data back
>>into your dataset
>>
>>Have a look at the documentation on DataAdapters
>>
>>Cheers
>>Jody
>>MCSD.Net
>>
>>"Mike" <(E-Mail Removed)> wrote in message
>>news:106801c38c45$4dce8cc0$(E-Mail Removed)...
>>> I have an access database connected through odbc. I

can
>>> connect to the database and see all the tables and

data
>in
>>> Visual Studio.NET. However, when I run my program and

>add
>>> a row to a table, that row does not show up in the

>Visual
>>> Studio View. Using the refresh or run at the table,
>>> database or dataconnection level does not retrieve the

>new
>>> data either.
>>>
>>> I have to disconnect from the database and reconnect in
>>> order to see the new data. I'm running VS.NET 2003
>>> version 7.1.3088, and have checked for updates.
>>>
>>> Can you please tell me how to refresh this data or is

>this
>>> a bug
>>>
>>> Thank you,
>>>
>>> M...
>>> .
>>>
>>>

>>
>>
>>.
>>

>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Information freezes when refreshing Smirnoff Windows XP General 2 13th Apr 2010 11:21 AM
Refreshing SQL Database Ernst Guckel Microsoft Access External Data 3 7th Apr 2010 04:35 PM
Insufficient key column information for updating or refreshing. Kevin Microsoft VB .NET 1 2nd Aug 2006 09:23 AM
Refreshing Form Information Bill Phillips Microsoft Access Form Coding 1 25th Jun 2004 12:28 AM
Re: Database Information Not refreshing in .NET Jody Fisher Microsoft VB .NET 0 7th Oct 2003 05:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 AM.