Thursday, March 29, 2012
can we get the deleted data back in SQL 2000
in the mean time some data is also get added into that tables. after two days
only i recognize the some data are deleted. No i need the deleted data and
also the newly inserted data. what should i do?
Sakthivel
SQL Server Developer
INDIA
Hi
Only if you have BACKUP LOG file issued during this period
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> Hi im current using SQL 2000, data in three tables has got deleted on
> friday,
> in the mean time some data is also get added into that tables. after two
> days
> only i recognize the some data are deleted. No i need the deleted data and
> also the newly inserted data. what should i do?
> --
> Sakthivel
> SQL Server Developer
> INDIA
|||http://www.karaszi.com/SQLServer/info_restore_log_several_times.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> Hi im current using SQL 2000, data in three tables has got deleted on friday,
> in the mean time some data is also get added into that tables. after two days
> only i recognize the some data are deleted. No i need the deleted data and
> also the newly inserted data. what should i do?
> --
> Sakthivel
> SQL Server Developer
> INDIA
|||Yes, I have the backlog file. Everyday midnight the fullbackup will be taken
and stored.
Sakthivel
SQL Server Developer
INDIA
"Uri Dimant" wrote:
> Hi
> Only if you have BACKUP LOG file issued during this period
>
> "Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
> news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
>
>
|||Is the database in simple or full recovery model?
Are you doing regular transaction log backups?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:9037CCBC-8515-44C0-9B51-64DA9B27F27C@.microsoft.com...[vbcol=seagreen]
> Yes, I have the backlog file. Everyday midnight the fullbackup will be taken
> and stored.
>
> --
> Sakthivel
> SQL Server Developer
> INDIA
>
> "Uri Dimant" wrote:
|||Thanks Tibor Karaszi and Uri
Sakthivel
SQL Server Developer
INDIA
"Tibor Karaszi" wrote:
> http://www.karaszi.com/SQLServer/info_restore_log_several_times.asp
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
> news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
>
>
can we get the deleted data back in SQL 2000
,
in the mean time some data is also get added into that tables. after two day
s
only i recognize the some data are deleted. No i need the deleted data and
also the newly inserted data. what should i do?
--
Sakthivel
SQL Server Developer
INDIAHi
Only if you have BACKUP LOG file issued during this period
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> Hi im current using SQL 2000, data in three tables has got deleted on
> friday,
> in the mean time some data is also get added into that tables. after two
> days
> only i recognize the some data are deleted. No i need the deleted data and
> also the newly inserted data. what should i do?
> --
> Sakthivel
> SQL Server Developer
> INDIA|||http://www.karaszi.com/SQLServer/in...veral_times.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> Hi im current using SQL 2000, data in three tables has got deleted on frid
ay,
> in the mean time some data is also get added into that tables. after two d
ays
> only i recognize the some data are deleted. No i need the deleted data and
> also the newly inserted data. what should i do?
> --
> Sakthivel
> SQL Server Developer
> INDIA|||Yes, I have the backlog file. Everyday midnight the fullbackup will be taken
and stored.
Sakthivel
SQL Server Developer
INDIA
"Uri Dimant" wrote:
> Hi
> Only if you have BACKUP LOG file issued during this period
>
> "Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
> news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
>
>|||Is the database in simple or full recovery model?
Are you doing regular transaction log backups?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:9037CCBC-8515-44C0-9B51-64DA9B27F27C@.microsoft.com...[vbcol=seagreen]
> Yes, I have the backlog file. Everyday midnight the fullbackup will be tak
en
> and stored.
>
> --
> Sakthivel
> SQL Server Developer
> INDIA
>
> "Uri Dimant" wrote:
>|||Thanks Tibor Karaszi and Uri
Sakthivel
SQL Server Developer
INDIA
"Tibor Karaszi" wrote:
> http://www.karaszi.com/SQLServer/in...veral_times.asp
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
> news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
>
>
can we get the deleted data back in SQL 2000
in the mean time some data is also get added into that tables. after two days
only i recognize the some data are deleted. No i need the deleted data and
also the newly inserted data. what should i do?
--
Sakthivel
SQL Server Developer
INDIAHi
Only if you have BACKUP LOG file issued during this period
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> Hi im current using SQL 2000, data in three tables has got deleted on
> friday,
> in the mean time some data is also get added into that tables. after two
> days
> only i recognize the some data are deleted. No i need the deleted data and
> also the newly inserted data. what should i do?
> --
> Sakthivel
> SQL Server Developer
> INDIA|||http://www.karaszi.com/SQLServer/info_restore_log_several_times.asp
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> Hi im current using SQL 2000, data in three tables has got deleted on friday,
> in the mean time some data is also get added into that tables. after two days
> only i recognize the some data are deleted. No i need the deleted data and
> also the newly inserted data. what should i do?
> --
> Sakthivel
> SQL Server Developer
> INDIA|||Yes, I have the backlog file. Everyday midnight the fullbackup will be taken
and stored.
Sakthivel
SQL Server Developer
INDIA
"Uri Dimant" wrote:
> Hi
> Only if you have BACKUP LOG file issued during this period
>
> "Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
> news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> > Hi im current using SQL 2000, data in three tables has got deleted on
> > friday,
> > in the mean time some data is also get added into that tables. after two
> > days
> > only i recognize the some data are deleted. No i need the deleted data and
> > also the newly inserted data. what should i do?
> > --
> > Sakthivel
> > SQL Server Developer
> > INDIA
>
>|||Is the database in simple or full recovery model?
Are you doing regular transaction log backups?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
news:9037CCBC-8515-44C0-9B51-64DA9B27F27C@.microsoft.com...
> Yes, I have the backlog file. Everyday midnight the fullbackup will be taken
> and stored.
>
> --
> Sakthivel
> SQL Server Developer
> INDIA
>
> "Uri Dimant" wrote:
>> Hi
>> Only if you have BACKUP LOG file issued during this period
>>
>> "Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
>> news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
>> > Hi im current using SQL 2000, data in three tables has got deleted on
>> > friday,
>> > in the mean time some data is also get added into that tables. after two
>> > days
>> > only i recognize the some data are deleted. No i need the deleted data and
>> > also the newly inserted data. what should i do?
>> > --
>> > Sakthivel
>> > SQL Server Developer
>> > INDIA
>>|||Thanks Tibor Karaszi and Uri
--
Sakthivel
SQL Server Developer
INDIA
"Tibor Karaszi" wrote:
> http://www.karaszi.com/SQLServer/info_restore_log_several_times.asp
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Sakthi" <Sakthi@.discussions.microsoft.com> wrote in message
> news:ABD49489-6EC5-475B-ABB9-6F77B5A86903@.microsoft.com...
> > Hi im current using SQL 2000, data in three tables has got deleted on friday,
> > in the mean time some data is also get added into that tables. after two days
> > only i recognize the some data are deleted. No i need the deleted data and
> > also the newly inserted data. what should i do?
> > --
> > Sakthivel
> > SQL Server Developer
> > INDIA
>
>
Sunday, March 11, 2012
Can stored procs run after handle is closed?
a time. I need to execute it from C++ code. The current code does:
nRet = SQLDIRECTEXEC(hstmt, "exec stored_proc", SQL_NTS)
followed shortly after by a
Free_Stmt_Handle(hstmt) //roughly
The stored proc currently dies with the statement handle, not fully
populating the table I need it to.
I need to either know when the proc finishes so I can close the handle after
that, or allow the proc to run independently on the server no matter what
the program is doing (is exited, etc), either of these is fine.
Please Help! Thanks in advance!
JosephI know nothing about C++, but if the proc runs for a very long time, it
might be better to implement it as a scheduled job. The client could
set a flag or insert a row into a 'queue' table, then you have a job
which runs every few minutes or whatever, and if the flag is set, it
then starts the stored proc.
Simon|||That is an interesting approach, ideally I would like to stay as far away
from the database as I can but it sounds like this could be the best way...
my stored procedure is running for the exact same number of instructions and
then dying, whereas if I run it via Query Analyzer it runs to completion.
I finally caved and just copy-pasted from Q.Analyzer into code to confirm
this. I will investigate a little further before taking that plunge.
Thanks
Joseph
"Simon Hayes" <sql@.hayes.ch> wrote in message
news:1112950699.762977.19700@.o13g2000cwo.googlegro ups.com...
>I know nothing about C++, but if the proc runs for a very long time, it
> might be better to implement it as a scheduled job. The client could
> set a flag or insert a row into a 'queue' table, then you have a job
> which runs every few minutes or whatever, and if the flag is set, it
> then starts the stored proc.
> Simon
Tuesday, February 14, 2012
Can not Update/Insert big5 characters in to sql server 2000
I have current current sql server 2000 database containing some columns in big5. To display these cols correctly, my asp.net nust have directive with CodePage="1252" ContentType="text/html;charset=BIG5". I can not update, or insert big5 character into these columns via .aspx page. I'm using .net framework 2.0.
Please help me, thanks a lot for any help.
The quick question is why are you using Latin code page to save data going into a Chinese alphabet database column?|||I really don't want to use that method, but it's a legacy database used with asp. We are migrating to asp.net while the asp version's still running. So, I can not change it. But your question may give me some ideas, thank you very much.
By the way, I've try the solution in http://forums.asp.net/518209/ShowPost.aspx, It seem to be ok. But there're some words becoming '?' after updated into database.
Any hints for me
|||I have read that thread but not everything the person said is correct so here is what you to avoid character conversion, in VS2005 the advanced option let you save your code with code pages any langauge, and you can also do encoding of the page when you save it. These will help you with the application layer but also make sure you use column level collation in the database because the Latin alphabet is 26 characters, the Chinese is more than 2000 characters, they cannot be passed arround as you want. The links below will help you. Hope this helps.
https://www.microsoft.co.ke/middleeast/msdn/arabicsupp.aspx#7
http://www.developerland.com/DotNet/General/99.aspx
|||ThankCaddre very much,
I'll read them. My important problem is: I cannot column change the 'level collation in the database' as you said because it's a legacy database. Actually, I don't know much 'bout it. I'll check with my DBA.
regards,
thanks a lot,
I'm using sql server 2000, and I'm trying to use UTF-8 charset only
|||You cannot use UTF-8 in SQL Server because SQL Server uses UC-S 2 a version of UTF-16 but here is a thread I helped someone do Chinese collation in SQL Server 2000. But you can do encoding in the application layer in UTF-8. Hope this helps.
http://forums.asp.net/1067798/ShowPost.aspx
Sunday, February 12, 2012
can not sql server
I have sql server 2000 enterpise edition running. when I want to see the
current activity on any of the SQLObjects and their counters from perfmon, I
have no problem seeing them and their values.BUT When I tried to create log
(from Counter Logs) for a specified time i get error like
Windows cannot load extensible counter DLL MSSQLSERVER, the first DWORD in
data section is the Windows error code.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Thanks
neckHi
This may help http://tinyurl.com/8h5dv
John
"neck via SQLMonster.com" wrote:
> Need some HELP
> I have sql server 2000 enterpise edition running. when I want to see the
> current activity on any of the SQLObjects and their counters from perfmon, I
> have no problem seeing them and their values.BUT When I tried to create log
> (from Counter Logs) for a specified time i get error like
> Windows cannot load extensible counter DLL MSSQLSERVER, the first DWORD in
> data section is the Windows error code.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Thanks
> neck
>|||Hi John,
It works. Thanks , YOU THE MAN
John Bell wrote:
>Hi
>This may help http://tinyurl.com/8h5dv
>John
>> Need some HELP
>[quoted text clipped - 12 lines]
>> neck
Message posted via http://www.sqlmonster.com