DB connection error

From: Spookie (alopez_at_la911.com)
Date: 06/09/04


Date: Wed, 9 Jun 2004 14:00:14 -0700

I have made numerous attempts to configure sharepoint 2003 for a web farm
configuration. My problem is in attempting to connect to our SQL server to
set up the configuration DB. We have SS2K EE installed on two computers, one
is on the local host and the other is remote. In both cases I get the
following error message. I have verified that our SS2K EE instances are
configured for case insensitive collation. So what else can be the problem?

----------------------------------------------------------------------------
--------------------------------------------
You receive the "Error accessing database" error message and other error
messages when you try to create a SharePoint Portal Server 2003 or a Windows
SharePoint Services configuration database
View products that this article applies to.
SYMPTOMS
When you install Microsoft Office SharePoint Portal Server 2003 or Microsoft
Windows SharePoint Services with Microsoft SQL Server, and you try to create
the configuration database, you receive the following error message:

Error accessing database. Verify that the database server name and the
instance name (if present) are correct. Also, ensure the configuration
database administration account has sufficient permissions on the server or
instance and the service corresponding to your SQL Server instance is
running.
When this issue occurs, the database is created but does not function. If
you continue after you receive this error message, and you try to create a
Portal, you receive the following error message:

Portal creation failed. Please see the portal creation log for more details.
The following error may also be recorded in the Portal log file:

10:29:54 Portal creation job exception. (status=PortalAdminJobStatusFailed)
Microsoft.SharePoint.SPException: Must declare the variable '@SiteId'.
(Error code: 137). ---> System.Runtime.InteropServices.COMException
(0x81071717): Must declare the variable '@SiteId'. (Error code: 137).
If you are installing Microsoft Windows SharePoint Services, and you try to
extend a virtual server, you receive the following error message:

Must declare the variable '@SiteId'. (Error code: 137).
CAUSE
This issue may occur if the SQL Server is configured to use case sensitive
collation. SharePoint Portal Server 2003 requires that the collation name
for the database be Latin1_General_CI_AS_KS_WS. This name most closely
matches the Microsoft Windows NTFS file system collation.
RESOLUTION
To resolve this issue, use case-insensitive collation in SQL Server. The
collation for SQL Server 2000 is configured when SQL Server is installed. To
resolve this issue, remove, and then reinstall SQL Server with
case-insensitive collation.
MORE INFORMATION
For information about how to install SQL Server with case-insensitive
collation, follow the instructions in your SQL Server documentation.

For additional information about a related issue, click the following
article number to view the article in the Microsoft Knowledge Base:
306492 Error Message: Unable to prepare tables in database...

----------------------------------------------------------------------------
--------------------------------------------



Relevant Pages

  • Re: Failed to register SharePoint Services 2007
    ... with SQL Server 2K and use that instead of SQL Server 2005. ... When I ran the configuration databse for the first time I had a failure ... System.ArgumentException: Exception of type ... So I used the ntrights to get that privilege on my sharepoint user. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Failed to register SharePoint Services 2007
    ... with SQL Server 2K and use that instead of SQL Server 2005. ... When I ran the configuration databse for the first time I had a failure ... System.ArgumentException: Exception of type ... So I used the ntrights to get that privilege on my sharepoint user. ...
    (microsoft.public.sharepoint.portalserver)
  • cannot connect to config DB
    ... set up the configuration DB. ... You receive the "Error accessing database" error message and other error ... messages when you try to create a SharePoint Portal Server 2003 or a Windows ... Windows SharePoint Services with Microsoft SQL Server, ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: problem with new sql server 2005 install
    ... I forgot to mention that this is a Microsoft SQL Server 2005 Enterprise ... >> I tried to run the sql server surface configuration and I get the following ... >> get the following error message ... >> An error has occurred while establishing a connection to the server. ...
    (microsoft.public.sqlserver.datamining)
  • Re: SBS Sharepoint Error...please help
    ... but I have not moved the database. ... Also I can't get into the admin of Sharepoint anymore... ... you receive this error message when you click the link that is ... when the TCP port that SQL Server 2000 uses is different from the TCP port ...
    (microsoft.public.sharepoint.portalserver)