Showing posts with label himy. Show all posts
Showing posts with label himy. Show all posts

Thursday, February 16, 2012

Cannot Get exclusive access to Database

Hi
My database is warm standby state (loading). Prior to this I truncated the
log file. I need to restore the log file but I cannot get exclusive access.
I tried RESTORE DATABASE abcd WITH RECOVERY and I get error 3101 (cant get
exclusive access) followed by error 3013.
Please assist.
Mmany thanks for your time and efforts
JMRun sp_who to see who is connected. Use KILL to throw out the users. Make su
re you are in the master
database when you execute the RESTORE command.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"JM" <JM@.nowhere.com> wrote in message news:11l7sokg3i94ra9@.corp.supernews.com...reen">
> Hi
> My database is warm standby state (loading). Prior to this I truncated the
log file. I need to
> restore the log file but I cannot get exclusive access.
> I tried RESTORE DATABASE abcd WITH RECOVERY and I get error 3101 (cant get
exclusive access)
> followed by error 3013.
> Please assist.
> Mmany thanks for your time and efforts
> JM
>

Cannot Get exclusive access to Database

Hi
My database is warm standby state (loading). Prior to this I truncated the
log file. I need to restore the log file but I cannot get exclusive access.
I tried RESTORE DATABASE abcd WITH RECOVERY and I get error 3101 (cant get
exclusive access) followed by error 3013.
Please assist.
Mmany thanks for your time and efforts
JM
Run sp_who to see who is connected. Use KILL to throw out the users. Make sure you are in the master
database when you execute the RESTORE command.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"JM" <JM@.nowhere.com> wrote in message news:11l7sokg3i94ra9@.corp.supernews.com...
> Hi
> My database is warm standby state (loading). Prior to this I truncated the log file. I need to
> restore the log file but I cannot get exclusive access.
> I tried RESTORE DATABASE abcd WITH RECOVERY and I get error 3101 (cant get exclusive access)
> followed by error 3013.
> Please assist.
> Mmany thanks for your time and efforts
> JM
>

cannot get data from syscomments

Hi!
My user cannot retreive data from syscomments system view., but can do
it from sysobjects. What can be done wrong when upgrading from ms sql
7 to ms sql 5k5? The same upgrade process was done on 400 servers and
problem is known only on seveal
Syscomments is no more an available view: to view stored procedures and
triggers definition you should query the cataloged view sys.sql_modules, or
use OBJECT DEFINITION or the sp_helptext system stored procedure.
See the related topics on the Books on Line.
Gilberto Zampatti
"Jacek.Piechucki@.gmail.com" wrote:

> Hi!
> My user cannot retreive data from syscomments system view., but can do
> it from sysobjects. What can be done wrong when upgrading from ms sql
> 7 to ms sql 5k5? The same upgrade process was done on 400 servers and
> problem is known only on seveal
>
|||<Jacek.Piechucki@.gmail.com> wrote in message
news:1180006384.209339.161890@.q75g2000hsh.googlegr oups.com...
> Hi!
> My user cannot retreive data from syscomments system view., but can do
> it from sysobjects. What can be done wrong when upgrading from ms sql
> 7 to ms sql 5k5? The same upgrade process was done on 400 servers and
> problem is known only on seveal
>
Since these are 'undocumented' views I believe, their functionality changes
from version to version.
SQL 2005 has changed a lot of this and has some views for backwards
compatibility,
But most likely the code needs to be updated for 2005.
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
|||If so, why do I have problems only on several from whole 400 servers?
On more tahn 380 others everything works well.
What can be valuable: all of our databses (except of master) work with
compatibility level of SQL Server 7.0.
On 24 Maj, 15:36, Gilberto Zampatti
<GilbertoZampa...@.discussions.microsoft.com> wrote:
> Syscomments is no more an available view: to view stored procedures and
> triggers definition you should query the cataloged view sys.sql_modules, or
> use OBJECT DEFINITION or the sp_helptext system stored procedure.
> See the related topics on the Books on Line.
> Gilberto Zampatti
>
> "Jacek.Piechu...@.gmail.com" wrote:
> - Poka cytowany tekst -
|||<Jacek.Piechucki@.gmail.com> wrote in message
news:1180018413.412996.83620@.w5g2000hsg.googlegrou ps.com...
> If so, why do I have problems only on several from whole 400 servers?
It wasn't clear from your send that all 400 had been upgraded to SQL 2005.
It sounded like it was only breaking on the one.
In any event, most likely a permissions problem.

> On more tahn 380 others everything works well.
> What can be valuable: all of our databses (except of master) work with
> compatibility level of SQL Server 7.0.
That really doesn't matter here.
I'd check to see if the permissions are the same across all 400 servers.

