PC Review


Reply
Thread Tools Rate Thread

Cant Login on a sql2005 machine from VS2005 IDE debug mode

 
 
ChiWhiteSox
Guest
Posts: n/a
 
      25th Jan 2008
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?

 
Reply With Quote
 
 
 
 
Norman Yuan
Guest
Posts: n/a
 
      25th Jan 2008
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" <(E-Mail Removed)> wrote in message
news:BCC6DF54-6D0C-40B3-8704-(E-Mail Removed)...
> 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?
>


 
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
Starting VS2005 in debug mode jack Microsoft ASP .NET 1 12th Sep 2007 03:16 AM
VS2005 and SQL2005 Seeing Schema Changes RG Microsoft VB .NET 0 30th Jan 2006 12:58 AM
VS2005 Debugging SQL2005 Stored Procedure harry Microsoft VB .NET 0 8th Jan 2006 12:28 AM
Blank page in debug mode in VS2005 antonin.jelinek@gmail.com Microsoft ASP .NET 1 17th Oct 2005 07:17 PM
2.0, sql2005 vs2005 question =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= Microsoft ASP .NET 2 29th Jul 2005 03:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:52 AM.