.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Leave atleast one Job history entry for a job

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :Sql Server

This is a connect entry, but was closed, never re-opened. Someone from MS did say that it was closed by mistake and immediately re-opened, I see the status as closed. Can someone from MSFT please take this to the concerned team ?

Leave atleast one Job history entry for a job:


View Complete Post

More Related Resource Links

Basic Instincts: Dynamic Data Entry With XML Literals


Learn how to use Windows Presentation Foundation (WPF), XAML, and the deep XML support in Visual Basic to generate user interfaces dynamically.

Beth Massi

MSDN Magazine October 2008

Toolbox: User-Friendly UIs, Online Data Entry Controls, and More


Microsoft® Office is one of the most well-known and most-used consumer products. For many people, their only experience with a computer is when using Office, be it checking e-mail, creating presentations, or writing a document.

Scott Mitchell

MSDN Magazine February 2006

Vrooooom: How .NET and C# Drove an Entry in the DARPA Grand Challenge


Find out how the .NET Framework, a team of programmers, and a bunch of people from Carnegie Mellon University built an automated car to compete in the DARPA Grand Challenge. Along the way you get some inside tips on building an extensible real-time control architecture based on a whiteboard metaphor and implementing an accurate GPS-synchronized timer component for .NET.

John Hind

MSDN Magazine December 2004

SPField of WorkflowEventType in the Workflow History List has value Workflow Initiated but when i ed


hi all

how are you

i wish anyone could help me in this problem

i have a sharepoint sequential workflow created in visual studio

when the workflow starts i log into the workflow history list that workfow is started using the LogToHistoryListActivity

i entered the hidden workflow history list from the browser for example:


i noticed that an item is created in the above list when i run my workflow

the field Event Type in the item above has the value of Workflow Initiated but when i edit the item i noticed that the field Event Type has a value of 0

so can anyone tells me how this field works and from where it is getting itsvalues

thanks a lot


How to Add a Version History of SPlistItem ?


Now , I import the splistitem data from a list to another list, but  the listitem's version history disappear, Also I can get the splistitem's Version . what should I do to add each Version History of  the   listItem ???

Can you give me some code ?

Help me ,




How to create a single entry page for site collections in MOSS 2007



I have  7 site collections containing a few hundred team collaboration sites. Some users are internal (intranet) but most are external (extranet). Extranet users are experiencing problems with losing links to their sites and forgetting which URLs to use. So I would like to create a single entry page that all users can enter after the logon process, which shows a list of sites they have permission to access, and other user-specific information. Perhaps relevant documents, tasks, recently modified documents etc.

I know this sounds like a 'My Site' but we want to use use a general welcome page instead. We use Windows authentication.
What is the best way of doing this and is it something that can be done in SharePoing Designer or does it need to be done in Visual Studio?

Many thanks in advance.

Version history file properties



I move files into different folders programmatically. If a file was changed and it will be move again the new file is the actual file and the old file remained in the verison history.

How I save the new version:
SPFile destfile=website.getFile(destUrl);

Normally when you upload the new file with changed properties manually you see the changed properties in the version history.
When I do this programmatically I have the new file with the main version but the changed properties would not be displayed.
Can anybody help me?

Thanks and Regards

IE hanging when trying to leave a page


All I want to do is to present my user with a simple confirmation that asks if they want to leave the page or not if they have data on the screen that is not yet saved. I've read many posts on the net and I know the following is the preferred solution, but seems like I can't trap the error in the try..catch blcok properly for IE to continue to execute. I try the same exact code in Google Chrome, & Firefox and it works fine. Meaning, when I click on the Cancel button, the page is not unloaded and the user still has the chance to save their data. This obvioulsy doesn't work with IE. It just hangs.

I would appreciate somebody to give me the correct exact syntax on how to accomplish this. Notice the boldfaced code. Below, is my js:


