Cannot Connect to the Configuration Database !

Last week when  i was trying to access my  SharePoint Portal , all  it showed me was "Cannot  Connect to Configuration Database"  . I   then  checked each and everything related to the configuration of the SharePoint stuff , then  found out that  the  Database "SharePoint_Config"  was in  SUSPECT mode . Now for solving this kinda issue , just run this script in your  SQL Server Management Studio .


EXEC sp_resetstatus ‘SharePoint_Config’

ALTER DATABASE SharePoint_Config SET EMERGENCY

DBCC checkdb(‘SharePoint_Config’)

ALTER DATABASE SharePoint_Config SET SINGLE_USER WITH ROLLBACK IMMEDIATE

DBCC CheckDB (‘SharePoint_Config’, REPAIR_ALLOW_DATA_LOSS)

ALTER DATABASE SharePoint_Config SET MULTI_USER

 

 

Hope  this helps !


Tags: , , , , , , , , , ,
Categories: MOSS 2007

13 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Hey ....Am Back !!

Hi  People ,

Am back  , was hell busy  with  a couple of  projects  and  will  resume the  process with  some  really interesting  article  coming your way .....  Cool


Tags:
Categories:

30 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Highlighting GridView Row on MouseOver

Of late , i've  been receiving  E-Mails  asking for  publishing  the content  for BEGINNERS  in  .NET ,  So  i've decided  to  include  some  new posts  for  them .

 

In  this  article  , we'll  see  how  we  can  change  the  row color  of  a  GridView  when   anyone   moves  their mouse over  the GridView .  So  let's get it  started.

1) Create  a  page name Test.aspx

 

Test.aspx ( HTML Markup)

 <div class="TEST">
    <asp:GridView  ID="GV1" runat="server" >
        <Columns>
                  <asp:TemplateField>
                          <ItemTemplate>
  
                                 <asp:LinkButton ID="Link1"  runat="server" Text='<%# Eval("FirstName") %>' CommandName="LINK"   ></asp:LinkButton>
                         </ItemTemplate>
                  </asp:TemplateField>
       </Columns>
    </asp:GridView>
       
  </div>

 

Test.aspx.cs

protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            con = new SqlConnection("uid=sa;pwd=123456;database=Talib");
            con.Open();
            da = new SqlDataAdapter("select  * from tblRegistration order by id desc", con);
            ds = new DataSet();
            da.Fill(ds);
            GV1.DataSource = ds;  // GV1 is  the name of  GridView
            GV1.DataBind();
        }

        catch (Exception ex)
        {
            Response.Write(ex.Message);

        }
        finally
        {
            con.Close();
        }

    }

 

2)  Now  we  need to  assign  the  CSS  styling  for this   GridView  ,  illustrated  below

<style type="text/css">
        .TEST div table tr:hover
    {
          background-color:silver;
    }

</style>

 

Now, we're done.  Execute  the  page  and  see how  it  works.

 

 

I  hope you people like this post ,till  then  enjoy  Programming ......   Smile

 


Tags: , , , , ,
Categories: ASP.NET

11 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

Silverlight 3 Released.

Since  the time  it  was launched last year ,  Microsoft's Silverlight  has been  a  centre  of attraction  for  one  and all.  Right  from  its  look  and feel  , the  type of  applications  it can  develop,  it's  functionality   and many  more  ,  were  the  points  of  concern .  But  Silverlight  has achieved  'em  all  , thanks  to Microsoft  .  So  finally  ,  Silverlight 3   has been  released  .

The  main  features   which  constitute   Silverlight 3  are

1) HD  Media

2) Immersive Graphics

3) Out of browser support

4) Application Development


Scott Guthrie  has explained  each  and  every point  in  detail  .Please  have  a  look  at  it .



Tags: , ,
Categories: Silverlight

6 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed

 


© Copyright 2009. www.onlineasp.net All Rights Reserved.