Click here to Skip to main content
15,913,055 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionmaster page problem Pin
mark_me24-Apr-09 16:12
mark_me24-Apr-09 16:12 
AnswerRe: master page problem Pin
SayreCC24-Apr-09 17:28
SayreCC24-Apr-09 17:28 
QuestionRe: master page problem Pin
mark_me24-Apr-09 18:13
mark_me24-Apr-09 18:13 
QuestionNeed help with gridview datakeys property ! Pin
guitaret24-Apr-09 13:45
guitaret24-Apr-09 13:45 
QuestionMicrosoft.Win64.RegistryKey?!!! Pin
swetha sankaran24-Apr-09 8:37
swetha sankaran24-Apr-09 8:37 
AnswerRe: Microsoft.Win64.RegistryKey?!!! Pin
Ryomin24-Apr-09 8:51
professionalRyomin24-Apr-09 8:51 
GeneralRe: Microsoft.Win64.RegistryKey?!!! Pin
swetha sankaran24-Apr-09 9:44
swetha sankaran24-Apr-09 9:44 
QuestionGot it(atleast partially) Pin
swetha sankaran24-Apr-09 9:41
swetha sankaran24-Apr-09 9:41 
public string RetrieveDataSource<br />
 {<br />
    get<br />
     {<br />
         try<br />
         {<br />
             System.Data.Sql.SqlDataSourceEnumerator en = System.Data.Sql.SqlDataSourceEnumerator.Instance;<br />
             DataTable dt = en.GetDataSources();<br />
             RegisteredServer[] rsvrs = Microsoft.SqlServer.Management.Smo.SqlServerRegistrations.EnumRegisteredServers();<br />
             foreach (RegisteredServer rs in rsvrs)<br />
             {<br />
                     serverName = rs.ServerInstance;<br />
             }<br />
         }<br />
         catch (Exception ex)<br />
         {<br />
             ex2 = ex.Message;<br />
         }<br />
         return serverName;<br />
     }<br />
     }


The returned string is "machine name"\sqlexpress.
Atleast this returns something instead of object reference error.
Now the next question is, the Sql server instance the solution is accessing is MSSQLSERVER2008, now why would it show Sqlexpress in the output? If the answer is because its default, how to find the instance which is being currently used.
Thanks.

Swetha Sankaran

AnswerRe: Got it(atleast partially) Pin
Ryomin24-Apr-09 9:50
professionalRyomin24-Apr-09 9:50 
AnswerGot It Pin
Ryomin24-Apr-09 9:59
professionalRyomin24-Apr-09 9:59 
GeneralRe: Got It Pin
swetha sankaran24-Apr-09 10:01
swetha sankaran24-Apr-09 10:01 
AnswerStop posting and deleting Pin
AlexeiXX324-Apr-09 10:51
AlexeiXX324-Apr-09 10:51 
GeneralRe: Stop posting and deleting Pin
swetha sankaran24-Apr-09 13:27
swetha sankaran24-Apr-09 13:27 
GeneralRe: Stop posting and deleting Pin
AlexeiXX324-Apr-09 13:37
AlexeiXX324-Apr-09 13:37 
Question[Message Deleted] Pin
swetha sankaran24-Apr-09 7:49
swetha sankaran24-Apr-09 7:49 
AnswerRe: Object reference not set to an instance of an object. Pin
Sandeep Akhare24-Apr-09 7:55
Sandeep Akhare24-Apr-09 7:55 
AnswerRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 7:56
professionalRolando CC24-Apr-09 7:56 
AnswerRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 8:00
professionalRolando CC24-Apr-09 8:00 
AnswerRe: Object reference not set to an instance of an object. Pin
Ryomin24-Apr-09 8:03
professionalRyomin24-Apr-09 8:03 
Question[Message Deleted] Pin
swetha sankaran24-Apr-09 8:26
swetha sankaran24-Apr-09 8:26 
AnswerRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 8:37
professionalRolando CC24-Apr-09 8:37 
General[Message Deleted] Pin
swetha sankaran24-Apr-09 8:38
swetha sankaran24-Apr-09 8:38 
GeneralRe: Object reference not set to an instance of an object. Pin
Rolando CC24-Apr-09 8:41
professionalRolando CC24-Apr-09 8:41 
AnswerRe: [Message Deleted] Pin
Ryomin24-Apr-09 8:48
professionalRyomin24-Apr-09 8:48 
QuestionThe request failed with HTTP status 400: Bad Request Pin
Sandeep Akhare24-Apr-09 7:46
Sandeep Akhare24-Apr-09 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.