// Used when leaving the page
        window.onbeforeunload = unloadPage;
        function unloadPage() {
            var startPosition = document.getElementById("<%= startPosition.ClientID%>");
            var hdnRecordSaved = document.getElementById("<%= hdnRecordSaved.ClientID %>");


What is the ASP.NET equivalent of history.back()


I'm converting a static site to ASP.NET. Each page has PREVIOUS and NEXT links. If a page has a specified PREVIOUS link in the database, I want to use that, otherwise send the user back to the last page visited (which used to be <a href="#" onclick="history.back(); return false;">)

What would be the correct syntax for: (insert code won't work, maybe because I'm using Opera?)

<a href="<%# IIf(Nz(Eval("intWebPageID_Previous"),0)>0, string.concat("Dynamic.aspx?w=", Eval("intWebSiteID"),"&p=", Eval("intWebPageID_Previous")), **LAST PAGE VISITED** %>"><span>Previous</span></a>


validate the selection of atleast one checkbox in the gridview using javascript


 i have a gridview with a checkbox in the templatefield as given  below,

<asp:GridView runat="server" ID="gvAsgnHw"  AutoGenerateColumns="False"   >
        <asp:CheckBox id="cbAsgnHwGrid"   runat="server" /> </ItemTemplate></asp:TemplateField>

         <asp:BoundField DataField="Resource_id" HeaderText="Resource ID"/>
        <asp:BoundField DataField="Resource_name" HeaderText="Hardware Name" />

I want to check the selection of atleast one checkbox on a button click using javascript.
pls help

System.EntryPointNotFoundException: Entry point was not found. when unit testing html helpers


I'm trying to unit test a very simple html helper but keep getting the following exception:

System.EntryPointNotFoundException: Entry point was not found.

public static string AdditionalUsersDropDownList( this HtmlHelper helper, int additionalUsers )


Dictionary<int, string> items = new Dictionary<int, string>( );

items.Add( 0, "None" );

for ( int i = 1; i <= 30; i++ )


items.Add( i, i.ToString( ) );


SelectList list =  new SelectList( items, "Key", "Value", additionalUsers );

return helper.DropDownList( "AdditionalUsers", list );


Can You Analyze the History of a Database? I Think Not

Is it possible or is there some "undocumented" means by which I can determine the history of a database, specifically with regards to each time the database was accessed (by any user or application)? The only thing I have to work with is the database itself. The database is given to me in a BAK format. I then "restore" the backup to my instance of SQL Server. So the only data I have is that which is included in the database itself. I do not have access to the host server that created the BAK, which means I do not have access to any of the system databases (master, msdb, etc.) or system logs on the host server. So having only a restored copy of the database, is there any way I can extract the history of activity out of the database, such as each time it was accessed by some user, oledb provider, odbc connector, etc? BTW, the developer of the database did not create any user-defined tables that track database activity. ThanksJohn

what's the Best practice about exploiting the time series predections history?

Hi all, We are predicting our revenue with two frequency : The first is monthly , the second is weekly with the same parameters daily . The first aimed to have a big picture of our performance during the month , the second is more operational and it's used to drive operational action. So every day we train the second structure with all data and  MTS predicts different value each day basis on the new data used in training. Example: Day of process : 05/07/2010 data used to train : 01/01/2002 ---->05/07/2010 values predicted between : 06/07/2010------>31/07/2010 the value for 18/07/2010 : 35000 $ ------------------------------------------------------------------- Day of process : 10/07/2010 data used to train : 01/01/2002 ---->10/07/2010 values predicted between : 11/07/2010------>07/08/2010 the value for 18/07/2010 : 42000 $   Certainly The second method (predict daily with new training data)  value will be more accruate but it can't be used to drive strategy because it's change every day. Any reflex about this ? saving all data (all prediction for all series every day for the 30 coming steps)? or update coming value with the actualised prediction(the manager will be confused )  

How to Get Error Message from Job History if SQLAgent Job Fails

Hello, I am using "last_run_outcome" value = 0 (fail) or 1 (pass)  from sysjobsteps to identify if the job has failed. So if the job has failed, can I get the Error Message from SQL ? (which we can see in Job History). Thanks, Prabhat

Data Entry

hi... my  requirement is to enter details like tyrenumber,purchasingdate and guarantee for each tyre in a vehicl,.the total number of tyres may vary from 2 to 12,which data controls shall i used to populate my database.. Thanks in advance

Document History Versions

A doc library with turned on function of versioning after any changes of an item. Want to turn it off and delete all history version. This will redeem grand piece of space. Tried to just turn off versioning and free unused space from sql db. Didnt work because all these versions are still there and you can see em after turning version control back. There are over 1k files in a lib and i dont want to manually crawl over each one and cut off these versions.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend