Re: Cant Login on a sql2005 machine from VS2005 IDE debug mode



Assume the SQL Server in box A is set up correctly (can be accessed from network. It seems it is the case according to your description, since you used SSMS in box B being connected to the SQL Server).

What type is the application? ASP.NET or Win Form? What is the ConnectionString used by the app? What does it mean "login to the tables"? SQL Server user logs in to Sql Server, and then they access SQL Server objects (tables, views....) od given database according to the permissions they are given. They do not log in to tables.

So, you need to

1. examine your connectionString to make sure your app can connect to the given database;
2. examine the permissions assigned to the SQL Server login/database user to see if the user has appropriate permission to the data (SELECT... UPDATE... DELETE....EXECUTE...) with SQL Server objects (table, view,sp...)


"ChiWhiteSox" <ChiWhiteSox@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:BCC6DF54-6D0C-40B3-8704-67707836D7C5@xxxxxxxxxxxxxxxx
Hi,

i got machine A that has sql2005, vs2005 project. project runs okay there.
But when i copied that whole project folder to machine B, running sql2005,
VS2005, edited the web.config file to point to SQL2k5 machine A, and then run
it at VS2005, it cant connect to the DB at machine A. It says, unable to
connect to DB, server doesnt allow remote connections. But when i try to
connect to machine A using SQL SMS, im able to browse to the tables. I also
did the SQL allow remote connection using TCP/IP and browseable at the SQL
configuration at machine A. Also added the sqlbrowser.exe and sqlserver.exe
at the firewall exceptions. Thing is, it cant login to the tables using the
asp_net Login controls.

any ideas?


.



Relevant Pages

  • Re: Login with no Fixed Server Role and DB Role can stop SQL Agent Service?
    ... a Window 2000 Login with Domain User default permissions, ... > actually answered the question about the permissions the user has re: ... Forget about SQL Server for the moment. ... >> Enterprise Manager, but he is still able to stop the SQL Agent ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Server Security: NT Groups
    ... permissions from their group membership. ... So if I'm a member of GroupA and GroupA is granted a login ... SQL Server and access database B. ... membership, role membership with deny taking precedence. ...
    (microsoft.public.sqlserver.security)
  • Permissions!
    ... permissions to database objects are concerned. ... I have a SQL Server 7.0 database table which has 6 columns. ... REVOKE or DENY permissions to these 3 users? ... Please note that I login to my Windows 2000 Professional machine using ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Server Security: NT Groups
    ... >permissions from their group membership. ... >So if I'm a member of GroupA and GroupA is granted a login ... >>I'm new to SQL Server security and I don't know if it is ... >>then just add the 2 logins to the SQL Server Roles. ...
    (microsoft.public.sqlserver.security)
  • Re: Security question ..
    ... > If you use NT authentication, a user's permissions to a database are ... Your assertion that a user's permissions are independent of the application ... Even using Access and "exploring" will require an ODBC login to SQL Server. ...
    (microsoft.public.sqlserver.server)