.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

merge repligation general question?

Posted By:      Posted Date: September 12, 2010    Points: 0   Category :Sql Server
Hello friends Please tell me that what is .sdf file in merge replicaton?

View Complete Post

More Related Resource Links

General .NET question

Hello, Is there any way to make sure a .NET application does not crash no matter what errors are thrown? TIA.

General Controller to View logic question

Hello, I am currently learning the MVC2 Framework and I have a brief question in terms of my logic and if their are any flaws in it. I created a basic example in a couple of minutes that demonstrates the way I think about it. public ViewResult Index() { return View(); } public ViewResult Cookies() { return View(new Cookie()); } public ViewResult CookiesInput(Cookie cookie) { return View(cookie); }<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <h2>I really like cookies</h2> Would you like a cookie? <% using (Html.BeginForm("Cookies", "Example")) { %> <p><input type="submit" value="Yes" /></p> <% } %> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <h2>Cookies</h2> <% using (Html.BeginForm("CookiesInput", "Example")) { %> <%= Html.EditorForModel() %> <p><input type="submit" value="Gimme" /></p> <% } %> </asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainConten

General question steps to configure mysites in SharePoint 2010

I am trying to configure the mysite web application, so I have created a DNS record "mysite" and created a web application for the mysite and created a mysite host site collection on it. Now I have read somewhere that u have to create managed paths for the profile and the mysite, which actually corresponds with the name of the DNS record/mysite webapp. For some reason when i am opening the mysite, i get a url something like http://my/my. What am i doing wrong? Can somebody just give me a step by step approach on how to configure Mysites in MOSS 2010?I am a SharePoint Infrastructure Engineer, focussed on Administration and Installation of SharePoint Server environments.

General Question for SQL

Hi,  i am working at DB platform since last 2 years ... now i heard about .Net 2010. this platform have lots of new features like (create database, tables and storedprocedure also inbuilded ).. so its affect DBA, DBD prefession for features?..   Thanks in Advance

General Question About Remembering Property Values Between Postbacks

Here are examples of two different ways I've found to story Property values between postbacks:    private bool Initialized    {      get      {        return Convert.ToBoolean(this.Attributes["Initialized"]);      }      set      {        this.Attributes["Initialized"] = value.ToString();      }    }    private int DataTableRowIndex    {      get      {        return (int)ViewState["DataTableRowIndex"];      }      set      {        ViewState["DataTableRowIndex"] = value;      }    }I'd appreciate any comments about differences between these two approaches [Attributes vs. ViewState].  Is one better or worse?Robert

General Setup Question regarding Ssytem.XML assembly

