Showing posts with label back. Show all posts
Showing posts with label back. Show all posts

Wednesday, March 28, 2012

MS SQL Server Run time Error

Hi

We are using MS SQL Server 2000 as back end database for our application. It was working fine certainly we are getting Run time error while try to open this application through front end.

The Error number says that the SQL Transaction Log file is file. find belo the error

Thanks in advance.
S KaliyanI think I missed the error in the post. If this is still unresolved can you resend with the appropriate error?

MS SQL Server Newsgroup Archives

Hi,
I'm trying to locate the archives for the public Microsoft SQL Server
newsgroups. Outlook Express seems to only go back a month or so. Does
anyone know where these archives are located and how I can access them?
Thanks.
JerryHi Jerry,
I'm pretty certain that the archives are not available through NNTP. I belie
ve that the web
front-ends go further back, though. I've listed two such web-front-ends in
http://www.karaszi.com/SQLServer/newsgroups.asp.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I'm trying to locate the archives for the public Microsoft SQL Server
> newsgroups. Outlook Express seems to only go back a month or so. Does
> anyone know where these archives are located and how I can access them?
> Thanks.
> Jerry
>|||Thanks Tibor.
Jerry
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uguhDp$jEHA.3456@.TK2MSFTNGP12.phx.gbl...
> Hi Jerry,
> I'm pretty certain that the archives are not available through NNTP. I
believe that the web
> front-ends go further back, though. I've listed two such web-front-ends in
> http://www.karaszi.com/SQLServer/newsgroups.asp.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
> news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
>|||http://www.google.com/grphp?hl=en&tab=wg
Andy
"Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I'm trying to locate the archives for the public Microsoft SQL Server
> newsgroups. Outlook Express seems to only go back a month or so. Does
> anyone know where these archives are located and how I can access them?
> Thanks.
> Jerry
>|||On Wed, 1 Sep 2004 00:47:22 -0700, Jerry Spivey wrote:

>Hi,
>I'm trying to locate the archives for the public Microsoft SQL Server
>newsgroups. Outlook Express seems to only go back a month or so. Does
>anyone know where these archives are located and how I can access them?
>Thanks.
>Jerry
>
Hi Jerry,
Some 8 years of newsgroup history can be located through Google:
rver.server&as_drrb=b&as_mind=12&as_minm=5&as_miny=1981&as_maxd=1&as_maxm=8&as_max
y=1996&lr=&hl=en" target="_blank">http://www.google.com/groups?safe=i...=1996&lr=&hl=en
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)sql

MS SQL Server Newsgroup Archives

Hi,
I'm trying to locate the archives for the public Microsoft SQL Server
newsgroups. Outlook Express seems to only go back a month or so. Does
anyone know where these archives are located and how I can access them?
Thanks.
JerryHi Jerry,
I'm pretty certain that the archives are not available through NNTP. I believe that the web
front-ends go further back, though. I've listed two such web-front-ends in
http://www.karaszi.com/SQLServer/newsgroups.asp.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I'm trying to locate the archives for the public Microsoft SQL Server
> newsgroups. Outlook Express seems to only go back a month or so. Does
> anyone know where these archives are located and how I can access them?
> Thanks.
> Jerry
>|||Thanks Tibor.
Jerry
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uguhDp$jEHA.3456@.TK2MSFTNGP12.phx.gbl...
> Hi Jerry,
> I'm pretty certain that the archives are not available through NNTP. I
believe that the web
> front-ends go further back, though. I've listed two such web-front-ends in
> http://www.karaszi.com/SQLServer/newsgroups.asp.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
> news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > I'm trying to locate the archives for the public Microsoft SQL Server
> > newsgroups. Outlook Express seems to only go back a month or so. Does
> > anyone know where these archives are located and how I can access them?
> >
> > Thanks.
> >
> > Jerry
> >
> >
>|||http://www.google.com/grphp?hl=en&tab=wg
Andy
"Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I'm trying to locate the archives for the public Microsoft SQL Server
> newsgroups. Outlook Express seems to only go back a month or so. Does
> anyone know where these archives are located and how I can access them?
> Thanks.
> Jerry
>|||On Wed, 1 Sep 2004 00:47:22 -0700, Jerry Spivey wrote:
>Hi,
>I'm trying to locate the archives for the public Microsoft SQL Server
>newsgroups. Outlook Express seems to only go back a month or so. Does
>anyone know where these archives are located and how I can access them?
>Thanks.
>Jerry
>
Hi Jerry,
Some 8 years of newsgroup history can be located through Google:
http://www.google.com/groups?safe=images&ie=UTF-8&as_ugroup=microsoft.public.sqlserver.server&as_drrb=b&as_mind=12&as_minm=5&as_miny=1981&as_maxd=1&as_maxm=8&as_maxy=1996&lr=&hl=en
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)

