Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Database > SQL Server

SQL Server Discussion related to SQL Server and MSDE with VB.NET development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 12-15-2008, 1:28 PM
cjard's Avatar
VB.NET Forum All-Mighty
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Apr 2006
Age: 65
Posts: 6,442
Reputation: 807
cjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond repute
Default

There's no change, other than it's a fresh bit of hardware and software?

I've had this same brush for 15 years.. It's had 3 new heads and 5 new handles..


No, but seriously. Do you really expect that a machine running SQL Server will use the credentials of the logged-on user to allow any arriving connection to authenticate? What's the point in that?

Quote:
Originally Posted by http://msdn.microsoft.com/en-us/library/bsz5788z.aspx
How to: Access SQL Server Using Windows Integrated Security

If your application runs on a Windows-based intranet, you might be able to use Windows integrated authentication for database access. Integrated security uses the current Windows identity established on the operating system thread to access the SQL Server database. You can then map the Windows identity to a SQL Server database and permissions.

To connect to SQL Server using Windows integrated authentication, you must identify the Windows identity under which your ASP.NET application is running. You must also be sure that the identity has been granted access to the SQL Server database. This topic includes a code example that displays the current Windows identity of the ASP.NET application.

Connecting to SQL Server
If SQL Server is on a different computer than the Web server, the Windows identity must be able to flow across the network to the remote instance of SQL Server. (Windows networks that have been configured appropriately with Kerberos authentication are able to do this.) However, depending on the settings in the identity configuration element, the Windows identity established on the operating system thread for ASP.NET applications may not be able to flow properly to the remote SQL Server.
I suggest you switch off Integrated Security if youre not on a domain, and use traditional username/password. I cannot guarantee that setting up an account on both machines, that has the same username and password will a) work, b) be sensible, and short of setting up a domain or kerberos challenge I really don't see how you can get your credentials to be recognised universally
__________________
DW1 DW2 DW3 DW4 DNU PQ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 12-19-2008, 5:45 AM
VB.NET Forum Enthusiast
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Oct 2008
Posts: 61
Reputation: 21
wakh is on a distinguished programming path ahead
Default

What I meant by "There's no change, other than it's a fresh bit of hardware and software" is that the setup is still the same, i.e is the same as it was before the upgrade.

I don't expect it, that's how the integrated security works. That's how Microsoft designed it, and the point of it is that when you are authenticating onto a machine running SQL Server, then you are authorized or trusted to access the database too, because otherwise you are not supposed to be logging on that machine in the first place. Apart from everything I am using this method from quite long, its not the first time and it still works on SQL Server 2000, only having problem in this new version of SQL Server. The article above is about the the authentication of the ASP.NET application, which is configured in the IIS itself. It doesn't apply to the standard windows application or in particular to this scenario.

As for setting up same usernames/passwords on both machines, it will not work because every account gets a unique SID, on which permissions are assigned, not on usernames and passwords.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 12-19-2008, 9:44 AM
cjard's Avatar
VB.NET Forum All-Mighty
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Apr 2006
Age: 65
Posts: 6,442
Reputation: 807
cjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond reputecjard has a reputation beyond repute
Default

Well, you clearly know so much more than me about windows authentication, so I'll take my opinion that your SQL Server doesnt believe you've authenticated at all, and go away. Hope you get it sorted.
__________________
DW1 DW2 DW3 DW4 DNU PQ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 12-21-2008, 11:05 AM
VB.NET Forum Enthusiast
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Oct 2008
Posts: 61
Reputation: 21
wakh is on a distinguished programming path ahead
Default

Thanks mate, I will have to try experimenting some more with it and see where does it lead.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 05-01-2009, 2:24 PM
VB.NET Forum Enthusiast
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: May 2007
Posts: 46
Reputation: 38
drew4663 is on a distinguished programming path ahead
Default

I know this is an old thread but maybe you are still struggling or someone is still needing the answer.

1. Did you find a solution?

2. Have you tried this.....

Go to Start->All Programs->SQL Server Express->Configuration Tools-> and open the management console. I don't have it in front of me but it's where you are able to stop and start the service. Anyway, expand the server and make sure TCP/IP is enabled, then right click and choose properties. Make sure that the IP address is changed from 127.0.0.1 to your 192.168.1.XXX. Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 05-02-2009, 10:16 AM
VB.NET Forum Enthusiast
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Oct 2008
Posts: 61
Reputation: 21
wakh is on a distinguished programming path ahead
Default

I carried out all those steps that time, but for some reason it was still not working. So what I did is hosted SQL Server and application both on the same machine and used "localhost" to connect, which worked.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On





All times are GMT -4. The time now is 12:45 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.