Showing posts with label below. Show all posts
Showing posts with label below. Show all posts

Tuesday, March 27, 2012

Cannot remove matrix column

Added a subtotal to matrix column. But really wanted subtotal below the columns. Now that subtotal column is permanent. Cannot find a way to remove it.

Nevermind, just select subtotal on context menu again and it goes away. How obvious.

Still, after reading various posts here I realize that it's not obvious at all how to put column subtotals at bottom of a matrix. let's say I have a simple matrix with one row group and one column. All I want is to have total at bottom of each data column.

Thursday, March 22, 2012

Cannot operate on a set with more than 4,294,967,296 tuples.

Below is an error that I run into often. Can someone tell me what is causing this and how to resolve it?

Executing the query ...

The expression contains a function that cannot operate on a set with more than 4,294,967,296 tuples.

Execution complete

Here is the MDX that caused the error:

With

Member [Measures].[Total Count] as

'[Measures].[Crash Count]'

Member [Measures].[Total Fatal] as

'[Measures].[Fatal Crashes]'

Member [Measures].[Total Injury] as

'[Measures].[Injury Crashes]'

Member [Measures].[Total A Injury] as

'[Measures].[A Injury Crashes]'

Member [Measures].[Total B Injury] as

'[Measures].[B Injury Crashes]'

Member [Measures].[Total C Injury] as

'[Measures].[C Injury Crashes]'

Member [Measures].[Total 0 Property Damage] as

'[Measures].[0 Property Damage Crashes]'

SELECT

NON EMPTY { [Measures].[Total Count],

[Measures].[Total Fatal],

[Measures].[Total Injury],

[Measures].[Total A Injury],

[Measures].[Total B Injury],

[Measures].[Total C Injury],

[Measures].[Total 0 Property Damage],

[Measures].[Vehicle Count],

[Measures].[Person Count],

[Measures].[Fatalities],

[Measures].[0 Injuries],

[Measures].[A Injuries],

[Measures].[B Injuries],

[Measures].[C Injuries],

[Measures].[Injuries] }

ON COLUMNS,

NON EMPTY {[Crash].[Case Nbr].[Case Nbr] *

[Date].[Calendar Date].[Date] *

[Crash].[Weather].[Weather] *

[Crash].[Road Defects].[Road Defects] *

[Crash].[Collision Type].[Collision Type] *

[Crash].[Light].[Light] }

DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM

