I was wondering how the automatic creation of a LDF (log)
file worked in MSSQL Server 2000. Is there a special
utility to use? I only have an MDF file and I try
to "Attach" it as a database. I get the following error
message:
--
Microsoft SQL-DMO (ODBC SQLState: 42000)
--
Error 1813: Could not open new database 'DBName'. CREATE
DATABASE is aborted.
Device activation error. The physical file name 'C:\SQL
Data\DBName_log.ldf' may be incorrect.
--
OK
--
It's looking for the ldf file and it won't create it. How
do I get it to create a new log file? I tried creating a
new blank database with the same name and using it's ldf,
but somehow it knows they're not from the same database.
ThanksDanny,
May be there were some open transactions and its searching the ldf file for
matching.Was this database properly detached before?A prerequisite for
sp_attach* is that the database should be properly detached using
sp_detach_db.Either you can RESTORE from a valid and latest database backup
or try the workaround mentioned in :
Restoring databases when only data file available
http://www.sqlservercentral.com/scripts/scriptdetails.asp?scriptid=599
The archived newsgroup thread
http://tinyurl.com/m071
--
Dinesh.
SQL Server FAQ at
http://www.tkdinesh.com
"Danny Forbes" <dforbes@.salessimplicity.net> wrote in message
news:105901c3724a$14f89e50$a601280a@.phx.gbl...
> I was wondering how the automatic creation of a LDF (log)
> file worked in MSSQL Server 2000. Is there a special
> utility to use? I only have an MDF file and I try
> to "Attach" it as a database. I get the following error
> message:
> --
> Microsoft SQL-DMO (ODBC SQLState: 42000)
> --
> Error 1813: Could not open new database 'DBName'. CREATE
> DATABASE is aborted.
> Device activation error. The physical file name 'C:\SQL
> Data\DBName_log.ldf' may be incorrect.
> --
> OK
> --
> It's looking for the ldf file and it won't create it. How
> do I get it to create a new log file? I tried creating a
> new blank database with the same name and using it's ldf,
> but somehow it knows they're not from the same database.
> Thanks|||Hi,
- Change your DB Status to Emergency Mode (32768).
- Stop SQL Server / Start SQL
- In query analyser, execute dbcc rebuild_log. REMEMBER: Rename old File Log
before.
- Change Your DB Status to Normal (0)
- Stop SQL Server / Start SQL
This error is because your GUID of file Log not match with definition of
your DB.
Regards,
Fabiano Maciel
"Danny Forbes" <dforbes@.salessimplicity.net> wrote in message
news:105901c3724a$14f89e50$a601280a@.phx.gbl...
> I was wondering how the automatic creation of a LDF (log)
> file worked in MSSQL Server 2000. Is there a special
> utility to use? I only have an MDF file and I try
> to "Attach" it as a database. I get the following error
> message:
> --
> Microsoft SQL-DMO (ODBC SQLState: 42000)
> --
> Error 1813: Could not open new database 'DBName'. CREATE
> DATABASE is aborted.
> Device activation error. The physical file name 'C:\SQL
> Data\DBName_log.ldf' may be incorrect.
> --
> OK
> --
> It's looking for the ldf file and it won't create it. How
> do I get it to create a new log file? I tried creating a
> new blank database with the same name and using it's ldf,
> but somehow it knows they're not from the same database.
> Thanks
Showing posts with label utility. Show all posts
Showing posts with label utility. Show all posts
Sunday, March 11, 2012
Wednesday, March 7, 2012
automate GACing assembly
Hi,
Unfortunately the deployment Utility does not support adding dll's to the GAC. Still I want to automate it. (By the way on target machines GacUtil is not present). I tried to make a setup project that only adds a dll to the GAC, however the setup project still makes an application folder. How can I turn this off?
Regards,
Henk
I haven't used the Visual Studio installer projects for some time, but is there not a File page in the project? Can you not delete the app folder in that File page?
Saying that I can highly recomend WiX as a method of generating MSIs. Checkout the very good tutorial if you are interested.
Windows Installer XML (WiX) toolset
(http://wix.sourceforge.net/)
Monday, February 13, 2012
auto patching SP4
Is there any utility we can use to auto or centralize the SP4 patch? I need
to find a quick way to patch 50 SQL 2K servers?Hi
You can do unattended installations which you could kick off and leave or a
better alternative may be to use SMS. Check out the readme file
ReadmeSql2k32sp4.htm or online at
http://download.microsoft.com/download/1/B/D/1BDF5B78-584E-4DE0-B36F-C44E06B0D2A3/ReadmeSql2k32sp4.htm
John
"Julia" wrote:
> Is there any utility we can use to auto or centralize the SP4 patch? I need
> to find a quick way to patch 50 SQL 2K servers?
to find a quick way to patch 50 SQL 2K servers?Hi
You can do unattended installations which you could kick off and leave or a
better alternative may be to use SMS. Check out the readme file
ReadmeSql2k32sp4.htm or online at
http://download.microsoft.com/download/1/B/D/1BDF5B78-584E-4DE0-B36F-C44E06B0D2A3/ReadmeSql2k32sp4.htm
John
"Julia" wrote:
> Is there any utility we can use to auto or centralize the SP4 patch? I need
> to find a quick way to patch 50 SQL 2K servers?
auto patching SP4
Is there any utility we can use to auto or centralize the SP4 patch? I need
to find a quick way to patch 50 SQL 2K servers?
Hi
You can do unattended installations which you could kick off and leave or a
better alternative may be to use SMS. Check out the readme file
ReadmeSql2k32sp4.htm or online at
http://download.microsoft.com/downlo...Sql2k32sp4.htm
John
"Julia" wrote:
> Is there any utility we can use to auto or centralize the SP4 patch? I need
> to find a quick way to patch 50 SQL 2K servers?
to find a quick way to patch 50 SQL 2K servers?
Hi
You can do unattended installations which you could kick off and leave or a
better alternative may be to use SMS. Check out the readme file
ReadmeSql2k32sp4.htm or online at
http://download.microsoft.com/downlo...Sql2k32sp4.htm
John
"Julia" wrote:
> Is there any utility we can use to auto or centralize the SP4 patch? I need
> to find a quick way to patch 50 SQL 2K servers?
auto patching SP4
Is there any utility we can use to auto or centralize the SP4 patch? I need
to find a quick way to patch 50 SQL 2K servers?Hi
You can do unattended installations which you could kick off and leave or a
better alternative may be to use SMS. Check out the readme file
ReadmeSql2k32sp4.htm or online at
http://download.microsoft.com/downl...eSql2k32sp4.htm
John
"Julia" wrote:
> Is there any utility we can use to auto or centralize the SP4 patch? I ne
ed
> to find a quick way to patch 50 SQL 2K servers?
to find a quick way to patch 50 SQL 2K servers?Hi
You can do unattended installations which you could kick off and leave or a
better alternative may be to use SMS. Check out the readme file
ReadmeSql2k32sp4.htm or online at
http://download.microsoft.com/downl...eSql2k32sp4.htm
John
"Julia" wrote:
> Is there any utility we can use to auto or centralize the SP4 patch? I ne
ed
> to find a quick way to patch 50 SQL 2K servers?
Subscribe to:
Posts (Atom)