>
> On 24 Maj, 15:36, Gilberto Zampatti
> <GilbertoZampa...@.discussions.microsoft.com> wrote:
>
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
|||Anything related to permissions is identical on all servers.
On 24 Maj, 17:21, "Greg D. Moore \(Strider\)"
<mooregr_deletet...@.greenms.com> wrote:
> <Jacek.Piechu...@.gmail.com> wrote in message
> news:1180018413.412996.83620@.w5g2000hsg.googlegrou ps.com...
>
> It wasn't clear from your send that all 400 had been upgraded to SQL 2005.
> It sounded like it was only breaking on the one.
> In any event, most likely a permissions problem.
>
> That really doesn't matter here.
> I'd check to see if the permissions are the same across all 400 servers.
>
>
>
>
>
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html- Ukryj cytowany tekst -
> - Poka cytowany tekst -

cannot get data from syscomments

Hi!
My user cannot retreive data from syscomments system view., but can do
it from sysobjects. What can be done wrong when upgrading from ms sql
7 to ms sql 5k5? The same upgrade process was done on 400 servers and
problem is known only on sevealSyscomments is no more an available view: to view stored procedures and
triggers definition you should query the cataloged view sys.sql_modules, or
use OBJECT DEFINITION or the sp_helptext system stored procedure.
See the related topics on the Books on Line.
Gilberto Zampatti
"Jacek.Piechucki@.gmail.com" wrote:

> Hi!
> My user cannot retreive data from syscomments system view., but can do
> it from sysobjects. What can be done wrong when upgrading from ms sql
> 7 to ms sql 5k5? The same upgrade process was done on 400 servers and
> problem is known only on seveal
>|||<Jacek.Piechucki@.gmail.com> wrote in message
news:1180006384.209339.161890@.q75g2000hsh.googlegroups.com...
> Hi!
> My user cannot retreive data from syscomments system view., but can do
> it from sysobjects. What can be done wrong when upgrading from ms sql
> 7 to ms sql 5k5? The same upgrade process was done on 400 servers and
> problem is known only on seveal
>
Since these are 'undocumented' views I believe, their functionality changes
from version to version.
SQL 2005 has changed a lot of this and has some views for backwards
compatibility,
But most likely the code needs to be updated for 2005.
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||If so, why do I have problems only on several from whole 400 servers?
On more tahn 380 others everything works well.
What can be valuable: all of our databses (except of master) work with
compatibility level of SQL Server 7.0.
On 24 Maj, 15:36, Gilberto Zampatti
<GilbertoZampa...@.discussions.microsoft.com> wrote:
> Syscomments is no more an available view: to view stored procedures and
> triggers definition you should query the cataloged view sys.sql_modules, o
r
> use OBJECT DEFINITION or the sp_helptext system stored procedure.
> See the related topics on the Books on Line.
> Gilberto Zampatti
>
> "Jacek.Piechu...@.gmail.com" wrote:
> - Poka cytowany tekst -|||<Jacek.Piechucki@.gmail.com> wrote in message
news:1180018413.412996.83620@.w5g2000hsg.googlegroups.com...
> If so, why do I have problems only on several from whole 400 servers?
It wasn't clear from your send that all 400 had been upgraded to SQL 2005.
It sounded like it was only breaking on the one.
In any event, most likely a permissions problem.

> On more tahn 380 others everything works well.
> What can be valuable: all of our databses (except of master) work with
> compatibility level of SQL Server 7.0.
That really doesn't matter here.
I'd check to see if the permissions are the same across all 400 servers.

>
> On 24 Maj, 15:36, Gilberto Zampatti
> <GilbertoZampa...@.discussions.microsoft.com> wrote:
>
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||Anything related to permissions is identical on all servers.
On 24 Maj, 17:21, "Greg D. Moore \(Strider\)"
<mooregr_deletet...@.greenms.com> wrote:
> <Jacek.Piechu...@.gmail.com> wrote in message
> news:1180018413.412996.83620@.w5g2000hsg.googlegroups.com...
>
> It wasn't clear from your send that all 400 had been upgraded to SQL 2005.
> It sounded like it was only breaking on the one.
> In any event, most likely a permissions problem.
>
> That really doesn't matter here.
> I'd check to see if the permissions are the same across all 400 servers.
>
>
>
>
>
>
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com [url]http://www.greenms.com/sqlserver.html-[/u
rl] Ukryj cytowany tekst -
> - Poka cytowany tekst -

Sunday, February 12, 2012

Cannot Generate SSPI Context

Hi

My company uses a Windows 2000 server with MS SQL Server 2000.
We have many clients with administrative software that use the MS SQL
server, the problem is that we experimented randomly the error
"Cannot Generate SSPI Context" and the only way to work with DB is log
out the client.

I'm looking the MS Technical sheet but there's no resolving hints that
can help.

Anyone has a similar problem ?

Thanks.Have you checked this KB article?

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

Simon