(select strtoset('{[Crash].[County].&[Morgan] }')

on columns From

(SELECT STRTOMEMBER('[Crash].[TS Crash Mile Station].[5.28]') :

STRTOMEMBER('[Crash].[TS Crash Mile Station].[5.77]')

on columns From

(select {descendants([Crash].[Case Nbr].Currentmember)}

on Columns from

[SDM_Reports] ))) where ([Reportability].[Is Reportable].&[

Quick Update on this issue,

If I remove the [Crash].[Case Nbr].[Case Nbr] from Rows, then the error goes away.

|||

I am having the same problem..Can somebody help....

I want to know what causes this problem..

|||http://www.sqljunkies.com/WebLog/mosha/archive/2007/1/28.aspxsql

Cannot open user default database. Login failed. (only when IDE is open)

I get the below error only when my IDE open. It connects well when it is found closed.

[SqlException (0x80131904): Cannot open user default database. Login failed.
Login failed for user 'JP\ASPNET'.]

I could solve this by giving the logged in windows user to impersonate under IIS window > WEBSITE > ASP.NET tab > EDIT CONFIG > APPLICATION tab

But I wish someone could give me the proper solution.

I almost tried all from giving ASPNET user as a administrator to configuring the same in Express management tool.

Environment: XP pro, VWD and SQL Express

The problem i think is that u-r user that u r using has default database and that dont exist, to correct that u must go in the property of that user in Sql menagment system and set other default databse for that user..

I hope this will help

Sorry for my bad english

|||

I believe that when you have the database opened as "user instance" it can not be opened by more than one application, like Visual Studio and SQL Server Management Express, etc.

|||

Hi jpbiznes,

Could you please explain a little more?

where did you get that error message? From VWD or from IIS ? I guess it is from IIS since if you are using VWD accessing database, the account should be the one which you use to run VWD -- in this case the account won't be ASPNET.

I get the below error only when my IDE open.

There is a possibility that if you have attached your database file from one process, you cannot attach it again from another process. Since one physical database file cannot be attached by two different instances (note we use customer instance in sql2005 express). But in that case the error message should look lik: cannot attach database again since database file is currently in use.

Also, I performed a search through internet and find this KB article which may be helpful to you:

SYMPTOMS

loadTOCNode(1, 'symptoms');

Each user has a default database. When you connect to computer that is running Microsoft SQL Server, and you do not specify a login database, the default database is used. However, if the default database is unavailable at the time of the connection, you may not be able to connect. Instead, you receive error message 4062 or error message 4064. The text of the error messages is as follows:

Cannot open user default database

CAUSE

loadTOCNode(1, 'cause');

The user default database is unavailable at the time of connection. It is possible that the database:

?Is in suspect mode.?No longer exists.?Is in single user mode and the only available connection is already being used by someone else or by something else.?Has been detached.?Has been set to the RESTRICTED_USER state.?Is offline.?Is set to emergency status.?Does not have the login account mapped to a user or the user has been denied access.?Is part of a database mirror.

Additionally, the login account may be a member of multiple groups and the default database for one of those groups is unavailable at the time of connection.

http://support.microsoft.com/?id=307864

Hope my suggestion helps

Tuesday, March 20, 2012

Cannot open SQLServer Databaer Under IIS

ConnectionString is below.

Dim objDb As New SqlConnection("Data Source='(local)';trusted_connection=true;Initial Catalog=classdb")

This ConnectionString occurs DB-Open-Error. Why?

Show me the Solution.

what xactly is the error message ?
|||

Try this url for samples. Hope this helps.

http://www.carlprothman.net/Default.aspx?tabid=81

Monday, March 19, 2012

cannot open database "northwind" why

i am getting an error ... given below and my web.config is also given below

can any one help me is my connection string right ...
i am using sql server 2005 ..
my system name is soft18 ..


Server Error in '/prjLogin' Application.

Cannot open database "Northwind" requested by the login. The login failed.
Login failed for user 'SOFT18\Administrator'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Cannot open database "Northwind" requested by the login. The login failed.
Login failed for user 'SOFT18\Administrator'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SqlException (0x80131904): Cannot open database "Northwind" requested by the login. The login failed.
Login failed for user 'SOFT18\Administrator'.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +115
System.Data.SqlClient.TdsParser.ThrowExcepti....................
........................
................
...................

//web.config

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>

<add name="QuickStartSqlServer" connectionString="Server=localhost\SQLExpress;Integrated Security=SSPI;Database=Northwind;"
providerName="System.Data.SqlClient" />
</connectionStrings>

<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="Login.aspx"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="Login.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false"/>
</authentication>

<membership defaultProvider="QuickStartMembershipSqlProvider"
userIsOnlineTimeWindow="15">
<providers>
<add
name="QuickStartMembershipSqlProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="QuickStartSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="LoginControls"
requiresUniqueEmail="true"
passwordFormat="Hashed"/>
</providers>
</membership>

<roleManager
enabled="true"
cacheRolesInCookie="true"
defaultProvider="QuickStartRoleManagerSqlProvider"
cookieName=".ASPXROLES"
cookiePath="/"
cookieTimeout="30"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
createPersistentCookie="false"
cookieProtection="All">
<providers>
<add name="QuickStartRoleManagerSqlProvider"
type="System.Web.Security.SqlRoleProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="QuickStartSqlServer"
applicationName="LoginControls"/>
</providers>
</roleManager>
<authorization>
<allow users="*"/>
</authorization>
<compilation debug="true"/>
</system.web>

</configuration>You really, really, really should not do that becasue this leaves a security hole for SQL injection, imagine you user input (which should be treaten as suspious), enter in the textbox2 the following text:

'',NULL'); DROP DATABASE model; --

THis would cause the model database to be dropped, I am sure you don′t want to do this. :-) Always use parametrized queries for the access, that can′t be comnposed as easy as in the sample code of yours.

HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

Cannot open database

Hi i am currently doing my final year project. I am using MS SQL and ASP. I uncounter the error below when i am doing my login.

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database requested in login 's01673925'. Login fails.

this is my connection string:
Set connection = Server.CreateObject("ADODB.Connection")
connection.Open "DSN=LocalServer1;UID=s01673925;PWD=password;DATABA SE=s01673925"

Can any1 help mi by telling mi why i cant connect 2 database?did you test your DSN connection when you created it ?|||As it seems to the a security issue, ensure the login used have required permission to access the database.

Go thru this KBA (http://support.microsoft.com/default.aspx?scid=kb;EN-US;283860) to fix the issue.|||Cool...it's your final and you can't connect...must be a great course...

What's your major?|||BK : Arrte d'tre aussi nerv pour un rien
Pense ta tension
Un arrt cardiaque peut arriver si vite|||Lighten up france'es...**

Let me ask you.

Your in school..you take a class in SQL Server...

It's the end of the term...

And you don't know how to connect?

What does that say?

1 of 2 things, doesn't it...

And yes google has a wonderful translator....

** Bill Murray reference...who got screwed last night...|||it's not the END of his term (I hope)|||Are you sure your UID and DATABASE parameters are supposed to be the same? Try replacing DATABASE=s34765345 with DATABASE=pubs|||Did you put the instance name after the server name
in the DSN ?

ServerName\InstanceName

Cannot obtain a LOCK resource

I have received the error message listed below several times within the last
48 hours.
This server has only one database with SQL Server 2000 Enterprise Edition
and Windows 2003 server.
What server performance monitor counter statistics should I be looking at to
determine the cause of this problem?
What can I do to resolve this error?
Thanks,
Error Message
The SQL Server cannot obtain a LOCK resource at this time. Rerun your
statement when there are fewer active users or ask the system administrator
to check the SQL Server lock and memory configuration..
Hi,
it looks like you have reached the maximum locks on the server.
Number of locks is determined on availble memory to SQL Server.
Raising the memory available to SQL Server could help.
Danijel
"Joe K." <Joe K.@.discussions.microsoft.com> wrote in message
news:4A0366C4-A3D7-4A28-B24B-6B88322D6E3C@.microsoft.com...
> I have received the error message listed below several times within the
> last
> 48 hours.
> This server has only one database with SQL Server 2000 Enterprise Edition
> and Windows 2003 server.
> What server performance monitor counter statistics should I be looking at
> to
> determine the cause of this problem?
> What can I do to resolve this error?
> Thanks,
>
> Error Message
> The SQL Server cannot obtain a LOCK resource at this time. Rerun your
> statement when there are fewer active users or ask the system
> administrator
> to check the SQL Server lock and memory configuration..
|||In addition to Danijel's post you will need to monitor the lockblocks counter
in the SQLServer:Memory Manager object will tell you when the maximum amount
of locks was reached to produce this error. more memory will obviously help
as the sp_lock configuration when set to 0 will allocate upto 40% of SQL
memory to locks before this happens. so obviously increasing the amount of
memory(assuming that U are running 2K3 OS Advanced then you a can add upto
8Gb of memory)
"Danijel Novak" wrote:

> Hi,
> it looks like you have reached the maximum locks on the server.
> Number of locks is determined on availble memory to SQL Server.
> Raising the memory available to SQL Server could help.
> Danijel
>
> "Joe K." <Joe K.@.discussions.microsoft.com> wrote in message
> news:4A0366C4-A3D7-4A28-B24B-6B88322D6E3C@.microsoft.com...
>
>

Sunday, March 11, 2012

Cannot obtain a LOCK resource

I have received the error message listed below several times within the last
48 hours.
This server has only one database with SQL Server 2000 Enterprise Edition
and Windows 2003 server.
What server performance monitor counter statistics should I be looking at to
determine the cause of this problem?
What can I do to resolve this error?
Thanks,
Error Message
The SQL Server cannot obtain a LOCK resource at this time. Rerun your
statement when there are fewer active users or ask the system administrator
to check the SQL Server lock and memory configuration..Hi,
it looks like you have reached the maximum locks on the server.
Number of locks is determined on availble memory to SQL Server.
Raising the memory available to SQL Server could help.
Danijel
"Joe K." <Joe K.@.discussions.microsoft.com> wrote in message
news:4A0366C4-A3D7-4A28-B24B-6B88322D6E3C@.microsoft.com...
> I have received the error message listed below several times within the
> last
> 48 hours.
> This server has only one database with SQL Server 2000 Enterprise Edition
> and Windows 2003 server.
> What server performance monitor counter statistics should I be looking at
> to
> determine the cause of this problem?
> What can I do to resolve this error?
> Thanks,
>
> Error Message
> The SQL Server cannot obtain a LOCK resource at this time. Rerun your
> statement when there are fewer active users or ask the system
> administrator
> to check the SQL Server lock and memory configuration..|||In addition to Danijel's post you will need to monitor the lockblocks counter
in the SQLServer:Memory Manager object will tell you when the maximum amount
of locks was reached to produce this error. more memory will obviously help
as the sp_lock configuration when set to 0 will allocate upto 40% of SQL
memory to locks before this happens. so obviously increasing the amount of
memory(assuming that U are running 2K3 OS Advanced then you a can add upto
8Gb of memory)
"Danijel Novak" wrote:
> Hi,
> it looks like you have reached the maximum locks on the server.
> Number of locks is determined on availble memory to SQL Server.
> Raising the memory available to SQL Server could help.
> Danijel
>
> "Joe K." <Joe K.@.discussions.microsoft.com> wrote in message
> news:4A0366C4-A3D7-4A28-B24B-6B88322D6E3C@.microsoft.com...
> >
> > I have received the error message listed below several times within the
> > last
> > 48 hours.
> > This server has only one database with SQL Server 2000 Enterprise Edition
> > and Windows 2003 server.
> > What server performance monitor counter statistics should I be looking at
> > to
> > determine the cause of this problem?
> > What can I do to resolve this error?
> >
> > Thanks,
> >
> >
> > Error Message
> > The SQL Server cannot obtain a LOCK resource at this time. Rerun your
> > statement when there are fewer active users or ask the system
> > administrator
> > to check the SQL Server lock and memory configuration..
>
>

Cannot obtain a LOCK resource

I have received the error message listed below several times within the last
48 hours.
This server has only one database with SQL Server 2000 Enterprise Edition
and Windows 2003 server.
What server performance monitor counter statistics should I be looking at to
determine the cause of this problem?
What can I do to resolve this error?
Thanks,
Error Message
The SQL Server cannot obtain a LOCK resource at this time. Rerun your
statement when there are fewer active users or ask the system administrator
to check the SQL Server lock and memory configuration..Hi,
it looks like you have reached the maximum locks on the server.
Number of locks is determined on availble memory to SQL Server.
Raising the memory available to SQL Server could help.
Danijel
"Joe K." <Joe K.@.discussions.microsoft.com> wrote in message
news:4A0366C4-A3D7-4A28-B24B-6B88322D6E3C@.microsoft.com...
> I have received the error message listed below several times within the
> last
> 48 hours.
> This server has only one database with SQL Server 2000 Enterprise Edition
> and Windows 2003 server.
> What server performance monitor counter statistics should I be looking at
> to
> determine the cause of this problem?
> What can I do to resolve this error?
> Thanks,
>
> Error Message
> The SQL Server cannot obtain a LOCK resource at this time. Rerun your
> statement when there are fewer active users or ask the system
> administrator
> to check the SQL Server lock and memory configuration..|||In addition to Danijel's post you will need to monitor the lockblocks counte
r
in the SQLServer:Memory Manager object will tell you when the maximum amoun
t
of locks was reached to produce this error. more memory will obviously help
as the sp_lock configuration when set to 0 will allocate upto 40% of SQL
memory to locks before this happens. so obviously increasing the amount of
memory(assuming that U are running 2K3 OS Advanced then you a can add upto
8Gb of memory)
"Danijel Novak" wrote:

> Hi,
> it looks like you have reached the maximum locks on the server.
> Number of locks is determined on availble memory to SQL Server.
> Raising the memory available to SQL Server could help.
> Danijel
>
> "Joe K." <Joe K.@.discussions.microsoft.com> wrote in message
> news:4A0366C4-A3D7-4A28-B24B-6B88322D6E3C@.microsoft.com...
>
>

cannot login to sql server 2000

Hi,
May I know what is the error below? I can't even login with sa id. It fails
on two workstations but it works on the rest of the workstation.
Connection failed:
SQLState: '01000'
SQL Server Error: 53
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen (
CreateFile()).
Connection failed:
SQLState: '08001'
SQL Server Error: 6
[Microsoft][ODBC SQL Server Driver][Named Pipes]Specified SQL se
rver not
found.
Thanks in advance
andrewHi
Are the rest of the workstations using the same ODBC drivers as the the ones
on the two workstations. Click on the drivers tab and check versions. If
there not the same try and download some
new MDAC drivers. Just a guess. Are the working workstations using TCP/IP
to connect to SQL server?
"andrew" <andrew@.discussions.microsoft.com> wrote in message
news:46023653-6EB9-4D0A-AE7E-DC7256C2E36A@.microsoft.com...
> Hi,
> May I know what is the error below? I can't even login with sa id. It
> fails
> on two workstations but it works on the rest of the workstation.
> Connection failed:
> SQLState: '01000'
> SQL Server Error: 53
> [Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen
> (CreateFile()).
> Connection failed:
> SQLState: '08001'
> SQL Server Error: 6
> [Microsoft][ODBC SQL Server Driver][Named Pipes]Specified SQL
server not
> found.
> Thanks in advance
> andrew
>

Saturday, February 25, 2012

Cannot install error code is :-2147467259. Workstation Components ...

I cannot get the the workstation components to install. Below is the error.

SI (s) (C0:58) [13:25:36:394]: Note: 1: 1708
MSI (s) (C0:58) [13:25:36:394]: Product: Microsoft SQL Server "Katmai" Tools -- Installation failed.

MSI (s) (C0:58) [13:25:44:996]: Cleaning up uninstalled install packages, if any exist
MSI (s) (C0:58) [13:25:45:056]: MainEngineThread is returning 1603
MSI (s) (C0Big Smile0) [13:25:45:387]: Destroying RemoteAPI object.
MSI (s) (C0:00) [13:25:45:727]: Custom Action Manager thread ending.
=== Logging stopped: 6/4/2007 13:25:35 ===
MSI (c) (98:94) [13:25:46:047]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (98:94) [13:25:46:298]: MainEngineThread is returning 1603
=== Verbose logging stopped: 6/4/2007 13:25:46 ===

Can you log a bug on Connect and attached the error logs please. We'll take a look.

Dan Bien

SQL Setup

|||

In the machine that you installed Katmai,do you have another version of SQL Server?Because in the katmai site has a document speaking that before you install katmai,remove the workstation components of Sql Server 2005...

4.3.3 Installing SQL Server "Katmai" Removes Support for DTS in SQL Server 2005 Integration Services Packages

For this CTP release, you must uninstall SQL Server 2005 Workstation Components before installing the SQL Server "Katmai" Workstation Components. Uninstalling the SQL Server 2005 Workstation Components removes three Integration Services components: the SQL Server 2005 version of the Execute DTS 2000 Package task and two supporting assemblies. These three Integration Services components support backward compatibility between SQL Server 2005 and SQL Server 2000 Data Transformation Services (DTS). Without these three components, SQL Server 2005 packages and tools that require DTS support will not run.

However, SQL Server "Katmai" Integration Services includes a version of the Execute DTS 2000 task and the two supporting assemblies. Therefore, you can upgrade SQL Server 2005 packages that require DTS support to the SQL Server "Katmai" format by opening them in the SQL Server "Katmai" version of Business Intelligence Development Studio, and then running those packages as SQL Server "Katmai" packages.

|||

If you have not uploaded the log files yet, please see the other post on this subject:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1693821&SiteID=1

This error occurs usually due to the fact that VS is installed in a non-default location.

Max Verun

SQL Server

Cannot install error code is :-2147467259. Workstation Components ...

I cannot get the the workstation components to install. Below is the error.

SI (s) (C0:58) [13:25:36:394]: Note: 1: 1708
MSI (s) (C0:58) [13:25:36:394]: Product: Microsoft SQL Server "Katmai" Tools -- Installation failed.

MSI (s) (C0:58) [13:25:44:996]: Cleaning up uninstalled install packages, if any exist
MSI (s) (C0:58) [13:25:45:056]: MainEngineThread is returning 1603
MSI (s) (C0Big Smile0) [13:25:45:387]: Destroying RemoteAPI object.
MSI (s) (C0:00) [13:25:45:727]: Custom Action Manager thread ending.
=== Logging stopped: 6/4/2007 13:25:35 ===
MSI (c) (98:94) [13:25:46:047]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (98:94) [13:25:46:298]: MainEngineThread is returning 1603
=== Verbose logging stopped: 6/4/2007 13:25:46 ===

Can you log a bug on Connect and attached the error logs please. We'll take a look.

Dan Bien

SQL Setup

|||

In the machine that you installed Katmai,do you have another version of SQL Server?Because in the katmai site has a document speaking that before you install katmai,remove the workstation components of Sql Server 2005...

4.3.3 Installing SQL Server "Katmai" Removes Support for DTS in SQL Server 2005 Integration Services Packages

For this CTP release, you must uninstall SQL Server 2005 Workstation Components before installing the SQL Server "Katmai" Workstation Components. Uninstalling the SQL Server 2005 Workstation Components removes three Integration Services components: the SQL Server 2005 version of the Execute DTS 2000 Package task and two supporting assemblies. These three Integration Services components support backward compatibility between SQL Server 2005 and SQL Server 2000 Data Transformation Services (DTS). Without these three components, SQL Server 2005 packages and tools that require DTS support will not run.

However, SQL Server "Katmai" Integration Services includes a version of the Execute DTS 2000 task and the two supporting assemblies. Therefore, you can upgrade SQL Server 2005 packages that require DTS support to the SQL Server "Katmai" format by opening them in the SQL Server "Katmai" version of Business Intelligence Development Studio, and then running those packages as SQL Server "Katmai" packages.

|||

If you have not uploaded the log files yet, please see the other post on this subject:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1693821&SiteID=1

This error occurs usually due to the fact that VS is installed in a non-default location.

Max Verun

SQL Server

Cannot install error code is :-2147467259. Workstation Components ...

I cannot get the the workstation components to install. Below is the error.

SI (s) (C0:58) [13:25:36:394]: Note: 1: 1708
MSI (s) (C0:58) [13:25:36:394]: Product: Microsoft SQL Server "Katmai" Tools -- Installation failed.

MSI (s) (C0:58) [13:25:44:996]: Cleaning up uninstalled install packages, if any exist
MSI (s) (C0:58) [13:25:45:056]: MainEngineThread is returning 1603
MSI (s) (C0Big Smile0) [13:25:45:387]: Destroying RemoteAPI object.
MSI (s) (C0:00) [13:25:45:727]: Custom Action Manager thread ending.
=== Logging stopped: 6/4/2007 13:25:35 ===
MSI (c) (98:94) [13:25:46:047]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (98:94) [13:25:46:298]: MainEngineThread is returning 1603
=== Verbose logging stopped: 6/4/2007 13:25:46 ===

Can you log a bug on Connect and attached the error logs please. We'll take a look.

Dan Bien

SQL Setup

|||

In the machine that you installed Katmai,do you have another version of SQL Server?Because in the katmai site has a document speaking that before you install katmai,remove the workstation components of Sql Server 2005...

4.3.3 Installing SQL Server "Katmai" Removes Support for DTS in SQL Server 2005 Integration Services Packages

For this CTP release, you must uninstall SQL Server 2005 Workstation Components before installing the SQL Server "Katmai" Workstation Components. Uninstalling the SQL Server 2005 Workstation Components removes three Integration Services components: the SQL Server 2005 version of the Execute DTS 2000 Package task and two supporting assemblies. These three Integration Services components support backward compatibility between SQL Server 2005 and SQL Server 2000 Data Transformation Services (DTS). Without these three components, SQL Server 2005 packages and tools that require DTS support will not run.

However, SQL Server "Katmai" Integration Services includes a version of the Execute DTS 2000 task and the two supporting assemblies. Therefore, you can upgrade SQL Server 2005 packages that require DTS support to the SQL Server "Katmai" format by opening them in the SQL Server "Katmai" version of Business Intelligence Development Studio, and then running those packages as SQL Server "Katmai" packages.

|||

If you have not uploaded the log files yet, please see the other post on this subject:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1693821&SiteID=1

This error occurs usually due to the fact that VS is installed in a non-default location.

Max Verun

SQL Server

Thursday, February 16, 2012

Cannot get serverproperty

Using SQL2k. When I run the command below in query analyzer I get 3 columns
of info. However, when I run the same SELECT from code I get nothing. Can
anyone help? Thanks.
SELECT SERVERPROPERTY('productversion') As SQLVersion,
SERVERPROPERTY('productlevel') As ProdLevel, SERVERPROPERTY('edition') As
SQLEdition
p.s. I want to display this on a VB form. All other commands using my
connection run fine.
DavidDavid Chase (dlchase@.lifetimeinc.com) writes:
> Using SQL2k. When I run the command below in query analyzer I get 3
> columns of info. However, when I run the same SELECT from code I get
> nothing. Can anyone help? Thanks.
> SELECT SERVERPROPERTY('productversion') As SQLVersion,
> SERVERPROPERTY('productlevel') As ProdLevel, SERVERPROPERTY('edition') As
> SQLEdition
> p.s. I want to display this on a VB form. All other commands using my
> connection run fine.
It would certainly help if you posted your VB code, as it's likely
that's where the problem is.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx|||Here is the code.
Set cn = New ADODB.Connection
cn.Open gstrSQLConString
Set rs1 = New ADODB.Recordset
Set rs1 = cn.Execute(strSQL)
strSQL = "SELECT SERVERPROPERTY('productversion') As SQLVersion," & _
" SERVERPROPERTY('productlevel') As ProdLevel," & _
" SERVERPROPERTY('edition') As SQLEdition"
Set rs1 = cn.Execute(strSQL)
If Not rs1.EOF Then
Me.txtCoAddress = CStr(rs1("SQLVersion"))
End If
David
p.s. Just above this code is an identical recordset retrieval that works
perfect.
"Erland Sommarskog" <esquel@.sommarskog.se> wrote in message
news:Xns97AA6601BD26Yazorman@.127.0.0.1...
> David Chase (dlchase@.lifetimeinc.com) writes:
> It would certainly help if you posted your VB code, as it's likely
> that's where the problem is.
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/pr...oads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodin...ions/books.mspx|||David Chase (dlchase@.lifetimeinc.com) writes:
> Here is the code.
> Set cn = New ADODB.Connection
> cn.Open gstrSQLConString
> Set rs1 = New ADODB.Recordset
> Set rs1 = cn.Execute(strSQL)
> strSQL = "SELECT SERVERPROPERTY('productversion') As SQLVersion," & _
> " SERVERPROPERTY('productlevel') As ProdLevel," & _
> " SERVERPROPERTY('edition') As SQLEdition"
> Set rs1 = cn.Execute(strSQL)
> If Not rs1.EOF Then
> Me.txtCoAddress = CStr(rs1("SQLVersion"))
> End If
> David
> p.s. Just above this code is an identical recordset retrieval that works
> perfect.
Apparently, there is more to it. I tried your code in the attached
VB form, and it seemed to work fine.
Which version of ADO do you use?
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Cannot generate SSPI Context?

I am trying to connect to one of our SQL servers via Ent mgr - I cannot
access and receive an error, see below. I can only see the server in Ent Mgr
if I remote to the server where SQL 2000 resides and run Ent mgr from there.
The SQL 2000 Named Intance resides on a Windows server 2003
The error I receive is:
Cannot generate SSPI Context?
After i change the SQL Server Service Account, i am getting above error
message. I change the service account 5 machines but i have only problem
with one server.
Please any body help me?You can define an alias and force the connection to using "name pipe" , there
is an KB article on it..
"Ram" wrote:
> I am trying to connect to one of our SQL servers via Ent mgr - I cannot
> access and receive an error, see below. I can only see the server in Ent Mgr
> if I remote to the server where SQL 2000 resides and run Ent mgr from there.
> The SQL 2000 Named Intance resides on a Windows server 2003
> The error I receive is:
> Cannot generate SSPI Context?
> After i change the SQL Server Service Account, i am getting above error
> message. I change the service account 5 machines but i have only problem
> with one server.
> Please any body help me?
>|||Or you can add the sqlserver service account to 'impersonate a user after
authentication' user rights assignment in security policy.
"Anthony" wrote:
> You can define an alias and force the connection to using "name pipe" , there
> is an KB article on it..
> "Ram" wrote:
> > I am trying to connect to one of our SQL servers via Ent mgr - I cannot
> > access and receive an error, see below. I can only see the server in Ent Mgr
> > if I remote to the server where SQL 2000 resides and run Ent mgr from there.
> >
> > The SQL 2000 Named Intance resides on a Windows server 2003
> >
> > The error I receive is:
> > Cannot generate SSPI Context?
> >
> > After i change the SQL Server Service Account, i am getting above error
> > message. I change the service account 5 machines but i have only problem
> > with one server.
> >
> > Please any body help me?
> >
> >|||Thanks for reply. we already added local administrator group and SQL Server
security as a sys administrator group also. I can connect using SQL
Authetication but i can't connect using Windows authetication. I also Added
Client network utility alias also. still doesn't work.
Ram
"Olu Adedeji" wrote:
> Or you can add the sqlserver service account to 'impersonate a user after
> authentication' user rights assignment in security policy.
> "Anthony" wrote:
> > You can define an alias and force the connection to using "name pipe" , there
> > is an KB article on it..
> >
> > "Ram" wrote:
> >
> > > I am trying to connect to one of our SQL servers via Ent mgr - I cannot
> > > access and receive an error, see below. I can only see the server in Ent Mgr
> > > if I remote to the server where SQL 2000 resides and run Ent mgr from there.
> > >
> > > The SQL 2000 Named Intance resides on a Windows server 2003
> > >
> > > The error I receive is:
> > > Cannot generate SSPI Context?
> > >
> > > After i change the SQL Server Service Account, i am getting above error
> > > message. I change the service account 5 machines but i have only problem
> > > with one server.
> > >
> > > Please any body help me?
> > >
> > >|||Hi Ram,
What operating system you have on computer from which you want to access SQL
server, is that computer member of workgroup or member of domain?
Regards,
Daniel
"Ram" <Ram@.discussions.microsoft.com> wrote in message
news:7B139AF7-E0E0-403F-B37D-96727A54F08E@.microsoft.com...
> Thanks for reply. we already added local administrator group and SQL
Server
> security as a sys administrator group also. I can connect using SQL
> Authetication but i can't connect using Windows authetication. I also
Added
> Client network utility alias also. still doesn't work.
> Ram
> "Olu Adedeji" wrote:
> > Or you can add the sqlserver service account to 'impersonate a user
after
> > authentication' user rights assignment in security policy.
> >
> > "Anthony" wrote:
> >
> > > You can define an alias and force the connection to using "name pipe"
, there
> > > is an KB article on it..
> > >
> > > "Ram" wrote:
> > >
> > > > I am trying to connect to one of our SQL servers via Ent mgr - I
cannot
> > > > access and receive an error, see below. I can only see the server in
Ent Mgr
> > > > if I remote to the server where SQL 2000 resides and run Ent mgr
from there.
> > > >
> > > > The SQL 2000 Named Intance resides on a Windows server 2003
> > > >
> > > > The error I receive is:
> > > > Cannot generate SSPI Context?
> > > >
> > > > After i change the SQL Server Service Account, i am getting above
error
> > > > message. I change the service account 5 machines but i have only
problem
> > > > with one server.
> > > >
> > > > Please any body help me?
> > > >
> > > >|||Hi Ram,
What operating system you have on computer from which you want to access SQL
server, is that computer member of workgroup or member of domain?
Regards,
Daniel
"Ram" <Ram@.discussions.microsoft.com> wrote in message
news:7B139AF7-E0E0-403F-B37D-96727A54F08E@.microsoft.com...
> Thanks for reply. we already added local administrator group and SQL
Server
> security as a sys administrator group also. I can connect using SQL
> Authetication but i can't connect using Windows authetication. I also
Added
> Client network utility alias also. still doesn't work.
> Ram
> "Olu Adedeji" wrote:
> > Or you can add the sqlserver service account to 'impersonate a user
after
> > authentication' user rights assignment in security policy.
> >
> > "Anthony" wrote:
> >
> > > You can define an alias and force the connection to using "name pipe"
, there
> > > is an KB article on it..
> > >
> > > "Ram" wrote:
> > >
> > > > I am trying to connect to one of our SQL servers via Ent mgr - I
cannot
> > > > access and receive an error, see below. I can only see the server in
Ent Mgr
> > > > if I remote to the server where SQL 2000 resides and run Ent mgr
from there.
> > > >
> > > > The SQL 2000 Named Intance resides on a Windows server 2003
> > > >
> > > > The error I receive is:
> > > > Cannot generate SSPI Context?
> > > >
> > > > After i change the SQL Server Service Account, i am getting above
error
> > > > message. I change the service account 5 machines but i have only
problem
> > > > with one server.
> > > >
> > > > Please any body help me?
> > > >
> > > >

Cannot generate SSPI Context?

I am trying to connect to one of our SQL servers via Ent mgr - I cannot
access and receive an error, see below. I can only see the server in Ent Mgr
if I remote to the server where SQL 2000 resides and run Ent mgr from there.
The SQL 2000 Named Intance resides on a Windows server 2003
The error I receive is:
Cannot generate SSPI Context?
After i change the SQL Server Service Account, i am getting above error
message. I change the service account 5 machines but i have only problem
with one server.
Please any body help me?You can define an alias and force the connection to using "name pipe" , ther
e
is an KB article on it..
"Ram" wrote:

> I am trying to connect to one of our SQL servers via Ent mgr - I cannot
> access and receive an error, see below. I can only see the server in Ent M
gr
> if I remote to the server where SQL 2000 resides and run Ent mgr from ther
e.
> The SQL 2000 Named Intance resides on a Windows server 2003
> The error I receive is:
> Cannot generate SSPI Context?
> After i change the SQL Server Service Account, i am getting above error
> message. I change the service account 5 machines but i have only problem
> with one server.
> Please any body help me?
>|||Or you can add the sqlserver service account to 'impersonate a user after
authentication' user rights assignment in security policy.
"Anthony" wrote:
[vbcol=seagreen]
> You can define an alias and force the connection to using "name pipe" , th
ere
> is an KB article on it..
> "Ram" wrote:
>|||Thanks for reply. we already added local administrator group and SQL Server
security as a sys administrator group also. I can connect using SQL
Authetication but i can't connect using Windows authetication. I also Added
Client network utility alias also. still doesn't work.
Ram
"Olu Adedeji" wrote:
[vbcol=seagreen]
> Or you can add the sqlserver service account to 'impersonate a user after
> authentication' user rights assignment in security policy.
> "Anthony" wrote:
>|||Hi Ram,
What operating system you have on computer from which you want to access SQL
server, is that computer member of workgroup or member of domain?
Regards,
Daniel
"Ram" <Ram@.discussions.microsoft.com> wrote in message
news:7B139AF7-E0E0-403F-B37D-96727A54F08E@.microsoft.com...
> Thanks for reply. we already added local administrator group and SQL
Server
> security as a sys administrator group also. I can connect using SQL
> Authetication but i can't connect using Windows authetication. I also
Added[vbcol=seagreen]
> Client network utility alias also. still doesn't work.
> Ram
> "Olu Adedeji" wrote:
>
after[vbcol=seagreen]
, there[vbcol=seagreen]
cannot[vbcol=seagreen]
Ent Mgr[vbcol=seagreen]
from there.[vbcol=seagreen]
error[vbcol=seagreen]
problem[vbcol=seagreen]|||Hi Ram,
What operating system you have on computer from which you want to access SQL
server, is that computer member of workgroup or member of domain?
Regards,
Daniel
"Ram" <Ram@.discussions.microsoft.com> wrote in message
news:7B139AF7-E0E0-403F-B37D-96727A54F08E@.microsoft.com...
> Thanks for reply. we already added local administrator group and SQL
Server
> security as a sys administrator group also. I can connect using SQL
> Authetication but i can't connect using Windows authetication. I also
Added[vbcol=seagreen]
> Client network utility alias also. still doesn't work.
> Ram
> "Olu Adedeji" wrote:
>
after[vbcol=seagreen]
, there[vbcol=seagreen]
cannot[vbcol=seagreen]
Ent Mgr[vbcol=seagreen]
from there.[vbcol=seagreen]
error[vbcol=seagreen]
problem[vbcol=seagreen]

Tuesday, February 14, 2012

Cannot generate SSPI Context?

I am trying to connect to one of our SQL servers via Ent mgr - I cannot
access and receive an error, see below. I can only see the server in Ent Mgr
if I remote to the server where SQL 2000 resides and run Ent mgr from there.
The SQL 2000 Named Intance resides on a Windows server 2003
The error I receive is:
Cannot generate SSPI Context?
After i change the SQL Server Service Account, i am getting above error
message. I change the service account 5 machines but i have only problem
with one server.
Please any body help me?
You can define an alias and force the connection to using "name pipe" , there
is an KB article on it..
"Ram" wrote:

> I am trying to connect to one of our SQL servers via Ent mgr - I cannot
> access and receive an error, see below. I can only see the server in Ent Mgr
> if I remote to the server where SQL 2000 resides and run Ent mgr from there.
> The SQL 2000 Named Intance resides on a Windows server 2003
> The error I receive is:
> Cannot generate SSPI Context?
> After i change the SQL Server Service Account, i am getting above error
> message. I change the service account 5 machines but i have only problem
> with one server.
> Please any body help me?
>
|||Or you can add the sqlserver service account to 'impersonate a user after
authentication' user rights assignment in security policy.
"Anthony" wrote:
[vbcol=seagreen]
> You can define an alias and force the connection to using "name pipe" , there
> is an KB article on it..
> "Ram" wrote:
|||Thanks for reply. we already added local administrator group and SQL Server
security as a sys administrator group also. I can connect using SQL
Authetication but i can't connect using Windows authetication. I also Added
Client network utility alias also. still doesn't work.
Ram
"Olu Adedeji" wrote:
[vbcol=seagreen]
> Or you can add the sqlserver service account to 'impersonate a user after
> authentication' user rights assignment in security policy.
> "Anthony" wrote:
|||Hi Ram,
What operating system you have on computer from which you want to access SQL
server, is that computer member of workgroup or member of domain?
Regards,
Daniel
"Ram" <Ram@.discussions.microsoft.com> wrote in message
news:7B139AF7-E0E0-403F-B37D-96727A54F08E@.microsoft.com...
> Thanks for reply. we already added local administrator group and SQL
Server
> security as a sys administrator group also. I can connect using SQL
> Authetication but i can't connect using Windows authetication. I also
Added[vbcol=seagreen]
> Client network utility alias also. still doesn't work.
> Ram
> "Olu Adedeji" wrote:
after[vbcol=seagreen]
, there[vbcol=seagreen]
cannot[vbcol=seagreen]
Ent Mgr[vbcol=seagreen]
from there.[vbcol=seagreen]
error[vbcol=seagreen]
problem[vbcol=seagreen]
|||Hi Ram,
What operating system you have on computer from which you want to access SQL
server, is that computer member of workgroup or member of domain?
Regards,
Daniel
"Ram" <Ram@.discussions.microsoft.com> wrote in message
news:7B139AF7-E0E0-403F-B37D-96727A54F08E@.microsoft.com...
> Thanks for reply. we already added local administrator group and SQL
Server
> security as a sys administrator group also. I can connect using SQL
> Authetication but i can't connect using Windows authetication. I also
Added[vbcol=seagreen]
> Client network utility alias also. still doesn't work.
> Ram
> "Olu Adedeji" wrote:
after[vbcol=seagreen]
, there[vbcol=seagreen]
cannot[vbcol=seagreen]
Ent Mgr[vbcol=seagreen]
from there.[vbcol=seagreen]
error[vbcol=seagreen]
problem[vbcol=seagreen]