PC Review


Reply
Thread Tools Rate Thread

Access to sql2005

 
 
vaishalikedar@hotmail.com
Guest
Posts: n/a
 
      30th May 2007
I have a website in VS2005 C#. Access to server is no problem in debug
mode.

Access in run mode gives an errror. What exactly do I need to do to
enable this?

Thanks and regards,
VK

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      30th May 2007
On May 30, 2:08 am, vaishalike...@hotmail.com wrote:
> I have a website in VS2005 C#. Access to server is no problem in debug
> mode.
>
> Access in run mode gives an errror. What exactly do I need to do to
> enable this?
>
> Thanks and regards,
> VK


What error exactly?

SQL Server 2005 doesn't take remote connections by default. Might this
be your problem? Take a look into Sql Server Surface Area
Configuration Tool

 
Reply With Quote
 
Hans Kesting
Guest
Posts: n/a
 
      30th May 2007
> I have a website in VS2005 C#. Access to server is no problem in debug
> mode.
>
> Access in run mode gives an errror. What exactly do I need to do to
> enable this?
>
> Thanks and regards,
> VK


How are you connecting to the database? I'm guessing "integrated security".
When you run the site in the debugger, it could run under your account,
which has access rights to the database.
When you run it "for real" it runs under a local ASPNET (or NETWORK SERVICE)
account, which isn't known to SqlServer.

Solution: connect to SqlServer using a specified sqlserver account.
(note: SqlServer needs to be set up to accept both integrated secirity
and local accounts - which isn't the default)

Hans Kesting


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
import data from Access to SQL2005 64bit problem Tarvirdi Microsoft Access ADP SQL Server 3 8th Nov 2008 08:12 PM
Multithreaded Database access with C# on an Sql2005 and TransactionScope class (Bug or did I some mistake?) Michael Schöller Microsoft C# .NET 3 29th Apr 2008 10:30 AM
ACCESS 2007 with SQL2005 High CPU Utilization PSS Windows XP 0 6th Dec 2007 02:51 AM
pb connection between sql2005 and Access ChristianB Microsoft Access ADP SQL Server 3 29th May 2006 09:04 AM
have a way access to sql2005 objects directly? mtczx232@yahoo.com Microsoft VB .NET 0 2nd Feb 2006 10:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:36 PM.