Hello,I have a solution running perfectly well on one machine (or actually quite a few machines).  All the code is in source safe and I am trying to set up a new machine with the solution but keep getting the following build errors:'XName' is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb 'XNamespace' is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb 'XElement'is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb 'XAttribute' is ambiguous in the namespace 'System.Xml.Linq'. InternalXmlHelper.vb and so on...The main difference that I noticed was that on the machines where the application builds, in the property page of the project whgere the build erros are occurring I check the reference list and I see a reference to the System.XML assembly (GAC,  However in the machine with the build errors, even when I try to add a reference to the System.XML assembly I get no error messages, but afterr adding the assembly does NOT appear in the reference list.In addition I have verified that I am able to create a new web application without any build or runtime errors on the machine experiencing these issues.Any feedback would be greatly appreicated.Thanks.

General question: Using the VS Designer vs. the Source Code

I just finished Sams Teach Yourself ASP.Net in 24 Hours. I am now going through the Data tutorials here. I am a beginner at ASP.Net. One thing that I am having a little bit of trouble with is the idea that I am using the Designer in Visual Studio for just about everything except for a few code tweaks. I used to do a lot of HTML, JavaScript and CSS. I even did some programming (PowerBuilder). So, I am used to writing/typing code instead of using a Designer. (I always liked writing web pages in a text editor.) When I look at the code generated by the Designer in Visual Studio, I can understand what is going on there. But, to sit down and write that code instead of using the Designer to me seems impossible. There is just so much there. From what I understand, ASP.Net and Visual Studio were created to help streamline the code writing process. I suppose if I was used to writing VB code to create applications I might look at this from a different angle. But, I am learning ASP.Net using the VS Designer. Any comments or suggestions from experienced coders? I really don't want to have a battle between people who use the Designer and the Source Code editor. I am just hoping for some comments that will help newbies. Thanks.

I have a newbe question about sql standard 2008, How do I merge 1 row of data from another DB to the


Hi everyone,

 I am new to data base type work. I have very little exsperience in database code. I set up an application that retrieves data from the UI that has four forms. The application calculates and modifies this data for storage in different fields in a database. The application itself is not very simple as to the operation of the print and rs232 operations. But I have all of that code written and have written code for updateing the local db with this information. I was able thru searches to find enough information to update the local db.

 I have not been able to find any code example for merging 1 row of data from one DB to another DB. That has the same data table and fields in both data bases.  Now these DB's are set up exactly same except for DB name and Table name. They have exactly the same field and column names. The only difference is the data in the primary key field, the database that is local builds two rows that the key field has the same data except for one letter and is build at different times. The remote data base has the same data in the key field except it does not have the letter at the end of the data.

 Local data base    Key                     Re

Sharepoint general functionality question?


I have a client who has an SBS2008 server. The shaprepoint component is not being used. This client is a flavor company and is currently maintaining formulas on excel spreadh sheets. Can I use sharepoint to create a database that can be easily searched based on any information in the formulas?




The question of Merge Publication


We are attempting to setup a master republisher model for horizontal
scaling of our mobile devices. We currently have what will be the
republisher with CE's connected to it. The goal being I do not want
to cause re-inits and data loss from the CE's to the republisher when
I add the master.

What I have done is take a backup of our republished data and put it
on the master. So I have the exact same schema/data in both my
republisher and my master. Life is good, I setup the Master
publication with @pre_creation_cmd = 'none' (If the table already
exists at the Subscriber, no action is taken) this is so it will NOT
drop the tables and recreate them. I already have the data in place
and I just want to replicate the changes. The problem I am having is
once the master to republisher script is in place and I try to sync a
CE, the changes are NOT replicated to the master. It is like since I
said pre_creation_cmd = none, it does not care what changes anymore
for the data that already existed.

Any one can fix this problem?

merge replication and a locking question


We had a user yesterday that ran a report and their system froze.

i connected and looked and the replication processes is what was blocking. i stopped the synchrnozing, everyone could continue working, then i started the synch and everything was fine.

This is SQL 2005, merge replication.

The report is driven by a SELECT that has a user defined function that also only does SELECTs, and the report query takes about 30 minutes to run.

Does a SELECT lock a record in a table while it is reading it? If so, i don't want a SELECT to lock anything, but i also don't want the SELECT to read dirty records (NOLOCK/REUNCOMMITED).

This might not be enough information to start with, but i am trying to figure out if the report query is what caused the replication to cause blocking - somehow - and if so what can i do to stop a SELECT statement from locking records.



General Question



I'm wondering why I never see an object like this:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestConsole
    class TestClass2
        public TestClass2()
            A = "test";
            B = "test2";
            C = "test3";
            D = C;

        public string A

        public string B

        public string C

        public string D


Instead of something like this:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestConsole
    class TestClass
        public string a;
        private string b;
        private string c;
        private string d ;

        public TestClass()
            a = "test";
            b = "chest";
            c = "chief";
            d = "test2";


Some basic MVC question

  1. In regular asp net I can run (debug) the application but I can either "view in browser" that gives me the option to view the application and write code on same time.

In MVC I can't find this option.

  1. What is the basic DATA MODEL for working with SQL DB.

I mean with no any framework (entity framework, Sub sonic, Link to SQL etc')

I look for basic application that works with data but with no fw.

  1. What is the popular DB framework that working with data.
  2.  I am looking on  mvc series


C# Soup To Nuts  (the best series ever)


I watch some of the MVC video, seems that the music store is good but I have to wait to the other part.

Does any one know and recommend   a Microsoft MVC tutorial?





Web Site to Web Application Question


I've been building web sites and for my next project I will be creating a web application.  I use a 'BasePage' class in all my projects but, since web applications do not contain the 'App_Code' folder, what is the best place/practice for the 'BasePage' class?



connection string question from a newbie


when publishing  in the webmatrix dialogue it asks for "destination connection string" for my "database.mdf"

I was not sure what it was so I pasted this from my web.config file :

Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\database.mdf;Integrated Security=True;User Instance=True

it all published ok, but wont run, so I guess it has somthing to do with this connection string or some kind of configuration issue.

My question is this, What should go in the field for "Destination connection string"

Security Question Answer Retrieval


I know there is a method built in for retrieving the encrypted password, but how do I retrieve the encrypted security answer?

What I want to do is have a member profile update screen that the end user can update their password and security question and answer. However, when they get to this page, I want to already be showing the security question (the easy part) and its answer (the not so easy part).

I have updated web.config with passwordFormat=Encrypted and have added a machineKey with the generator (forgot the link, but located on eggheadcafe somewhere).

I haven't done ANYTHING yet, since I already have a user store with hashed information. I wanted to get some functionality done before publishing, wiping the store and recreating users (only a couple developers).


Very Basic Question - Error message running first page


Hi Everyone,

I am running Windows 7 and I have gone into Control Panel and activated all of the IIS Functions.

The web application I am running was downloaded from the net (and has worked on other machines previously).  Once I downloaded it, I moved it into C:/inetpub/wwwroot/code/main.asp

I am a bit of a novice at this!  But I am hoping someone can point me in the right direction!


I get the following error when I try and run the web application through IE:

"An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click here to find out more about this error."

(When i click the "click here" button it just goes to the IIS site).


Appreciate any help I can get!




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