Showing posts with label deployed. Show all posts
Showing posts with label deployed. Show all posts

Sunday, March 25, 2012

connection problem

hy,

I have deployed my package to an microsoft sql 2005 server, this is error free. but i can't connect to the server it gives an error "access is denied".

i have tried looking at the rights i have and normally it should do it.

if anybody has an idea what's the problem might be, shoot.
thanks in front,

jens

I have tried the advise that was posted elsewhere (http://sqljunkies.com/WebLog/knight_reign/archive/2006/01/05/17769.aspx) gave myself all rights. still doesn't work.

Please if you have the slightest idea. post it. much oblidged

Jens

|||

What kind of server are you trying to connect to? SQL Server? SSIS Server? etc...

From where are you trying to connect to it? From BIDS? From SSMS? From a remote app? From the command-line? etc...

How are you conencting to it? SQL auth? Windows auth?

Provide more information and you might get more answers.

-Jamie

connection pooling problem w/ ASP.NET 2.0 and SQL 2005 64 bit?

Here's the gist of the problem I am having:
I just deployed my new ASP.NET 2.0 / C# web app to "production". I have a
web server running Windows 2003, all the latest updates, etc. As mentioned,
the web app is running under ASP.NET 2 and C3. On a separate server, I am
running SQL Server 2005 64 bit, Standard Edition (SP1).
Note, I have separate development and test environments that mimic the above
setup. That is I have a dev web server accessing a separate dev database
server; the only difference is that the db server is SQL 2005 32 bit, Std
Edition; same in test.
My production web app is experiencing connection pooling problems. If I
bring up the activity monitor on the production db server while I am
exercising some of the web pages, I can watch the connections grow to the
100 max (the default for asp.net) very quickly (just one person hitting a
page that exercises a database query) and then the .NET app will eventually
throw an error:
Message: Timeout expired. The timeout period elapsed prior to obtaining a
connection from the pool. This may have occurred because all pooled
connections were in use and max pool size was reached.
Source: System.Data...
Some things to consider:
1) Before everyone jumps to the conclusion about datareaders, please bear in
mind that the EXACT same .NET code is on dev and test web servers; I am NOT
able to get the connections to max out on dev or test; whereas on production
web server, I can easily get it to max out. It's not a code issue. Yes, I
know all about closing DataReader connections explicitly, blah, blah. It's
not the code.
2) There are 2 major difference on the db server; however
a) the production server is 64 bit; my other db servers are 32 bit
b) I actually spent quite a bit of time today on my production db server in
an effort to get linked server stuff working. So, there are some definite
things I did on the prod server db that I have *not* done on dev or test sql
boxes, such as
- turning on MS DTC security config settings (in Component Services); there
are many MS blogs about this and the following MSKB:
http://support.microsoft.com/kb/899191
- enabling named pipes
So, I'm thinking I have 2 straws to grasp at:
A) call Microsoft tech support to see if there's anything that google hasn't
turned up
B) uninstall SQL Server 2005 on my production db server and reinstall using
a 32 bit version. Of course, since this is production. I bought 64 bit SQL,
so would I be "allowed" to downgrade to 32 bit? The only additional disc
media I have are MSDN discs.Hi,
Thanks for using Microsoft Managed Newsgroup.
From your description, I understand that:
Your ASP.NET 2.0 web application with SQL Server 2005 64 bit SP1 was
running on a production environment. The database server was on a separated
machine. You found that the connections grew quickly to reach the max
connection limit on your SQL Server and then any new connecion was timeout.
However no problem appeared on your test and development environment.
If I have misunderstood, please let me know.
For further research, I would like your answering me several questions:
1. How long had the SQL Server been normally running before the problem
appeared?
2. What are the situations of CPU and memory usage at that time?
3. Could you see some errors in the Event logs?
Also, I would like to collect the following information from you:
1. MPSReport:
Please help create a MPSReport on the problematic machine, which will
collect
ERRORLOG, Windows event log and other helpful information about the SQL
Server. To
create a MPSReport, please visit the following web site:
<http://www.microsoft.com/downloads/details.aspx?FamilyId=CEBF3C7C-7CA5-408F
-88B7-F9
C79B7306C0&displaylang=en>.
And look for MPSRPT_SQL.EXE. Download it and run it on the machine. Dismiss
the
prompted dialog boxes and the readme window (usually a Notepad) after you
read
them. After the Command Prompt window closes itself, collect the cab file
the tool
has generated and sent it to me.
2. SQL Error log:
By default, they are located at: C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\LOG -- Send all the files under this folder with zip
format to me.
3. Server Configurations:
Use sqlcmd or osql to run the following batch and send the output file to
me:
Under command prompt: sqlcmd -S ServerName\InstanceName -E -o C:\output.txt
exec sp_configure 'show advanced', 1
reconfigure with override
exec sp_configure
go
4. SQL Trace file
Use SQL Profiler to monitor your SQL Server to see what are the SQLs or SPs
being executed at that time.
I will create a web file space for your uploading the large files. However
you may need to leave me your email so that I can mail you the password.
If it is not convenient for you to leave your email here, you can send an
email to me (changliw@.microsoft.com).
Note: Our managed newsgroup is focused on break/fix issues that are neither
urgent nor complex. If the issue is urgent to your business, it is
recommended that you contact Microsoft Customer Support Services (CSS) via
telephone so that a dedicated Support Professional can assist you in a more
efficient manner. Please be advised that contacting phone support will be a
charged call.
To obtain the phone numbers for specific technology request please take a
look at the web site listed below.
http://support.microsoft.com/default.aspx?scid=fh;EN-US;PHONENUMBERS
If you are outside the US please see http://support.microsoft.com for
regional support phone numbers.
Sincerely yours,
Charles Wang
Microsoft Online Community Support
======================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================|||Hi,
Just check with you to see if you need further assistance on this issue.
We appreciate your posting back at your convenience and let us know the
issue status.
If you have any other questions or concerns, please feel free to let us
know. It is always our pleasure to be of assistance.
Charles Wang
Microsoft Online Community Support

