SQL Authetication in windows service

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default SQL Authetication in windows service

    how to configure .NET windows service to use windows authentication for SQL
    server
    ajit Guest

  2. Similar Questions and Discussions

    1. Tomcat HTTPS SSL Authetication (WITH SECURITYCONSTRAINT)
      Hi all, I have a flex application which emedded into a page which is protected using container managed authentication The contraint look like...
    2. form authetication?
      Hi Can anyone tell me which logon name (is NON "pre-Windows 2000" or the "pre-Windows2000") is used for form authentication? Mine seems to work for...
    3. ASP.NET windows authetication
      Traditionally, I've used windows authentication with a web server on an Active directory domain. IIS authenticated users on AD. However to do...
    4. converting windows service to a web service
      Hello, I currently have a windows service that I am considering changing into a web service. The windows service is used to communicate with...
    5. Forms Authetication to Protect Single File Using Asp.net
      I want to protect a single file (openvideo.aspx). I already setup the folder as an application in IIS. The authentication seems to work fine and...
  3. #2

    Default Re: SQL Authetication in windows service

    just create a connectionstring that uses WinAuth ...
    [url]http://www.connectionstrings.com/[/url]

    --
    Daniel Fisher(lennybacon)
    MCP ASP.NET C#
    Blog: [url]http://www.lennybacon.com/[/url]


    "ajit" <ajit@discussions.microsoft.com> wrote in message
    news:46859B69-F1E7-4448-99D8-9306080DBD29@microsoft.com...
    > how to configure .NET windows service to use windows authentication for
    > SQL
    > server

    Daniel Fisher\(lennybacon\) Guest

  4. #3

    Default RE: SQL Authetication in windows service

    integrated security=SSPI;

    add this to your web.config

    "ajit" wrote:
    > how to configure .NET windows service to use windows authentication for SQL
    > server
    Peng Jie Guest

  5. #4

    Default Re: SQL Authetication in windows service

    try this

    myConnection = new
    SqlConnection("server=localhost;trusted_connection =true;database=xxxxx");
    myconnection= new SqlConnection("data source=server address;initial
    catalog=xxxx; Trusted_Connection=yes")

    Khan Imran
    "Peng Jie" <PengJie@discussions.microsoft.com> wrote in message
    news:9D38930F-6835-4985-BBF0-4EBC1E8BF7C7@microsoft.com...
    > integrated security=SSPI;
    >
    > add this to your web.config
    >
    > "ajit" wrote:
    >
    >> how to configure .NET windows service to use windows authentication for
    >> SQL
    >> server

    Khan Imran Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139