DataSource Controls :: Change Data Capture Benefits?
May 5, 2010I want to know about Change Data Capture(CDC) benefits in SQl Server?Especially on Data Base Volume?
View 1 RepliesI want to know about Change Data Capture(CDC) benefits in SQl Server?Especially on Data Base Volume?
View 1 RepliesI was reading about "Change Data Capture" functionality in SQL Server 2008. It sounds awesome. My implementation of it would be in a website environment where ASP.NET pages use SQLDatasources to do inserts, updates and deletes. When enabling "Change Data Capture" can you store additional information supplied from the website like a UserID, SessionID, UserRole etc so you can identify who did the insert, update or delete? [URL]
View 1 RepliesI would like to know what does a field timestamp in MSSQL do?I have read a book "ASP_NET_3_5_Social_Networking" and almost all the tabels have a columnt with type "timestamp" in their example app.What is the benefit of timestamp , and why should i use it?
View 5 Replies[Code]....
is used for update, insert and delete operations.Besides the fact
In my application at some places we have used ObjectDataSource and at other normal method calls to retrieve data.My question is then what exactly are the benefits of using ObjectDataSource ?In the example below "CODE ONE" makes a call to the Business Layer and then Binds the results to the Grid abd "CODE TWO" is using ObjectDataSource to do the same.Then how is ObjectDataSource better?
SuitableApplicant sa = new SuitableApplicant();
IList<HD.Recruitment.SuitableApplicant> list = new List<HD.Recruitment.SuitableApplicant>();
list = HS.Recruitment.RecruitmentService.GetSuitableAppls();
GridView1.DataSource = list;
[code]....
I have a gridview that receives data based on selection from a primary dropdownlist object. Works.
Within the gridview, there is a dropdownlist whose selected index is based on the query from the primary dropdownlist. Works.
Problem.
How do I force the used to change whatever value that the dropdownlist contains after they make their initial selection from the primary dropdownlist; except the default value of "make a selection".
Gridview, contains a checkbox which drives whether a selected row is inserted into the data base. The databind in done using an ObjectDataSource on the presentation page, not in the code behind.
CDC or Change data capture is a new feature in SQL Server 2008, which is an ability to record changes to table data into another table without writing triggers or some other mechanism, Change data capture records the changes like insert, update, and delete to a table in SQL server.I have sql 2005 and I have created triggers and tables CDC to capture the data. everything functions good and the data is being updated in the _CDC tables. all i need to do now is to generate the updated data as a report (excel/html)- what should I do ......?i need to show only the updated columns when user selects the date periods ( Range between dates ) and the person name - i need to display any updated info about that person during that period. So this updated columns about this person should be displayed in excel formatted column wise.
View 2 Repliesm trying to capture an output parameter from an SQL insert.for
CREATE TABLE [dbo].[Test](
[TestID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
[Test1] [int] NULL,
CONSTRAINT [PK_Test] PRIMARY KEY CLUSTERED
INSERT INTO [Test] ([Test1]) OUTPUT inserted.TestID as TestOut VALUES 1))
[code]....
can capture return value from a SQL by using SqlConnection SqlCommand
[Code]....
In one of our sprocs, we have a validation and it returns an error as: RAISERROR('this is the error message', 18, 1) When I call it in the business logic layer, how do I obtain this error message and pass it through the web service?
[Code]....
As you can see, it supposes to return a Users type, but how would I capture that error message in sproc and pass it all the way to UI?
I have a list box with 2 buttons (up and down) to determine the sort order. To move the items in the list box up or down I am using Javascript. I have a save button which is used to save the new order. However, I have an issue, in that when I have rearranged the order and press save, the order from the code behind is the same as the original order. My list box is:
<asp:ListBox ID="lstSortOrder" CssClass="uiControl" Height="200px" Width="700px" runat="server"></asp:ListBox>
My code behind to save the new sort order is:
[Code]....
What so I need to do to capture the new listbox order?
I have a form that contains a TextBox. A pop up window will return a value and put it into the TextBox. when this happens, i need to populate another control. I tried "OnChange" but it was not triggered .
View 1 RepliesI have a web content page that contains a ListView with two identical dropdownlists, one in the InsertItemTemplate and the other in the EditItemTemplate. I populate each from the same datasource. The listview is wrapped in an UpdatePanel.Any template change requires from 3-5 seconds to render which is not acceptable. The datasource can potentially change at any time thus limiting my options.
View 3 RepliesI attempted to change a table columns data type and in the process caused a lot of issues. I had a date column in one of my tables and stupidly changed it from varchar to date. When I tried to run queries on it I keep getting the 'cant find column 3 error'. Now that tables structure is :
[Code]...
So column 4 is actually the date column. All other queries work for this table. I then tried to change it back and then copied all data to a new table and now I am using the new table and converting the dates as needed but I am still getting the error.
SELECT * FROM postlinks WHERE postlinks.date >= CONVERT(datetime,CONVERT(varchar(10),GetDate(),112))
I am trying to capture the SelectedIndexChanged event for a drop down list I have put inside of a gridview control. It posts back fine, but does not go into my SelectedIndexChanged event handler. Here is my code
[Code]....
it is still not going into my myddl_SelectedIndexChanged() eventhandler.
i'm working with visual studio 2005 c#
i have in one aspx page a gridView with a few of sqlDataSources ..
and i have in another page ,,, hyperlinks ... and i want that it will select a defrent datasorce each time i click on other link ....
i'm working in visual studio 2005 c#
how do i change gridview datasource by clicking a link ;
how do i insert code to the onclick evvent to change the data source ?
I have a custom hierarchical data source based on the msdn example [URL] An event can be raised in the DataSourceView. If that occurs, I want to display a message on the web page.
The example is that I have a page with a TreeView control which uses a custom hierarchical datasource. If the user selects a node that they are not allowed to select, the underlying datasource will throw and error.
I want to capture this and add a message to the page. The Page_Error event is raised, but there are no eventargs.
Anybody know how to capture such an event?
An alternative approach, although not quite specific enough, is to set a flag during the datasource load event (indicating the datasource is loading) and test for this flag in the Page_Error routine.
I have a dropdownlist control in grid.On edit item of the grid I have to find the value of the dropdwolist and set it accordingly. tell the code.Its just one line code but I am not able to find the correct way.
View 2 RepliesI have my statement below. I want to capture the pdate field and put it into a session var. Can I do this w/out a gridview type control?
AccessDataSource1.SelectCommand =
"SELECT pname,ptitle,pcomments,pcommentsID,pdate,pid,nbrofcomments FROM Table1 where pid = " & Session("zPID")
I want to highlight the row and get its index when a user click on it.
i tried to write some code myself, but i am ending up with few errors.
[Code]....
I have a gridview of months and numbers where months are 1-12 i want the months to be Jan-Dec and im doing a check like this to change them
[Code]....
But the problem is , its also checking the data and if it find 1-12 it will change it to a month like this.
I know how to catch a key pressed, but I don't know how to do that in a gridview to get the the row index and the value of the field. Explanation in the code below (it is going to be more clear I guess) :
[Code]....
In the txtPosition TextBox the user is entering a number and press the Enter key which launch the "HandleAttribute" event as if the client had click on the "imgbtnUp" ImageButton.
i have gridview with linkbutton.when i click linkbutton it should call javascript function which returns value would be input for database functions. how do i capture javascript function retun value(i am using Registerclientscriptblock)? and that should be input for database function. Inshort i need to call two function from link button click - one javascript function,one ado.net function which will update value in database. output of javascript function will be input for database function.
function Getlogitudelantitude(address)
{
return "35.3434343,-74.334343"
}
Linkbutton_click(object sender,Eventargs e)
{
register javascript function .. which should return value
string s = "35.34343,-74.334343"
then call database function(s) - does database operation
}
}
I have a details view control which contains a dropdown list.
I would like to update a row in the DV based on when the selected index change event occurs in another row of the
So far I know that 1) Place code in detailsview1.rowupdating event .
2) Make a row copy, not sure about the syntax here
Dim
aRow As DetailsViewRow =
Me.DetailsView1.Rows(DetailsView1.Rows.Item(?))
3) Find my DDL
Dim aDDL as dropdownlist = CType(aDDL.cells(?).Findcontrol("Dropdownlist3"0, dropdownlist)
If aDLL.selected IndexChanged then
Dim aTextbox as textbox = Ctype(detaislview.cells(?).findcontrol("Textbox6", textbox6)
aTextbox.text = now()