Click here to Skip to main content
15,889,462 members
Home / Discussions / Database
   

Database

 
GeneralRe: UnQuote a nvarchar() string and use it as a table name Pin
reza assar6-Jul-11 1:04
reza assar6-Jul-11 1:04 
QuestionGetDate Pin
berba4-Jul-11 0:10
berba4-Jul-11 0:10 
AnswerRe: GetDate Pin
thatraja4-Jul-11 0:25
professionalthatraja4-Jul-11 0:25 
AnswerRe: GetDate Pin
Simon_Whale4-Jul-11 0:40
Simon_Whale4-Jul-11 0:40 
GeneralRe: GetDate Pin
berba4-Jul-11 2:44
berba4-Jul-11 2:44 
GeneralRe: GetDate Pin
Simon_Whale4-Jul-11 2:49
Simon_Whale4-Jul-11 2:49 
AnswerRe: GetDate Pin
Shameel4-Jul-11 4:44
professionalShameel4-Jul-11 4:44 
QuestionA Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Vasudevan Deepak Kumar30-Jun-11 7:24
Vasudevan Deepak Kumar30-Jun-11 7:24 
A simple code as below:

<script language="C#" runat="server">
    void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SqlConnection objConnection = new SqlConnection("Data Source=MySQLServer;Initial Catalog=gqs;Integrated Security=True;");
            objConnection.Open();
        }
        catch (SqlException objException)
        {
            Response.Write(objException.Message);
        }
        Response.Write("<br><Br>The page is executing as " +Thread.CurrentPrincipal.Identity.Name);
    }
</script>


gives the following output:

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
The page is executing as MyDepartmentDomain\deepak

When the thread is running as me how does SSPI pickup Anonymous Logon?
Vasudevan Deepak Kumar
Personal Homepage
Tech Gossips


The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!




AnswerRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Pete O'Hanlon30-Jun-11 7:44
mvePete O'Hanlon30-Jun-11 7:44 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Vasudevan Deepak Kumar30-Jun-11 7:53
Vasudevan Deepak Kumar30-Jun-11 7:53 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
J4amieC1-Jul-11 1:18
J4amieC1-Jul-11 1:18 
AnswerRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Mycroft Holmes30-Jun-11 12:54
professionalMycroft Holmes30-Jun-11 12:54 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Vasudevan Deepak Kumar30-Jun-11 13:43
Vasudevan Deepak Kumar30-Jun-11 13:43 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
J4amieC30-Jun-11 23:57
J4amieC30-Jun-11 23:57 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Mycroft Holmes1-Jul-11 0:54
professionalMycroft Holmes1-Jul-11 0:54 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
J4amieC1-Jul-11 1:11
J4amieC1-Jul-11 1:11 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Mycroft Holmes1-Jul-11 1:26
professionalMycroft Holmes1-Jul-11 1:26 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
J4amieC1-Jul-11 2:40
J4amieC1-Jul-11 2:40 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Mycroft Holmes1-Jul-11 2:55
professionalMycroft Holmes1-Jul-11 2:55 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Eddy Vluggen3-Jul-11 1:08
professionalEddy Vluggen3-Jul-11 1:08 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Mycroft Holmes3-Jul-11 1:50
professionalMycroft Holmes3-Jul-11 1:50 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Eddy Vluggen3-Jul-11 2:03
professionalEddy Vluggen3-Jul-11 2:03 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Mycroft Holmes3-Jul-11 2:50
professionalMycroft Holmes3-Jul-11 2:50 
AnswerRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Shameel30-Jun-11 22:41
professionalShameel30-Jun-11 22:41 
GeneralRe: A Quick SQL/Integrated Authentication issue (Looks like I am missing something trivial) Pin
Vasudevan Deepak Kumar1-Jul-11 2:46
Vasudevan Deepak Kumar1-Jul-11 2: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.