Tuesday, March 27, 2012
can not find .jar files for sql server 7.0
mautil.jar for MS SQL Server 7.0.
I find them for SQL server 2000 but I got SQL Server 7.0
Can someone tell me where I can download them?
nads260 wrote:
> I cand not find mssqlserver.jar, msbase.jar and
> mautil.jar for MS SQL Server 7.0.
> I find them for SQL server 2000 but I got SQL Server 7.0
> Can someone tell me where I can download them?
MS does not supply a drive that will be allowed to work with
7.0. They want you to upgrade your DBMS. If you won't, you
need a commercial version of the driver, such as from DataDirect.
That driver will work fine with 2k or 7.0.
Joe Weinstein at BEA
>
|||Try http://jtds.sourceforge.net. It's fast, works with SQL Server 7 and
Sybase, and it's free (LGPL).
Class.forName("net.sourceforge.jtds.jdbc.Driver");
Connection con =
DriverManager.getConnection("jdbc:jtds:sqlserver://myserver:1433/myinsta
nce", "myuser", "mypassword");
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Tuesday, March 20, 2012
Can not attach SQL Server 2005 Express database
I got the folllowin error while trying to attach database. The directory is there...
TITLE: Locate Database Files - H001335\SQLEXPRESS
C:\Documents and Settings\Administrator.H001335\My Documents\Visual Studio 2005\WebSites\Import\App_Data
Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists.
If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.
BUTTONS:
OK
Moving thread to a more appropriate forum.|||where is it?|||please help, no idea why I can't attach this database|||Make sure you do not have VS open (as server manager creates a connection to sql server), and try stopping and restarting the sqlserver agen service. Then try to attach the database. Is the nme the same as the db name? You may need to copy over the log file aswell (daname_log.ldf).|||Are you using "User Instance=True" in your connection string?
If so, you need to make sure that the user who is running the task has appropriate permissions to access files in that directory (by the looks ASPNET might be the user).
If you're not, then I try running the the sql server service as "Local System" instead of the default "Network Service", or give "Network Service" appropriate permissions for that location.
|||Yes you are right, seems this was related to the user ASP.NEt not having enough rights in the directory...Can not attach SQL Server 2005 Express database
I got the folllowin error while trying to attach database. The directory is there...
TITLE: Locate Database Files - H001335\SQLEXPRESS
C:\Documents and Settings\Administrator.H001335\My Documents\Visual Studio 2005\WebSites\Import\App_Data
Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists.
If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.
BUTTONS:
OK
Moving thread to a more appropriate forum.|||where is it?|||please help, no idea why I can't attach this database|||Make sure you do not have VS open (as server manager creates a connection to sql server), and try stopping and restarting the sqlserver agen service. Then try to attach the database. Is the nme the same as the db name? You may need to copy over the log file aswell (daname_log.ldf).|||Are you using "User Instance=True" in your connection string?
If so, you need to make sure that the user who is running the task has appropriate permissions to access files in that directory (by the looks ASPNET might be the user).
If you're not, then I try running the the sql server service as "Local System" instead of the default "Network Service", or give "Network Service" appropriate permissions for that location.
|||Yes you are right, seems this was related to the user ASP.NEt not having enough rights in the directory...sqlCan not attach SQL Server 2005 Express database
I got the folllowin error while trying to attach database. The directory is there...
TITLE: Locate Database Files - H001335\SQLEXPRESS
C:\Documents and Settings\Administrator.H001335\My Documents\Visual Studio 2005\WebSites\Import\App_Data
Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists.
If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.
BUTTONS:
OK
Moving thread to a more appropriate forum.|||where is it?|||please help, no idea why I can't attach this database|||Make sure you do not have VS open (as server manager creates a connection to sql server), and try stopping and restarting the sqlserver agen service. Then try to attach the database. Is the nme the same as the db name? You may need to copy over the log file aswell (daname_log.ldf).|||Are you using "User Instance=True" in your connection string?
If so, you need to make sure that the user who is running the task has appropriate permissions to access files in that directory (by the looks ASPNET might be the user).
If you're not, then I try running the the sql server service as "Local System" instead of the default "Network Service", or give "Network Service" appropriate permissions for that location.
|||Yes you are right, seems this was related to the user ASP.NEt not having enough rights in the directory...Can not attach database,
Can not attach database,
Error message;
The file you've specified is not a valid SQL Server database file.
My costumer HDD some files Deleted mybe elektric prblem -Elektric
go,com,go,come- then windows not opened.
insert corrupt hdd Another computer, then recovering (recover my files
software)
Recover mdf and ldf files. but I can not not attach mdf. file,
I am recovery .mdf file http://www.officerecovery.com/mssql/ some table ok.
but my importand table is not ok.
if I can recover another recovery software , my database correct recover or
same.?
I am using RecoverMyFiles.
Pleace help me.
Thanks.
It appears that you have a corrupted database file (.MDF), and have been attempting to use a 3rd-party data recovery tool to extract as much data as possible from the damaged database. Is this correct?
It also appears that your disk is likely damaged. Can I assume that you've replaced it?
The primary response in this situation would always be to restore the database from backup. When is your most recent database backup from? Without a valid backup, there's unfortunately not much you can do.
sqlMonday, March 19, 2012
Can multiple workstations running SQL 2005 Server Express attach to the same database files on a
No and No. You can only attach a database file to a single instance at a time and SQL Express does not support attaching files from a remote source, only local drives.
Mike
|||As Michael indicated, that is not possible -and it is not possible with MSDE either.
You will have to install a SQL Server Express somewhere, and that will also be the location for the data files. I suggest that you communicate and negotiate with your network admins, and of course, get the 'clients' involved too.
Otherwise, you will be limited to using an Access *.mdb file -which can be stored on a file server.
Can MS-SQL Access photo datatype data?
What method or script I should notice if MS-SQL is no problem on accessing
photo-typed data.
Thanks any way!
Wilbertsorry, not following you there I'm afraid, can you clarify your question?
j|||Sorry for my poor English. I am from Taiwan.
Actually I have seen the artiles you posted on this Forums.
And thank you again for looking at my question.
Ok, I try my best to clarify my question.
I want to make a webpage which connects to a DB in order to for user upload or download image data from DB.
Primaryly I want to take advantage of DB to manage image data instead of a file folders created at purpose for storing image data.
That's all
Thank you, Atrax|||ah, I see. . I thought youmight mean this but wasn't sure.
my usualy advice is don't store image data (or other potentially large binaries) in SQL Server unless you have a very, very good reason. 99 times out of 100 it's better to store the image itself as a file, and then store the path to the file in the SQL Server. Storing a lot of image data can bloat your database rapidly, is more work to display (hence more strain on the server) and less easy to move around.
this isn't to say it can't be done - I've done it in the past - but it IS to say usually it's not such a grand idea. Have you got a good reason to do so?|||Actually that advice is out of date. It was still true to some extent for SS7 but MS did a lot of work to optimize SS2K for storing binary data. I think it was in response to other database engines that do it efficiently.
There should be an architectural reason to store binary data or to avoid it. But it just doesn't drain SQL Server like it used to.
Don|||storage isn't as bad as it used to be, but pulling data backwards and forwards, as you probably would - is less efficient. that's the major reason.|||Well,
First of all, I have to say in advanced that I am new to coding with vb.net even the
MS-SQL. For the security issue and efficiency in management of data ,
using folders or DB to stroe image data , which way is better? and Why?
Thank you all,
Wilbert|||That's hard to say. It really is an architectural decision that depends on the requirements of your app.
First, what is the security issue? Are you trying to protect the binary images or the other data in the database? Do you want to control access to the images? You can do that using Windows file system security. What is required for your application?
The answer to what is most efficient depends on how you're using the images. Are they in constant use, or might a particular image be accessed only once a year? How large are they? How many are there? Do you have to store a lot of information with them in the records?
Tell us more about your application and we'll try to give you more specifics.
Don|||Hi donkiely,
In my work place, one of my job now is to post the image to our website
and keep the imformation up to date. For this website just start, the data now is not huge.
These image are photoed from newspapers. We will find news related to my company on newspaper. If there are news which are suitable for posting to our website. I take it down.
We are setting these thing to record what thing happen in our company.
Sometime I will just take one picture a day and sometime I also could take more 10 pictures a day. Something I am sure that the quantity will go up quickly.
As the information above, Can it give you a picture or architectural thing that might
help my question.
With Regards
P.S. Please be patient of my poor English.
Wilbert|||Hi Wilbert,
That sounds like a reasonable use of images in the db, based on your description.
Here's an article that will give you the details.
Don|||Thank you, Donkiely
Can Msde import DBF files in my tables
This took me a while to figure out, but it is really simple. From my
message a few weeks ago...
"Just to update people (and for my future reference when I search Google
for my name), using DTS makes it VERY simple to import DBF files into SQL.
What screwed me up was two things:
1) While it may be possible to do in MSDE, it is very simple using DTS
on the server. I logged into my client's SQL server and ran DTS, filled
out a few options and imported all the FoxPro info into a new SQL database.
2) DTS is actually found via: Start Program > Microsoft SQL Server >
Import Export Data ... this launches the DTS wizard. I was looking
specifically for something called DTS. I should have tried the
import/export option first"
Hope this helps
Richard
Sergio wrote:
> Hi, y really now if its possible in MSDE,
> can i import DBF files in my tables of MSDE?, how?, i need import in Tsql,
> how?
> thanks
Yes, it's easy in DTS but you can also save a DTS package that can then be
run in the MSDE.
HTH,
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com
"Richard Fagen" <no_spam@.my_isp.com> wrote in message
news:uX2K49CHEHA.2744@.TK2MSFTNGP10.phx.gbl...
> Hi Sergio,
> This took me a while to figure out, but it is really simple. From my
> message a few weeks ago...
> "Just to update people (and for my future reference when I search Google
> for my name), using DTS makes it VERY simple to import DBF files into SQL.
> What screwed me up was two things:
> 1) While it may be possible to do in MSDE, it is very simple using DTS
> on the server. I logged into my client's SQL server and ran DTS, filled
> out a few options and imported all the FoxPro info into a new SQL
database.
> 2) DTS is actually found via: Start Program > Microsoft SQL Server >
> Import Export Data ... this launches the DTS wizard. I was looking
> specifically for something called DTS. I should have tried the
> import/export option first"
>
> Hope this helps
> Richard
> Sergio wrote:
Tsql,
Thursday, March 8, 2012
can i/should i worry about fragmentation in catalog files?
I have an application that grew to 1.5 million records and saw poor
performance for a variety of reasons, but one huge 'doh' reason was that I
didn't think to pre-allocate the database and the poor database file was
fragmented as it grew from its default size in increments When we moved to a
new server I pre-allocated the file and made sure it was contiguous.
Is there a correllary with full-text indexing? Are there full-text catalog
files I can or should be creating as contiguous files, or should i be
running defrag on them?
thanks,
john
John,
Yes, there is. It is call "Master Merge" and smaller index files (shadow
files) are merged together at Midnight (controlled via registry key). While
this is not directly controllable in SQL Server 2000, can be managed via the
following TSQL code in SQL Server 2005:
Reorganize the full-text catalog using ALTER FULLTEXT CATALOG REORGANIZE. It
is important to do this before performance testing because it results in a
master merge of the full-text indexes in that catalog.
Regards,
John
SQL Full Text Search Blog
http://spaces.msn.com/members/jtkane/
"John Mott" <johnmott59@.hotmail.com> wrote in message
news:%23lsVUjy0FHA.612@.TK2MSFTNGP10.phx.gbl...
> Hello all,
> I have an application that grew to 1.5 million records and saw poor
> performance for a variety of reasons, but one huge 'doh' reason was that I
> didn't think to pre-allocate the database and the poor database file was
> fragmented as it grew from its default size in increments When we moved to
> a
> new server I pre-allocated the file and made sure it was contiguous.
> Is there a correllary with full-text indexing? Are there full-text catalog
> files I can or should be creating as contiguous files, or should i be
> running defrag on them?
> thanks,
> john
>
|||Thank you for your response. Unfortunately this is SQL Server 2000. Does it
make enough of a difference that its worth defragging the individual catalog
files with something like www.defragmentor.com?
john
"John Kane" <jt-kane@.comcast.net> wrote in message
news:%23A7C4vy0FHA.560@.TK2MSFTNGP12.phx.gbl...
> John,
> Yes, there is. It is call "Master Merge" and smaller index files (shadow
> files) are merged together at Midnight (controlled via registry key).
While
> this is not directly controllable in SQL Server 2000, can be managed via
the
> following TSQL code in SQL Server 2005:
> Reorganize the full-text catalog using ALTER FULLTEXT CATALOG REORGANIZE.
It[vbcol=seagreen]
> is important to do this before performance testing because it results in a
> master merge of the full-text indexes in that catalog.
> Regards,
> John
> --
> SQL Full Text Search Blog
> http://spaces.msn.com/members/jtkane/
>
> "John Mott" <johnmott59@.hotmail.com> wrote in message
> news:%23lsVUjy0FHA.612@.TK2MSFTNGP10.phx.gbl...
I[vbcol=seagreen]
to[vbcol=seagreen]
catalog
>
|||You're welcome, John,
I suspected that you were using SQL Server 2000 as the SQL 2005 info was
just FYI as Microsoft now recognizes this as a 'tunable' knob... As for
using Defragmentor or other utilities, in a word: No. The FT Catalog files
are managed by the "Microsoft Search" (mssearch.exe) service and are
compressed internally, so these utilities will do more harm than good.
For SQL Server 2000, the Master Merge" and smaller index files (shadow
files) are merged together at Midnight, so you may want to monitor your
server's app log for this recorded event at midnight.
Regards,
John
SQL Full Text Search Blog
http://spaces.msn.com/members/jtkane/
"John Mott" <johnmott59@.hotmail.com> wrote in message
news:OFouh$y0FHA.2884@.TK2MSFTNGP09.phx.gbl...
> Thank you for your response. Unfortunately this is SQL Server 2000. Does
> it
> make enough of a difference that its worth defragging the individual
> catalog
> files with something like www.defragmentor.com?
> john
>
> "John Kane" <jt-kane@.comcast.net> wrote in message
> news:%23A7C4vy0FHA.560@.TK2MSFTNGP12.phx.gbl...
> While
> the
> It
> I
> to
> catalog
>
Saturday, February 25, 2012
Can I use .DNF file to recover my data?
This database has 10 files (.MDF, NDF, and LDF). I know which .NDF file
contains the data of the table. I made detach the database.
Can I use one old backed up .NDF file replace the current .NDF file, and
together with other current files to attach this database?
Thanks for suggestions,No, SQL Server keep track of the database files and will not allow database files from different
point in time. That would adventure database integrity.
How about doing a restore (I presume you have backups) into a new database name, up until desired
time and then copy that table from there to your production database.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Mike Torry" <MikeTorry@.discussions.microsoft.com> wrote in message
news:1DCB6F00-51AC-468B-AC0A-1C350979B47E@.microsoft.com...
>I want to recover data in a table on SQL 2000 server.
> This database has 10 files (.MDF, NDF, and LDF). I know which .NDF file
> contains the data of the table. I made detach the database.
> Can I use one old backed up .NDF file replace the current .NDF file, and
> together with other current files to attach this database?
> Thanks for suggestions,
>|||Thanks for your help!
"Tibor Karaszi" wrote:
> No, SQL Server keep track of the database files and will not allow database files from different
> point in time. That would adventure database integrity.
> How about doing a restore (I presume you have backups) into a new database name, up until desired
> time and then copy that table from there to your production database.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Mike Torry" <MikeTorry@.discussions.microsoft.com> wrote in message
> news:1DCB6F00-51AC-468B-AC0A-1C350979B47E@.microsoft.com...
> >I want to recover data in a table on SQL 2000 server.
> > This database has 10 files (.MDF, NDF, and LDF). I know which .NDF file
> > contains the data of the table. I made detach the database.
> > Can I use one old backed up .NDF file replace the current .NDF file, and
> > together with other current files to attach this database?
> >
> > Thanks for suggestions,
> >
>
Friday, February 24, 2012
Can I use .DNF file to recover my data?
This database has 10 files (.MDF, NDF, and LDF). I know which .NDF file
contains the data of the table. I made detach the database.
Can I use one old backed up .NDF file replace the current .NDF file, and
together with other current files to attach this database?
Thanks for suggestions,No, SQL Server keep track of the database files and will not allow database
files from different
point in time. That would adventure database integrity.
How about doing a restore (I presume you have backups) into a new database n
ame, up until desired
time and then copy that table from there to your production database.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Mike Torry" <MikeTorry@.discussions.microsoft.com> wrote in message
news:1DCB6F00-51AC-468B-AC0A-1C350979B47E@.microsoft.com...
>I want to recover data in a table on SQL 2000 server.
> This database has 10 files (.MDF, NDF, and LDF). I know which .NDF file
> contains the data of the table. I made detach the database.
> Can I use one old backed up .NDF file replace the current .NDF file, and
> together with other current files to attach this database?
> Thanks for suggestions,
>|||Thanks for your help!
"Tibor Karaszi" wrote:
> No, SQL Server keep track of the database files and will not allow databas
e files from different
> point in time. That would adventure database integrity.
> How about doing a restore (I presume you have backups) into a new database
name, up until desired
> time and then copy that table from there to your production database.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Mike Torry" <MikeTorry@.discussions.microsoft.com> wrote in message
> news:1DCB6F00-51AC-468B-AC0A-1C350979B47E@.microsoft.com...
>
Can I store a file in a SQL Server Database?
Also the database where this table is created should provide similar functionality as a file server open, edit, check in, and check out on stored files. Can I do this in SQL Server 2000?As fare as I know, SQL Server has no specific support for office files.
So, you have the choice between re-inventing the functionality of document information systems, or to buy some. These systems are storing office files as BLOBs to keep all controls, and they are storing the text in a separate TEXT field to enable searching.
However, there is a third way: store only the path to the documents on your netwerk, and use Office's functionality to prevent users to open the same document twice.
Can I store a file in a SQL Server Database?
Also the database where this table is created should provide similar functionality as a file server open, edit, check in, and check out on stored files. Can I do this in SQL Server 2000?You can store documents in the text or image data type.
You probably can't search on them, but your could store a summary in a character-based field with the record, or a column that just contains keywords.
Yes, you can provide functionality similar to a file-server...you just have to write it all yourself. :(
I can tell you that you are looking at a daunting project here that will likely involve complex coding. The user-interface will probably also prove difficult.
Perhaps somebody else on the forum will see this post and could recommend some professionally designed 3rd party software for document management?
blindman
Can I still recover this database : Only have the MDF file, no LDF file ?
If a database was corrupted (due to whatever reasons) and lost its LDF files
but only had its MDF files, can I still recover it ?
How ?
Please tell me, thanks.Hi,
If you have database backups then restore from these backups instead.
The problem I see with using only the mdf file is that the missing ldf files
may have information to rollback or roll forward transactions in order to
leave the database in a consistent state.
Ben Nevarez
Senior Database Administrator
AIG SunAmerica
"cpchan" wrote:
> Dear all,
> If a database was corrupted (due to whatever reasons) and lost its LDF files
> but only had its MDF files, can I still recover it ?
> How ?
> Please tell me, thanks.
>
>|||Hi
http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
"cpchan" <cpchaney@.netvigator.com> wrote in message
news:472d345d$1@.127.0.0.1...
> Dear all,
> If a database was corrupted (due to whatever reasons) and lost its LDF
> files
> but only had its MDF files, can I still recover it ?
> How ?
> Please tell me, thanks.
>
>
Thursday, February 16, 2012
Can I restore database with just the mdf?
backups were faithfully done, the backup files are not retained on the system
past one month. And the tape backups of the network, that do go back in
time, skipped the directories that held the bak and trn files.
What I have is an mdf file from that period. I tried doing an attach with
ATTACH_REBUILD_LOG, but it errors out because "the database was not cleanly
shut down." I'm guessing that this is because the database file was simply
copied as a physical file instead of being detached first.
In an act of desperation, I created an empty database of the same name, shut
down the server, and then copied over the old mdf file. I didn't really
expect it to work, and therefore was not disappointed.
Is there anything I can do to restore this old mdf?
I saw several posts advising people to try sp_attach_single_file_db. It did
this but got the same error message that I had been getting.
Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file
"D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_ log.ldf". Operating system
error 5: "5(Access is denied.)".
File activation failure. The physical file name
"D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_ log.ldf" may be incorrect.
The log cannot be rebuilt because the database was not cleanly shut down.
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'MCRinc_65App_Jun07'. CREATE DATABASE is aborted.
"Bev Kaufman" wrote:
> I need to restore a database to the state it was in six months ago. Though
> backups were faithfully done, the backup files are not retained on the system
> past one month. And the tape backups of the network, that do go back in
> time, skipped the directories that held the bak and trn files.
> What I have is an mdf file from that period. I tried doing an attach with
> ATTACH_REBUILD_LOG, but it errors out because "the database was not cleanly
> shut down." I'm guessing that this is because the database file was simply
> copied as a physical file instead of being detached first.
> In an act of desperation, I created an empty database of the same name, shut
> down the server, and then copied over the old mdf file. I didn't really
> expect it to work, and therefore was not disappointed.
> Is there anything I can do to restore this old mdf?
|||Bev,
This may not work, depending on many things. But, having said that, it did
save my skin in one disaster. Please read and follow carefully:
http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.server/2004-03/3026.html
As Jasper Smith says, this is unsupported.
RLF
"Bev Kaufman" <BevKaufman@.discussions.microsoft.com> wrote in message
news:C5E520BD-5FD1-44EE-9963-399369BABA22@.microsoft.com...[vbcol=seagreen]
>I saw several posts advising people to try sp_attach_single_file_db. It
>did
> this but got the same error message that I had been getting.
> Msg 5120, Level 16, State 101, Line 1
> Unable to open the physical file
> "D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_ log.ldf". Operating
> system
> error 5: "5(Access is denied.)".
> File activation failure. The physical file name
> "D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_ log.ldf" may be
> incorrect.
> The log cannot be rebuilt because the database was not cleanly shut down.
> Msg 1813, Level 16, State 2, Line 1
> Could not open new database 'MCRinc_65App_Jun07'. CREATE DATABASE is
> aborted.
>
> "Bev Kaufman" wrote:
|||I had to do something similar but I only thing was I couldn't get step 9 on
working. So what I did was after the database was in emergency state, I
created a new blank database. And used DTS services to transfer all objects
from original database to the new one. SQL was able to access the database
even though it had no log file; just didn't want me to make any transactions
against it where log was required I guess.
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCTS: SQL Server 2005
http://sqllearnings.blogspot.com/
"Russell Fields" wrote:
> Bev,
> This may not work, depending on many things. But, having said that, it did
> save my skin in one disaster. Please read and follow carefully:
> http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.server/2004-03/3026.html
> As Jasper Smith says, this is unsupported.
> RLF
> "Bev Kaufman" <BevKaufman@.discussions.microsoft.com> wrote in message
> news:C5E520BD-5FD1-44EE-9963-399369BABA22@.microsoft.com...
>
>
Can I restore database with just the mdf?
backups were faithfully done, the backup files are not retained on the syste
m
past one month. And the tape backups of the network, that do go back in
time, skipped the directories that held the bak and trn files.
What I have is an mdf file from that period. I tried doing an attach with
ATTACH_REBUILD_LOG, but it errors out because "the database was not cleanly
shut down." I'm guessing that this is because the database file was simply
copied as a physical file instead of being detached first.
In an act of desperation, I created an empty database of the same name, shut
down the server, and then copied over the old mdf file. I didn't really
expect it to work, and therefore was not disappointed.
Is there anything I can do to restore this old mdf?I saw several posts advising people to try sp_attach_single_file_db. It did
this but got the same error message that I had been getting.
Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file
" D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRi
nc_65App_log.ldf". Operating system
error 5: "5(Access is denied.)".
File activation failure. The physical file name
" D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRi
nc_65App_log.ldf" may be incorrect.
The log cannot be rebuilt because the database was not cleanly shut down.
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'MCRinc_65App_Jun07'. CREATE DATABASE is aborted
.
"Bev Kaufman" wrote:
> I need to restore a database to the state it was in six months ago. Thoug
h
> backups were faithfully done, the backup files are not retained on the sys
tem
> past one month. And the tape backups of the network, that do go back in
> time, skipped the directories that held the bak and trn files.
> What I have is an mdf file from that period. I tried doing an attach with
> ATTACH_REBUILD_LOG, but it errors out because "the database was not cleanl
y
> shut down." I'm guessing that this is because the database file was simpl
y
> copied as a physical file instead of being detached first.
> In an act of desperation, I created an empty database of the same name, sh
ut
> down the server, and then copied over the old mdf file. I didn't really
> expect it to work, and therefore was not disappointed.
> Is there anything I can do to restore this old mdf?|||Bev,
This may not work, depending on many things. But, having said that, it did
save my skin in one disaster. Please read and follow carefully:
http://www.tech-archive.net/Archive...04-03/3026.html
As Jasper Smith says, this is unsupported.
RLF
"Bev Kaufman" <BevKaufman@.discussions.microsoft.com> wrote in message
news:C5E520BD-5FD1-44EE-9963-399369BABA22@.microsoft.com...[vbcol=seagreen]
>I saw several posts advising people to try sp_attach_single_file_db. It
>did
> this but got the same error message that I had been getting.
> Msg 5120, Level 16, State 101, Line 1
> Unable to open the physical file
> " D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRi
nc_65App_log.ldf". Operating
> system
> error 5: "5(Access is denied.)".
> File activation failure. The physical file name
> " D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRi
nc_65App_log.ldf" may be
> incorrect.
> The log cannot be rebuilt because the database was not cleanly shut down.
> Msg 1813, Level 16, State 2, Line 1
> Could not open new database 'MCRinc_65App_Jun07'. CREATE DATABASE is
> aborted.
>
> "Bev Kaufman" wrote:
>|||I had to do something similar but I only thing was I couldn't get step 9 on
working. So what I did was after the database was in emergency state, I
created a new blank database. And used DTS services to transfer all objects
from original database to the new one. SQL was able to access the database
even though it had no log file; just didn't want me to make any transactions
against it where log was required I guess.
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCTS: SQL Server 2005
http://sqllearnings.blogspot.com/
"Russell Fields" wrote:
> Bev,
> This may not work, depending on many things. But, having said that, it di
d
> save my skin in one disaster. Please read and follow carefully:
> http://www.tech-archive.net/Archive...04-03/3026.html
> As Jasper Smith says, this is unsupported.
> RLF
> "Bev Kaufman" <BevKaufman@.discussions.microsoft.com> wrote in message
> news:C5E520BD-5FD1-44EE-9963-399369BABA22@.microsoft.com...
>
>
Can I restore database with just the mdf?
backups were faithfully done, the backup files are not retained on the system
past one month. And the tape backups of the network, that do go back in
time, skipped the directories that held the bak and trn files.
What I have is an mdf file from that period. I tried doing an attach with
ATTACH_REBUILD_LOG, but it errors out because "the database was not cleanly
shut down." I'm guessing that this is because the database file was simply
copied as a physical file instead of being detached first.
In an act of desperation, I created an empty database of the same name, shut
down the server, and then copied over the old mdf file. I didn't really
expect it to work, and therefore was not disappointed.
Is there anything I can do to restore this old mdf?I saw several posts advising people to try sp_attach_single_file_db. It did
this but got the same error message that I had been getting.
Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file
"D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_log.ldf". Operating system
error 5: "5(Access is denied.)".
File activation failure. The physical file name
"D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_log.ldf" may be incorrect.
The log cannot be rebuilt because the database was not cleanly shut down.
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'MCRinc_65App_Jun07'. CREATE DATABASE is aborted.
"Bev Kaufman" wrote:
> I need to restore a database to the state it was in six months ago. Though
> backups were faithfully done, the backup files are not retained on the system
> past one month. And the tape backups of the network, that do go back in
> time, skipped the directories that held the bak and trn files.
> What I have is an mdf file from that period. I tried doing an attach with
> ATTACH_REBUILD_LOG, but it errors out because "the database was not cleanly
> shut down." I'm guessing that this is because the database file was simply
> copied as a physical file instead of being detached first.
> In an act of desperation, I created an empty database of the same name, shut
> down the server, and then copied over the old mdf file. I didn't really
> expect it to work, and therefore was not disappointed.
> Is there anything I can do to restore this old mdf?|||Bev,
This may not work, depending on many things. But, having said that, it did
save my skin in one disaster. Please read and follow carefully:
http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.server/2004-03/3026.html
As Jasper Smith says, this is unsupported.
RLF
"Bev Kaufman" <BevKaufman@.discussions.microsoft.com> wrote in message
news:C5E520BD-5FD1-44EE-9963-399369BABA22@.microsoft.com...
>I saw several posts advising people to try sp_attach_single_file_db. It
>did
> this but got the same error message that I had been getting.
> Msg 5120, Level 16, State 101, Line 1
> Unable to open the physical file
> "D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_log.ldf". Operating
> system
> error 5: "5(Access is denied.)".
> File activation failure. The physical file name
> "D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_log.ldf" may be
> incorrect.
> The log cannot be rebuilt because the database was not cleanly shut down.
> Msg 1813, Level 16, State 2, Line 1
> Could not open new database 'MCRinc_65App_Jun07'. CREATE DATABASE is
> aborted.
>
> "Bev Kaufman" wrote:
>> I need to restore a database to the state it was in six months ago.
>> Though
>> backups were faithfully done, the backup files are not retained on the
>> system
>> past one month. And the tape backups of the network, that do go back in
>> time, skipped the directories that held the bak and trn files.
>> What I have is an mdf file from that period. I tried doing an attach with
>> ATTACH_REBUILD_LOG, but it errors out because "the database was not
>> cleanly
>> shut down." I'm guessing that this is because the database file was
>> simply
>> copied as a physical file instead of being detached first.
>> In an act of desperation, I created an empty database of the same name,
>> shut
>> down the server, and then copied over the old mdf file. I didn't really
>> expect it to work, and therefore was not disappointed.
>> Is there anything I can do to restore this old mdf?|||I had to do something similar but I only thing was I couldn't get step 9 on
working. So what I did was after the database was in emergency state, I
created a new blank database. And used DTS services to transfer all objects
from original database to the new one. SQL was able to access the database
even though it had no log file; just didn't want me to make any transactions
against it where log was required I guess.
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCTS: SQL Server 2005
http://sqllearnings.blogspot.com/
"Russell Fields" wrote:
> Bev,
> This may not work, depending on many things. But, having said that, it did
> save my skin in one disaster. Please read and follow carefully:
> http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.server/2004-03/3026.html
> As Jasper Smith says, this is unsupported.
> RLF
> "Bev Kaufman" <BevKaufman@.discussions.microsoft.com> wrote in message
> news:C5E520BD-5FD1-44EE-9963-399369BABA22@.microsoft.com...
> >I saw several posts advising people to try sp_attach_single_file_db. It
> >did
> > this but got the same error message that I had been getting.
> >
> > Msg 5120, Level 16, State 101, Line 1
> > Unable to open the physical file
> > "D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_log.ldf". Operating
> > system
> > error 5: "5(Access is denied.)".
> > File activation failure. The physical file name
> > "D:\SysData\MSSQL\LogFiles\MCRSL_V65\MCRinc_65App_log.ldf" may be
> > incorrect.
> > The log cannot be rebuilt because the database was not cleanly shut down.
> > Msg 1813, Level 16, State 2, Line 1
> > Could not open new database 'MCRinc_65App_Jun07'. CREATE DATABASE is
> > aborted.
> >
> >
> > "Bev Kaufman" wrote:
> >
> >> I need to restore a database to the state it was in six months ago.
> >> Though
> >> backups were faithfully done, the backup files are not retained on the
> >> system
> >> past one month. And the tape backups of the network, that do go back in
> >> time, skipped the directories that held the bak and trn files.
> >>
> >> What I have is an mdf file from that period. I tried doing an attach with
> >> ATTACH_REBUILD_LOG, but it errors out because "the database was not
> >> cleanly
> >> shut down." I'm guessing that this is because the database file was
> >> simply
> >> copied as a physical file instead of being detached first.
> >>
> >> In an act of desperation, I created an empty database of the same name,
> >> shut
> >> down the server, and then copied over the old mdf file. I didn't really
> >> expect it to work, and therefore was not disappointed.
> >>
> >> Is there anything I can do to restore this old mdf?
>
>
Tuesday, February 14, 2012
can i recover the data from datafiles ?
I am new to Sql Server,well i would like to ask that can i recover a
data from data files? actually i have few datafiles and i want to
extract data form those files.the version of sql server is 7.0 and it
is running on windows 98.there is a option in oracle to recreate a
controlfile if you know the location of datafiles to recover data from
those files.i wonder if sql server has something
like this.
thanks
Alok
hi
lookup sp_attach_single_file_db stored procedure in the bol
However, if you did not detach the database properly (or at all) you may
face some problems to attach it.
<alok.behria@.gmail.com> wrote in message
news:1130329268.797372.48850@.g47g2000cwa.googlegro ups.com...
> Hi all,
> I am new to Sql Server,well i would like to ask that can i recover a
> data from data files? actually i have few datafiles and i want to
> extract data form those files.the version of sql server is 7.0 and it
> is running on windows 98.there is a option in oracle to recreate a
> controlfile if you know the location of datafiles to recover data from
> those files.i wonder if sql server has something
> like this.
> thanks
> Alok
>
can i recover the data from datafiles ?
I am new to Sql Server,well i would like to ask that can i recover a
data from data files? actually i have few datafiles and i want to
extract data form those files.the version of sql server is 7.0 and it
is running on windows 98.there is a option in oracle to recreate a
controlfile if you know the location of datafiles to recover data from
those files.i wonder if sql server has something
like this.
thanks
Alokhi
lookup sp_attach_single_file_db stored procedure in the bol
However, if you did not detach the database properly (or at all) you may
face some problems to attach it.
<alok.behria@.gmail.com> wrote in message
news:1130329268.797372.48850@.g47g2000cwa.googlegroups.com...
> Hi all,
> I am new to Sql Server,well i would like to ask that can i recover a
> data from data files? actually i have few datafiles and i want to
> extract data form those files.the version of sql server is 7.0 and it
> is running on windows 98.there is a option in oracle to recreate a
> controlfile if you know the location of datafiles to recover data from
> those files.i wonder if sql server has something
> like this.
> thanks
> Alok
>
can i recover the data from datafiles ?
I am new to Sql Server,well i would like to ask that can i recover a
data from data files? actually i have few datafiles and i want to
extract data form those files.the version of sql server is 7.0 and it
is running on windows 98.there is a option in oracle to recreate a
controlfile if you know the location of datafiles to recover data from
those files.i wonder if sql server has something
like this.
thanks
Alokhi
lookup sp_attach_single_file_db stored procedure in the bol
However, if you did not detach the database properly (or at all) you may
face some problems to attach it.
<alok.behria@.gmail.com> wrote in message
news:1130329268.797372.48850@.g47g2000cwa.googlegroups.com...
> Hi all,
> I am new to Sql Server,well i would like to ask that can i recover a
> data from data files? actually i have few datafiles and i want to
> extract data form those files.the version of sql server is 7.0 and it
> is running on windows 98.there is a option in oracle to recreate a
> controlfile if you know the location of datafiles to recover data from
> those files.i wonder if sql server has something
> like this.
> thanks
> Alok
>