MS SQL Server Newsgroup Archives

Hi,
I'm trying to locate the archives for the public Microsoft SQL Server
newsgroups. Outlook Express seems to only go back a month or so. Does
anyone know where these archives are located and how I can access them?
Thanks.
Jerry
Hi Jerry,
I'm pretty certain that the archives are not available through NNTP. I believe that the web
front-ends go further back, though. I've listed two such web-front-ends in
http://www.karaszi.com/SQLServer/newsgroups.asp.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I'm trying to locate the archives for the public Microsoft SQL Server
> newsgroups. Outlook Express seems to only go back a month or so. Does
> anyone know where these archives are located and how I can access them?
> Thanks.
> Jerry
>
|||Thanks Tibor.
Jerry
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uguhDp$jEHA.3456@.TK2MSFTNGP12.phx.gbl...
> Hi Jerry,
> I'm pretty certain that the archives are not available through NNTP. I
believe that the web
> front-ends go further back, though. I've listed two such web-front-ends in
> http://www.karaszi.com/SQLServer/newsgroups.asp.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
> news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
>
|||http://www.google.com/grphp?hl=en&tab=wg
Andy
"Jerry Spivey" <jerrysp69@.hotmail.com> wrote in message
news:uHPA%23g$jEHA.2664@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I'm trying to locate the archives for the public Microsoft SQL Server
> newsgroups. Outlook Express seems to only go back a month or so. Does
> anyone know where these archives are located and how I can access them?
> Thanks.
> Jerry
>
|||On Wed, 1 Sep 2004 00:47:22 -0700, Jerry Spivey wrote:

>Hi,
>I'm trying to locate the archives for the public Microsoft SQL Server
>newsgroups. Outlook Express seems to only go back a month or so. Does
>anyone know where these archives are located and how I can access them?
>Thanks.
>Jerry
>
Hi Jerry,
Some 8 years of newsgroup history can be located through Google:
http://www.google.com/groups?safe=im...1996&lr=&hl=en
Best, Hugo
(Remove _NO_ and _SPAM_ to get my e-mail address)

Monday, March 12, 2012

MS SQL Error 823 I/O Error

Hi there,

I am reinstall my OS (Win2k Server) and try to attach back my database to SQL Server (MS SQL 2000).

After selecting MDF and LDF file. It come out with all those message below in my event viwer. And attach database action is fail.

I had check with Microsoft and download the latest Server Pack 3, but still nothing is change. I am panic here.

Can any one help me to solve this problem.

Your help is very much appreciated.

Thank you.

Dave

Message copy from Event Viwer.

17052 :
Device activation error. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\ultra_Log.LDF' may be incorrect.

Error: 823, Severity: 24, State: 6
I/O error (torn page) detected during read at offset 0000000000000000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\ultra_Log.LDF'.

17207 :
udopen: Operating system error 5(error not found) during the creation/opening of physical device C:\Program Files\Microsoft SQL Server\MSSQL\data\ultra_Data.MDF.