Connection pooling not working in Clustered Env.

Hi,
We had deployed a .NET application in a non clustered environment with conection pooling and was working fine. Now we had moved to a clustered env and connection pooling stopped working. Is there any cluster aware setting that we need to look at. Please let me know your thoughts.
Thanks in advanceCan you be more specific on what went wrong? Any error code, exception stack will be helpful.sqlsql

Sunday, February 12, 2012

Connecting to SQL Server of another domain

Please help me to find the solution for following problem.

I have my web server (with .NET 2.0 Framework) in one Domain(DMS01) where i have deployed my application (developed in ASP.NET 2.0). I have to access the database (SQL Server 2000) that belongs to another Domain(DMS02). How could i connect to the database that belongs to domain DMS02 from Web Application belonging to domain DMS01.

Thanks in advanced for help.

To start with, you need to check on how you connect to the database. If you are on different domains then it will be hard for you to use integrated security, unless you use impersonation. So easiest thing is to go for sql authentication. This means that you need to define a user in DMS02 SQL server that has access to the database/tables that you need. Then make sure this SQL server accepts remote connections. You will also need the ip address of this SQL server.

You can test your connection in SQL Management Studio Express, where you can connect to the DMS02 SQL server with the specified credentials. Once it work, you should put this information in your connection string. Good luck!

|||

Let your DB server expose to the other doamin (DMS01) [So from your database server can access to either DMS01 or DMS02 domain]
Now, go to your application web.config file and make sure you typed the correct UserID with the right domain

Example: UserID = DMS02\MyUser

Good luck

|||

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

i am getting this error when i use following connection string(My database server is SQL Server 2000)


<add name="MyConnectionString"
connectionString="Data Source=DMS02\MSSQLSERVER;Initial Catalog=DatabseName;user id='sa';password='sa123'"
providerName="System.Data.SqlClient"/>

|||

bikashdangol:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

i am getting this error when i use following connection string(My database server is SQL Server 2000)


<add name="MyConnectionString"
connectionString="Data Source=DMS02\MSSQLSERVER;Initial Catalog=DatabseName;user id='sa';password='sa123'"
providerName="System.Data.SqlClient"/>

Check out this link:http://www.aquesthosting.com/HowTo/Sql2005/SQLError26.aspx

Good luck.

|||

Hi bikashdangol,

According to the error message you are getting now, It seems when you connecting to the data server, sql server client cannot locate the server machine. Can you verify if you can access machines in DMS02 from your domain?( these two domains need to build a trusted relationship before you can access machines accross domains). Another possibility is the sql server service is truned off OR allow remote connection is disabled. You can contact the server DBA for clarification.

Hope my suggestion helps