Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > SQL Authetication in windows service

Reply
Thread Tools

SQL Authetication in windows service

 
 
ajit
Guest
Posts: n/a
 
      02-04-2005
how to configure .NET windows service to use windows authentication for SQL
server
 
Reply With Quote
 
 
 
 
Daniel Fisher\(lennybacon\)
Guest
Posts: n/a
 
      02-04-2005
just create a connectionstring that uses WinAuth ...
http://www.connectionstrings.com/

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


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



 
Reply With Quote
 
 
 
 
Peng Jie
Guest
Posts: n/a
 
      02-06-2005
integrated security=SSPI;

add this to your web.config

"ajit" wrote:

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

 
Reply With Quote
 
Khan Imran
Guest
Posts: n/a
 
      02-09-2005
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" <> wrote in message
news:9D38930F-6835-4985-BBF0-...
> integrated security=SSPI;
>
> add this to your web.config
>
> "ajit" wrote:
>
>> how to configure .NET windows service to use windows authentication for
>> SQL
>> server



 
Reply With Quote
 
Dave Smith
Guest
Posts: n/a
 
      11-09-2005
This does not work for me. I receive an Sql exception with the
following message: "Login failed for user '\'." Any thoughts on this?
There is no web.config. This is a windows service.



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
form based authetication not work after copying them to rebuilt se =?Utf-8?B?ZGF2aWQ=?= ASP .Net 4 08-17-2007 06:10 PM
Windows Authetication vs seperate process imageguy1206@gmail.com Python 3 12-20-2006 12:42 PM
Problems with aspnet_wp getting authetication to remote machines omar ASP .Net Security 0 04-16-2005 03:38 PM
ASP.NET windows authetication Andy ASP .Net Security 6 12-14-2004 02:31 PM
Forms Authetication to Protect Single File Using Asp.net rodrigo ASP .Net Security 1 08-21-2003 05:40 PM



Advertisments