17204 :
FCB::Open failed: Could not open device C:\Program Files\Microsoft SQL Server\MSSQL\data\ultra_Data.MDF for virtual device number (VDN) 1.

17052 :
Device activation error. The physical file name 'C:\Program Files\Microsoft SQL Server\MSSQL\data\ultra_Data.MDF' may be incorrect.Judging from the error messages, are you certain you have the files in the correct path? Just trying to eliminate the obvious, here.|||Originally posted by MCrowley
Judging from the error messages, are you certain you have the files in the correct path? Just trying to eliminate the obvious, here.

Well....i just copy back the file to C:\Program Files\Microsoft SQL Server\MSSQL\Data

so....i just using the utility in the Enterprise Manager call Attach Database...is something like sp_attach_db but in windows graphic mode...

even i am using sp_attach_db command in command prompt, same mssg will appear...

here by i submit my database file...the log file and the data file...
please help to solve it...
i have no idea about all this...

thank you so much

Dave|||Check this link, it may be of relevance to your situation.

Resore database with corrupted log file (http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=uXRytePVCHA.2452%40tkmsftngp09&rnum=4)|||Hey...Thank a lot...
even process in bertween a lot of error reported but it still work. Now i can access to my database now...

Thanks. Very appreciated..

We started out with only the MDF file. The log file had been corrupted and lost due to disk failure and we found out we weren't backing up the
databases, only the file groups so we had a month of semi-useless backups.

Definitions:
<databasename> - this should be replaced, in any query detailed in the steps
below, with the database being recovered.
<database path> - this should be replaced with the path to the SQL data
files.
<database logfile> - this should be replaced with the filename of the SQL
database log file minus the extenstion.

1. In SQL Enterprise Manager, create a new database with the same name as
the old one. Make it the same data file size or larger as the old MDF.

2. Stop SQL Server.

3. Delete the new MDF file and rename the old one back.

4. Start SQL Server. The database should now show up tagged Suspect in
Enterprise Manager.

