473,805 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

howto 'refresh' an SqlDataAdapter in Design-mode

Hi,

In my VB.NET-application I have an SqlDataAdapter with build in
Update-Commands, but during development from time to time the Table's in my
Database change. So I need to kind of rebuild the SqlDataAdapter' s
update-Commands.

Is there an easy way to do this? The way I do it now is by the "configurin
Data Adapter", redoing the whole stuff, and afterwards changing the
Connection manually back to my orginal Connection. I guess there should be a
more easy way to do this?

Thanks,

Pieter
Nov 21 '05 #1
1 1720
Pieter,

if you are using a commandbuilder you can do the following:

Dim mycb As New SqlCeCommandBui lder(myDA)
mycb.RefreshSch ema()

Otherwise, I'm not too sure.

Jason.

On Mon, 23 Aug 2004 16:34:26 +0200, "DraguVaso"
<pi**********@h otmail.com> wrote:
Hi,

In my VB.NET-application I have an SqlDataAdapter with build in
Update-Commands, but during development from time to time the Table's in my
Database change. So I need to kind of rebuild the SqlDataAdapter' s
update-Commands.

Is there an easy way to do this? The way I do it now is by the "configurin
Data Adapter", redoing the whole stuff, and afterwards changing the
Connection manually back to my orginal Connection. I guess there should be a
more easy way to do this?

Thanks,

Pieter


Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
280
by: cooltech77 | last post by:
hi all, I am a newbie and i need some help.I have datagrid on my asp.net page which has hyperlink columns. the datagrid configuration in the aspx page is as follows <asp:DataGrid id="dgNewsLinks" DataKeyField="News_ID" runat="server" Width="283px" AutoGenerateColumns="False" GridLines="None" ShowHeader="False"> <Columns> <asp:HyperLinkColumn Target="_parent" DataNavigateUrlField="url"
3
3004
by: SS | last post by:
Hi, I don't want to refresh a web page to query and display database. I want the page shows information immediately when database changes. What kind of technology or method would be able to perform this action? Sean
7
5268
by: Dan Sikorsky | last post by:
How do you iterate thru a dataset to change money fields to a different value? Here's what I have. My dataset is filled directly from a stored procedure. ' Create Instance of Connection and Command Object Dim myConnection As SqlConnection = New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString")) Dim myCommand As New SqlDataAdapter("OrdersList", myConnection)
10
30702
by: jaYPee | last post by:
I have a function that call a stored procedure which performs an insert command. now i want to refresh the dataset so that the newly inserted data will be available to my datagrid I have tried to call DsStudentCourse1.Tables("SchYrSemCourseJoin").Clear() SqlDataAdapter3.Fill(DsStudentCourse1) However, the fill method causes a lot of time to process.
8
4197
by: Topper | last post by:
Hello. I have simple web folders structure: -ROOT - BIN WebService.dll WebService.asmx I need to use my WebService.dll not in bin folder - for example, in ROOT. How do i this? How can i do this without .config file only with some configuration
3
44094
by: Lennart | last post by:
Assuming the following setup: Server1 running DB2 V8.2 with two databases DB_1 and DB_2: db2 catalog db DB_1 as CURR_DB Server2 DB2 runtime client: db2 catalog tcpip node S1 remote Server1 ... db2 catalog db CURR_DB at node S1
7
2352
by: Randy | last post by:
Hi, I've got a listbox on a form that gets updated by opening another form for data entry. Once the user enters the new item name and clicks "accept", the data entry form closes and the original form with the listbox displays. I'm having trouble getting the listbox to reflect the additional entry. If I close the form and reopen it, the new item displays just fine, but I know that there is a more direct way to force the listbox to...
1
1272
by: Amzul | last post by:
hello all i use <meta http-equiv="refresh" content="300" /> in the head but i notice that the pictures in the page are not refreshing i have picturs *.png its graphs so i can tell nothing is changing only if i press F5 or refresh button why? and how can i make the picture refresh use NO-CHACE?
6
5420
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi - I'm having trouble refreshing a datagrid control bound to a dataset that was created from the New Data Source wizard. What is the code required to refresh the datagrid with data from the data source (sql db)? More Details: The application is C# Windows (VS 2005).
5
2426
by: tshad | last post by:
I have an interface I am using to get access to some of the objects on my form: a textbox (Status) and my statusbar (StatusBar). In my class, which is actually in another class from my form I have the following: public interface IStatusDisplay { string Status { get; set; } string StatusBar { get; set; } }
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10613
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.