5. In SQL Query Analyser:
use master
go
sp_configure 'allow', 1
go
reconfigure with override
go
update sysdatabases set status=32768 where name='<databasename>'
go
dbcc rebuild_log('<databasename>','<database path>\<database
logfile>1.ldf')
go

NOTE: the second to last command is not a typo. The last variable of
<databselogfile>1.ldf is correct. If your database was named CONTACTS this
would give you CONTACTS_LOG1.ldf. Don't forget the '1' at the end.

This should result in a message similar to, "Transaction log successfully
rebuilt - transactional consistency lost."

6. In SQL Query Analyzer:
dbcc checkdb('<databasename>')

This may result in a number of errors. If so, go to step 7. If there are no
errors, the process may be complete. Check step 9.

7. In SQL Query Analyzer:
dbcc checkdb('<databasename>',repair_allow_data_loss)

You may have to set the database to single user for this to work. It will
alert you to this. This can be done in Enterprise Manager under the
databases properties.

8. Repeat steps 9 and 10 until step 9 results in no errors.

9. The database may end up with a status of "dbo use only". To clear this,
execute the following in SQL Query Analyzer:
use master
go
exec sp_dboption '<databasename>', 'dbo use only', 'false'
go

You can also do this last step in Enterprise Manager under the databases
properties.

Wednesday, March 7, 2012

MS SQL 2005: Where clause and optimizer

Way back when, and at least in version 7 IIRC, the query optimizer gave
up when the where clause in a statement contained more than 4 search
conditions.

Does anyone know if such a limitation still exist in MS SQL 2005? The
BOL seems to be silent on the issue.

Boaboa sema (boasema@.gmail.com) writes:

Quote:

Originally Posted by

Way back when, and at least in version 7 IIRC, the query optimizer gave
up when the where clause in a statement contained more than 4 search
conditions.


This is a complete misunderstanding. What you might be thinking of is
that in SQL 6.5 and earlier version, the optimizer would only consider
four tables at a time, so if you had a query like:

SELECT ...
FROM a, b, c, d, e
WHERE ...

the optimizer would first look at (a, b, c, d) as a group, and then
(b, c, d, e) as a group. This mean that if the best plan was to start
with e and then take a next, the optimizer would most likely not find
plan.

Quote:

Originally Posted by

Does anyone know if such a limitation still exist in MS SQL 2005? The
BOL seems to be silent on the issue.


The behaviour I describe above was abolished in SQL 7. The optimizer does
still not consider all possible plans - because for 12-table query it could
spend all day optimising. Instead it considers it task finished when the
estimated cost is good enough.

--
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|||Erland Sommarskog wrote:

Quote:

Originally Posted by

boa sema (boasema@.gmail.com) writes:
>

Quote:

Originally Posted by

>>Way back when, and at least in version 7 IIRC, the query optimizer gave
>>up when the where clause in a statement contained more than 4 search
>>conditions.


>
>
This is a complete misunderstanding. What you might be thinking of is
that in SQL 6.5 and earlier version, the optimizer would only consider
four tables at a time, so if you had a query like:
>
SELECT ...
FROM a, b, c, d, e
WHERE ...
>
the optimizer would first look at (a, b, c, d) as a group, and then
(b, c, d, e) as a group. This mean that if the best plan was to start
with e and then take a next, the optimizer would most likely not find
plan.


That's what I was thinking of. It was a very, very long time ago,
impressing that you still remember the details as well as you do.

Now that you've clarified it so well, this is not an issue anymore. I
remembered incorrectly.

Thanks.
Boa

[snip]

Monday, February 20, 2012

MS Shell Dlg

Hi
This is probably not that important, but I changed the font, and now I can't
set it back to the original font?
Not urgent, just a nice to have.
Kind Regards
Rikesh
Rikesh,
Changed the font where exactly? In Query Analyzer? Go here:
Tools->Options->Fonts.
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.html
Rikesh wrote:
> Hi
> This is probably not that important, but I changed the font, and now I can't
> set it back to the original font?
> Not urgent, just a nice to have.
> Kind Regards
> Rikesh
>
|||Apologies, should have explained better, I meant in Enterprise Manager, when
you view an objects such as a View , SP or Trigger...
"Mark Allison" <marka@.no.tinned.meat.mvps.org> wrote in message
news:O0ON4dOlEHA.1652@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> Rikesh,
> Changed the font where exactly? In Query Analyzer? Go here:
> Tools->Options->Fonts.
> --
> Mark Allison, SQL Server MVP
> http://www.markallison.co.uk
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602m.html
>
> Rikesh wrote:
can't[vbcol=seagreen]

MS Shell Dlg

Hi
This is probably not that important, but I changed the font, and now I can't
set it back to the original font?
Not urgent, just a nice to have.
Kind Regards
RikeshRikesh,
Changed the font where exactly? In Query Analyzer? Go here:
Tools->Options->Fonts.
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.html
Rikesh wrote:
> Hi
> This is probably not that important, but I changed the font, and now I can't
> set it back to the original font?
> Not urgent, just a nice to have.
> Kind Regards
> Rikesh
>|||Apologies, should have explained better, I meant in Enterprise Manager, when
you view an objects such as a View , SP or Trigger...
"Mark Allison" <marka@.no.tinned.meat.mvps.org> wrote in message
news:O0ON4dOlEHA.1652@.TK2MSFTNGP09.phx.gbl...
> Rikesh,
> Changed the font where exactly? In Query Analyzer? Go here:
> Tools->Options->Fonts.
> --
> Mark Allison, SQL Server MVP
> http://www.markallison.co.uk
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602m.html
>
> Rikesh wrote:
> > Hi
> >
> > This is probably not that important, but I changed the font, and now I
can't
> > set it back to the original font?
> >
> > Not urgent, just a nice to have.
> >
> > Kind Regards
> >
> > Rikesh
> >
> >