Showing posts with label running. Show all posts
Showing posts with label running. Show all posts

Thursday, March 29, 2012

data synchronization accross multiple servers running replication

Hello,

We have an environment with 7 servers that are running replication with one another and I'm wondering if there are any tools or experiences that any of you might have that may assist in the auditing of these servers. The data should be in synch accross the boards for all tables, but sometimes problems can arise such as replication not being set up properly, stored procedure's being out of synch, or data gliches etc.

In dealing with these issues we have an in-house written program which analises each table on each server and takes a snapshot and does column by column compare. We also have another program that will synch the data up (basically a delete/insert statement on the publisher). This process can take up to 3 weeks for our quarterly update of every table. I'm wondering if anybody has used any tools such as in SSIS or a third party tool and has done or is doing something similar to what we are doing now. If so, are there any tips you wouldn't mind sharing on how our process might be sped up?

Thanks,

Phil

In SQL Server 2005 there is a tablediff tool which you can use to compare the tables. You can also use the validation options built in replication to verify if the data are in sync.

Here are the validation options:

In transactional replication: sp_publication_validation

In merge replication: use the -validate parameter for merge agent

|||

Li,

Thanks for the reply. I believe we can use this. Do you know how well it does as far as speed is concerned? I think that's our main concern right now. Also, I'm reading a bit on the uitlity and I'm wondering how does it take a "snapshot" of a table on multiple servers and compare that. Also you wouldn't happen to have any syntax examples would you?

Thanks,

Phil

|||

Also, does anyone know if there is a way to get the utility to use windows authentication instead of coding the sa password in the utility statement?

Thanks,

Phil

Thursday, March 22, 2012

Data Retrieval

Our production environment has multiple SQL Servers installed and running and
i need to retrieve data from multiple different servers and databases. We
have established multiple Web Service DAL's to retrieve data for out
applications but i cannot see how to leverage that into Reporting Services.
Any ideas?
Thanks in advance
Goaler...Read up on data processing extentions. That should fullfill your needs.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"goaler" <goaler@.discussions.microsoft.com> wrote in message
news:92060CC9-0812-4BCB-A4D8-E69FF51C58D2@.microsoft.com...
> Our production environment has multiple SQL Servers installed and running
and
> i need to retrieve data from multiple different servers and databases. We
> have established multiple Web Service DAL's to retrieve data for out
> applications but i cannot see how to leverage that into Reporting
Services.
> Any ideas?
> Thanks in advance
> Goaler...|||Thaks Bruce
"Bruce L-C [MVP]" wrote:
> Read up on data processing extentions. That should fullfill your needs.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "goaler" <goaler@.discussions.microsoft.com> wrote in message
> news:92060CC9-0812-4BCB-A4D8-E69FF51C58D2@.microsoft.com...
> > Our production environment has multiple SQL Servers installed and running
> and
> > i need to retrieve data from multiple different servers and databases. We
> > have established multiple Web Service DAL's to retrieve data for out
> > applications but i cannot see how to leverage that into Reporting
> Services.
> >
> > Any ideas?
> >
> > Thanks in advance
> > Goaler...
>
>|||As a follow-up, I think i need a bit more clarification and understanding.
Here is the issue
I need to be able to read multiple predefined shared data sources from
within MS-Reporting Services, to avoid the configuration of connection
information out side of the product. Then to combine the result set and
return it into a new report object.
There must be a way to do this, the designer allows you to create multiple
data sources but you cannot join the data together. Additionally, linked
servers are not an option in my environment.
Thanks again,
"Bruce L-C [MVP]" wrote:
> Read up on data processing extentions. That should fullfill your needs.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "goaler" <goaler@.discussions.microsoft.com> wrote in message
> news:92060CC9-0812-4BCB-A4D8-E69FF51C58D2@.microsoft.com...
> > Our production environment has multiple SQL Servers installed and running
> and
> > i need to retrieve data from multiple different servers and databases. We
> > have established multiple Web Service DAL's to retrieve data for out
> > applications but i cannot see how to leverage that into Reporting
> Services.
> >
> > Any ideas?
> >
> > Thanks in advance
> > Goaler...
>
>|||You can not join datasets together.
Your clarification confused me, I thought you had web services that you
wanted to use to return the data? If so then data processing extensions are
the way to go.
Bruce Loehle-Conger
"goaler" <goaler@.discussions.microsoft.com> wrote in message
news:6C959BD5-C681-4E15-96EE-78EA69C282BA@.microsoft.com...
> As a follow-up, I think i need a bit more clarification and understanding.
> Here is the issue
> I need to be able to read multiple predefined shared data sources from
> within MS-Reporting Services, to avoid the configuration of connection
> information out side of the product. Then to combine the result set and
> return it into a new report object.
> There must be a way to do this, the designer allows you to create multiple
> data sources but you cannot join the data together. Additionally, linked
> servers are not an option in my environment.
> Thanks again,
> "Bruce L-C [MVP]" wrote:
>> Read up on data processing extentions. That should fullfill your needs.
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "goaler" <goaler@.discussions.microsoft.com> wrote in message
>> news:92060CC9-0812-4BCB-A4D8-E69FF51C58D2@.microsoft.com...
>> > Our production environment has multiple SQL Servers installed and
>> > running
>> and
>> > i need to retrieve data from multiple different servers and databases.
>> > We
>> > have established multiple Web Service DAL's to retrieve data for out
>> > applications but i cannot see how to leverage that into Reporting
>> Services.
>> >
>> > Any ideas?
>> >
>> > Thanks in advance
>> > Goaler...
>>

Data replication from MSSQL to MYSQL

Hi all.
I need to set a oneway replication of some data from MSSQL (running under
Windows 2000 server) to MYSQL (running under Linux).
Do you have some ideas to solve the problem?
Thank you
Luca"Luca" <NOSPAMprong2k@.hotmail.com> wrote in message
news:co4mja$df9$1@.atlantis.cu.mi.it...
> Hi all.
> I need to set a oneway replication of some data from MSSQL (running under
> Windows 2000 server) to MYSQL (running under Linux).
> Do you have some ideas to solve the problem?

You can probably do this via DTS

> Thank you
> Luca

Tuesday, March 20, 2012

Data Reader Problem

Hi All,

I got an error while running this code.There is already an open DataReader associated with this Command which must be closed first

How can I resolve the error?

protected void Page_Load(object sender, EventArgs e)
{
string sql;

SqlConnection Connection = new SqlConnection("ConnectionString");
sql = "SELECT PO_SE_Line_ID FROM PO_STOCK_QUERY_LINE_DETAILS WHERE TRANS_NUM ='TR-A-00-01-93'";

SqlCommand command = new SqlCommand(sql, Connection);
SqlDataReader Dr;
Connection.Open();
Dr = command.ExecuteReader();


while (Dr.Read())
{

sql = "SELECT SUPPLIER_ITEM_CODE,SUPPLIER_MAN_DESC,SUPPLIER_PAT_DESC,SUPPLIER_ITEM_DESC,SUPPLIER_ADDIT_DESC,SUPPLIER_SUGG_RETAIL FROM PO_STOCK_QUERY_LINE_DETAILS where TRANS_NUM ='TR-A-00-01-93' and PO_SE_Line_ID=" + Dr["PO_SE_Line_ID"].ToString();


SqlCommand command1 = new SqlCommand(sql, Connection);

SqlDataReader Dr1;

Dr1 = command1.ExecuteReader();

while(Dr1.Read())
{

Response.Write(Dr["SUPPLIER_ITEM_CODE"].ToString());
Response.Write("<br>");
Response.Write(Dr["SUPPLIER_MAN_DESC"].ToString());
Response.Write("<br>");
Response.Write(Dr["SUPPLIER_PAT_DESC"].ToString());
Response.Write("<br>");
Response.Write(Dr["SUPPLIER_ITEM_DESC"].ToString());
Response.Write("<br>");
Response.Write(Dr["SUPPLIER_ADDIT_DESC"].ToString());


}
Dr1.Close();


}
Dr.Close();

I tried to close the first data reader before opening the second data reader.still the error persists.

I suggest that you open a second data connection.

|||

Hi,

If I open a second connection it is showing the error there is already an open connection......

When I tried to close and open the connection Iam getting the error as Invalid attempt to read data when Datareader is closed.

|||

Hi

I guess that your facing problem because your using same sql string for both the command.

the first command already uses the string and you are trying to change that script while datareading, so obviously it gives error

so my suggestion is to use another string named like sql1, so your problem will be solved out.

I hope this will helpful to u...

|||

It's better create a stored procedure and return the results once. In your design, the performance could be a problem.

|||

Howdy!

I generally think nested queries within queries in the code is bad form (like running a query than gens a value to use in another recursion of queries).

I noticed that your first query runs against PO_STOCK_QUERY_LINE_DETAILS tables with a TRANS_NUM filter, then your 2nd query uses a field value from the first to run against the same table. I'm not sure what the design goal was, but it looks like you could simply run the query one time?

In other words, you're running a query againt a table to get a list of values to run against the same table, just run this query with a single data reader:

SELECT SUPPLIER_ITEM_CODE,SUPPLIER_MAN_DESC,SUPPLIER_PAT_DESC,SUPPLIER_ITEM_DESC,SUPPLIER_ADDIT_DESC,SUPPLIER_SUGG_RETAIL FROM PO_STOCK_QUERY_LINE_DETAILS where TRANS_NUM ='TR-A-00-01-93'

(If you wind up needing for example, a master/detail view, you'd be better off using a join or creating a relationship object in code after returning 2 tables via a dataset).

DT

Data pump.... and SQL Backup....

Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin
It depends. If your data pump is rapidly adding data, it is possible that
the log could fill before the backup is complete. Be sure to have "enough"
space in the transaction log while the full backup is taking place.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin
|||A full backup will actually do a mini log backup when it completes the full.
It marks in the log when it starts the full backup and when it ends. Then
it grabs any committed trans from the log in between that time and includes
that in the full backup file. So as long as the DTS finished before the
full backup finished it will be included when you restore it. If it didn't
finish in time but you did get another log backup after it finished you can
recover that as well.
Andrew J. Kelly SQL MVP
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>
|||Thank you for the reply.
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:eN669HzuFHA.460@.TK2MSFTNGP15.phx.gbl...
> It depends. If your data pump is rapidly adding data, it is possible that
> the log could fill before the backup is complete. Be sure to have
"enough"
> space in the transaction log while the full backup is taking place.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinpub.com
> .
> "Alwin Twain" <ATwain@.hotmail.com> wrote in message
> news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>

Data pump.... and SQL Backup....

Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
AlwinIt depends. If your data pump is rapidly adding data, it is possible that
the log could fill before the backup is complete. Be sure to have "enough"
space in the transaction log while the full backup is taking place.
--
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
.
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin|||A full backup will actually do a mini log backup when it completes the full.
It marks in the log when it starts the full backup and when it ends. Then
it grabs any committed trans from the log in between that time and includes
that in the full backup file. So as long as the DTS finished before the
full backup finished it will be included when you restore it. If it didn't
finish in time but you did get another log backup after it finished you can
recover that as well.
--
Andrew J. Kelly SQL MVP
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>|||Thank you for the reply.
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:eN669HzuFHA.460@.TK2MSFTNGP15.phx.gbl...
> It depends. If your data pump is rapidly adding data, it is possible that
> the log could fill before the backup is complete. Be sure to have
"enough"
> space in the transaction log while the full backup is taking place.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinpub.com
> .
> "Alwin Twain" <ATwain@.hotmail.com> wrote in message
> news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>sql

Data pump.... and SQL Backup....

Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
AlwinIt depends. If your data pump is rapidly adding data, it is possible that
the log could fill before the backup is complete. Be sure to have "enough"
space in the transaction log while the full backup is taking place.
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
.
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
Currently I am not considering the overlapping duration of database backup
and data load (using DTS). What happens if the full back is running on SQL
Server and at the same time the data is being pumped using a DTS package?
Any advice? SQL 2K.
Thank you,
Alwin|||A full backup will actually do a mini log backup when it completes the full.
It marks in the log when it starts the full backup and when it ends. Then
it grabs any committed trans from the log in between that time and includes
that in the full backup file. So as long as the DTS finished before the
full backup finished it will be included when you restore it. If it didn't
finish in time but you did get another log backup after it finished you can
recover that as well.
Andrew J. Kelly SQL MVP
"Alwin Twain" <ATwain@.hotmail.com> wrote in message
news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>|||Thank you for the reply.
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:eN669HzuFHA.460@.TK2MSFTNGP15.phx.gbl...
> It depends. If your data pump is rapidly adding data, it is possible that
> the log could fill before the backup is complete. Be sure to have
"enough"
> space in the transaction log while the full backup is taking place.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinpub.com
> .
> "Alwin Twain" <ATwain@.hotmail.com> wrote in message
> news:uvyvTAzuFHA.992@.TK2MSFTNGP12.phx.gbl...
> Currently I am not considering the overlapping duration of database backup
> and data load (using DTS). What happens if the full back is running on SQL
> Server and at the same time the data is being pumped using a DTS package?
> Any advice? SQL 2K.
> Thank you,
> Alwin
>

Monday, March 19, 2012

Data Processing Extension & SQLClient

I have a business requirement that requires implementing column "masks"
depending on the user running the report. It seems as if a DPE would be my
best solution. Ie. I propose modifying the DataReader to blank dataset
columns in specific circumstances. To prove my concept I would need to
experiment with an extension the delivers the same functionality of the
supplied SQLClient extension. However all the examples that I can find are
based on XML files, event log readers etc. etc. Has anyone got code for an
extension that just reads a DB!Hi LiamD,
You can mask some of the fields using multiples alternatives, using or not
DPE;
1.- Stored Procedures (w/o DPE)
http://www.biasecurities.com/blogs/jim/archive/2004/04/22/453.aspx
2.- Web Services (w DPE) http://www.rdlcomponents.com
3.- Plain DPE http://weblogs.asp.net/gavinjoyce/archive/2004/01/29/64339.aspx
And you can skip the whole XML world
Thanks
Jerry
"LiamD" wrote:
> I have a business requirement that requires implementing column "masks"
> depending on the user running the report. It seems as if a DPE would be my
> best solution. Ie. I propose modifying the DataReader to blank dataset
> columns in specific circumstances. To prove my concept I would need to
> experiment with an extension the delivers the same functionality of the
> supplied SQLClient extension. However all the examples that I can find are
> based on XML files, event log readers etc. etc. Has anyone got code for an
> extension that just reads a DB!|||Jerry
Thanks for your reply. Unfortunately none of the DPE's you reference help -
i.e. None of the open an actual DB connection to run the sql from the
commandtext. This is what I want to do.
Liam|||Another alternative is write a SQL Extended SP and use the XML, for example
http://www.rdlcomponents.com/EXSP/default.aspx
You may find other ways to use XML or WS in SQL as well.
Jerry
"LiamD" wrote:
> Jerry
> Thanks for your reply. Unfortunately none of the DPE's you reference help -
> i.e. None of the open an actual DB connection to run the sql from the
> commandtext. This is what I want to do.
> Liam
>

Data on report different than what is in result set from stored pr

I am running my report in the IDE. When I execute the stored proc from the
data tab, the result set has the correct data. When I Preview the report,
the data on the report is different from what is in the result set. I have
made sure I used the same data in the report parameters that I used in the
query parameters. What causes this problem?
Thanks.GO to the properties of the field... It is probably set as a "general',
change the property to date, and set the format... that should fix your
problem
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Deb" <Deb@.discussions.microsoft.com> wrote in message
news:BACEB8DD-D958-479D-A5B8-F2FDA24C085E@.microsoft.com...
>I am running my report in the IDE. When I execute the stored proc from the
> data tab, the result set has the correct data. When I Preview the report,
> the data on the report is different from what is in the result set. I
> have
> made sure I used the same data in the report parameters that I used in the
> query parameters. What causes this problem?
> Thanks.|||It is not the date but the actual data. For example, the stored proc returns
a number that is 42984438 but when on the report I see 45711664. I have
deleted all .data files and I have changed the RSReportDesigner.config file
to have
<Add Key="CacheDataForPreview" Value="false" />. Still I am getting wrong
data from somewhere. I do no manipulation of the data in the report. All my
fields are just dragged and dropped into a table. Where is it getting the
data from?
"Wayne Snyder" wrote:
> GO to the properties of the field... It is probably set as a "general',
> change the property to date, and set the format... that should fix your
> problem
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> www.mariner-usa.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
> "Deb" <Deb@.discussions.microsoft.com> wrote in message
> news:BACEB8DD-D958-479D-A5B8-F2FDA24C085E@.microsoft.com...
> >I am running my report in the IDE. When I execute the stored proc from the
> > data tab, the result set has the correct data. When I Preview the report,
> > the data on the report is different from what is in the result set. I
> > have
> > made sure I used the same data in the report parameters that I used in the
> > query parameters. What causes this problem?
> >
> > Thanks.
>
>|||I am experiencing the same problem. I have posted a question titled "Columns
Not Consistent With Query". I am also using a SP with no manipulation of the
data. I found that the "incorrect" data in the column is always the same
value of the column in the row right above it.
If anyone responds to your question with a solution, would you please let me
know at danhaynes42@.hotmail.com and I will do the same for you. You could
send me your email to make this easier. Thanks. Dan Haynes.
"Deb" wrote:
> It is not the date but the actual data. For example, the stored proc returns
> a number that is 42984438 but when on the report I see 45711664. I have
> deleted all .data files and I have changed the RSReportDesigner.config file
> to have
> <Add Key="CacheDataForPreview" Value="false" />. Still I am getting wrong
> data from somewhere. I do no manipulation of the data in the report. All my
> fields are just dragged and dropped into a table. Where is it getting the
> data from?
> "Wayne Snyder" wrote:
> > GO to the properties of the field... It is probably set as a "general',
> > change the property to date, and set the format... that should fix your
> > problem
> >
> > --
> > Wayne Snyder, MCDBA, SQL Server MVP
> > Mariner, Charlotte, NC
> > www.mariner-usa.com
> > (Please respond only to the newsgroups.)
> >
> > I support the Professional Association of SQL Server (PASS) and it's
> > community of SQL Server professionals.
> > www.sqlpass.org
> >
> > "Deb" <Deb@.discussions.microsoft.com> wrote in message
> > news:BACEB8DD-D958-479D-A5B8-F2FDA24C085E@.microsoft.com...
> > >I am running my report in the IDE. When I execute the stored proc from the
> > > data tab, the result set has the correct data. When I Preview the report,
> > > the data on the report is different from what is in the result set. I
> > > have
> > > made sure I used the same data in the report parameters that I used in the
> > > query parameters. What causes this problem?
> > >
> > > Thanks.
> >
> >
> >|||I am having the same problem with the pile of crap (Reporting
Services). Any one figured this gem out ?|||I am having the same problem with the pile of crap (Reporting
Services). Any one figured this gem out ?|||I have got to tell you that this is a little embarassing. My problem ended up
being that somehow the aggregate "first()" was in effect on the data in the
column that appeared to be wrong. This is why the result directly from the SP
was always correct and the result in the report was only wrong when a sort
order was selected that had a different value in the first row. From Deb's
description, this could also fit her description of the problem, but she is
probably more observant than I.
I will say that I have no idea how the aggregate "first()" got on the
column. There were 9 detail columns in the report and this is the only column
that had this done.
Dave, I understand your frustration because I was feeling it when it looked
like I had a really bizarre internal problem and no one was responding to my
postings. Not to sound like a cheerleader, but I have been extreemly
impressed with V1 of RS, even if it is a real bitch to get to run on a domain
controller.
I doubt this was any help, but I sincerely hope so.
"Dave" wrote:
> I am having the same problem with the pile of crap (Reporting
> Services). Any one figured this gem out ?
>

Sunday, March 11, 2012

Data not updating without error I think.

Sorry if this is a dumb question but I am just learning ASP.NET. My database is on a server running SQL Server 2000 and I have used Dreamweaver to build sites. I am trying to convert to ASP.NET.

The problem I am having is that data is not updating when I change it in a GridView, DataList, etc. I have tried including the user name an password in the connection string without success. What did I miss?

connectionString

="Data Source=<ServerName>;Initial Catalog=<DatabaseName>;Integrated Security=True;Uid=sa;Pwd=<Password>;"

This is the string I use in Dreamweaver which works;
Driver={SQL Server};Server=<ServerName>;Database=<DatabaseName>;Uid=sa;Pwd=<Password>;

What are you doing to try and save the data? Please show your code.|||

I got my answer. I had to use SQL Server Authentication. Again I am sorry. I should have known this from my dreamweaver/sql site. My brain must have been fried towards the end of last week.

This brings up another question. Why did I not get some kind of error that the record could not be updated due to whatever?

Have a great one!

Data not appearing in report at runtime

Hi all,

I am attempting to create and view a simple Crystal Report in VB.net and am running into some difficulty.

- First of all I add my Microsoft Access database as a datasource.
- Then I create a Crystal Report within VB.Net using the fields from my datasource e.g. MyReport.rpt
- Finally I create a form with a Crystal ReportViewer control on it and set the ReportSource to my new report, MyReport.rpt

However when I run my project the report appears but the data does not display.

I have tried looking at a couple of tutorials but haven't been able to figure it out, I'm guessing that I need to run a piece of code at runtime or something for the data to display?

Can anyone please help?

Many thanks in advance.

LeeDid you refresh the report source using your program?|||Hi there,

How do I carry that out?

Many thanks
Lee|||Hi there,

How do I carry that out?

Many thanks
Lee
Just call the method of CrystalReportViewer;
i.e.
CrystalReportViewer CR
CR.RefreshReport()

Thursday, March 8, 2012

Data missing after transaction committed

We have discovered a very strange anomaly in one of our databases yesterday.
The database is being run on SQL 2000, and has been running problem free for
about 5 years, until an isolated event yesterday.
In simple terms, a transaction that has been committed is "missing" from the
database.
The normal steps for our transaction are as follows.
1. Begin a transaction.
2. Update some records in some tables.
3. Write a new record to the database in another table.
4. If all successful, Commit transaction. Read the data from written in step
3, and print out a hard copy. Included in the hardcopy is the ID field
(primary Key) of the row written in step 3.
5. If any step fails, roll back transaction, give message to the user.
Yesterday, we had a printout generated. The printout happens after the
commit, is a totally separate step, and is read from the data that is
written in step 3. At some point shortly there after, that record has
"disappeared" from the database. (Also, the Updated rows from step 2 were
not updated like they should be. They looked as they would have if the
transaction had never been committed.)
There is no way for that record to be deleted by the user, and I can say
with certainty a sysadmin didn't delete it, as I am the only user with admin
rights to do something like that, and I know I didn't execute a delete on
that row (let alone un-do the updates in step 2 above).
Now, there is where it gets more interesting. At around the same this
happened, we had blocking situation. Essencially, another transaction had
started, and locked a row on an unrelated table. That users network
connection went down before his transaction could be completed. Since the
lock being placed on the table was affecting other users (who needed to read
from that table) we killed the process of that connection.
Now, my questions are:
1. It seems like more than a coincidence that these 2 events happened at the
same time, but they happened at completly different and unrelated tables.
Can anyone think of a reason something like this might happen?
2. How could this have happened at all? I was under the assumption that once
a transaction was committed, there was no way it could not be in the
database?
3. Is there anything I can do to prevent this from happening in the future?
Thanks for any suggestions.
-Ryan
> 1. It seems like more than a coincidence that these 2 events happened at
> the same time, but they happened at completly different and unrelated
> tables. Can anyone think of a reason something like this might happen?
Does your application maintain persistent database connections? If that is
the case, consider that the blocking episode could have caused a client-side
timeout. The transaction that was in progress when the timeout occurred
might not have gotten rolled back and all subsequent work done on that
connection was performed in the context of a transaction that was never
committed.

> 2. How could this have happened at all? I was under the assumption that
> once a transaction was committed, there was no way it could not be in the
> database?
A committed transaction is durable. However, note that COMMIT only
decrements @.@.TRANCOUNT; the transaction is not durable until @.@.TRANCOUNT
reaches zero.

> 3. Is there anything I can do to prevent this from happening in the
> future?
One method is to SET XACT_ABORT ON, which will roll back the transaction in
the event of a timeout. This is especially important when you issue BEGIN
TRAN in stored procedure code. I also believe some client APIs have the
smarts to issue a ROLLBACK following a detected exception as long as the
transaction was started via the API rather than a Transact-SQL BEGIN TRAN.
Hope this helps.
Dan Guzman
SQL Server MVP
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:ObACMuiVHHA.4832@.TK2MSFTNGP04.phx.gbl...
> We have discovered a very strange anomaly in one of our databases
> yesterday.
> The database is being run on SQL 2000, and has been running problem free
> for about 5 years, until an isolated event yesterday.
> In simple terms, a transaction that has been committed is "missing" from
> the database.
> The normal steps for our transaction are as follows.
> 1. Begin a transaction.
> 2. Update some records in some tables.
> 3. Write a new record to the database in another table.
> 4. If all successful, Commit transaction. Read the data from written in
> step 3, and print out a hard copy. Included in the hardcopy is the ID
> field (primary Key) of the row written in step 3.
> 5. If any step fails, roll back transaction, give message to the user.
> Yesterday, we had a printout generated. The printout happens after the
> commit, is a totally separate step, and is read from the data that is
> written in step 3. At some point shortly there after, that record has
> "disappeared" from the database. (Also, the Updated rows from step 2 were
> not updated like they should be. They looked as they would have if the
> transaction had never been committed.)
> There is no way for that record to be deleted by the user, and I can say
> with certainty a sysadmin didn't delete it, as I am the only user with
> admin rights to do something like that, and I know I didn't execute a
> delete on that row (let alone un-do the updates in step 2 above).
> Now, there is where it gets more interesting. At around the same this
> happened, we had blocking situation. Essencially, another transaction had
> started, and locked a row on an unrelated table. That users network
> connection went down before his transaction could be completed. Since the
> lock being placed on the table was affecting other users (who needed to
> read from that table) we killed the process of that connection.
> Now, my questions are:
> 1. It seems like more than a coincidence that these 2 events happened at
> the same time, but they happened at completly different and unrelated
> tables. Can anyone think of a reason something like this might happen?
> 2. How could this have happened at all? I was under the assumption that
> once a transaction was committed, there was no way it could not be in the
> database?
> 3. Is there anything I can do to prevent this from happening in the
> future?
> Thanks for any suggestions.
> -Ryan
>

Data missing after transaction committed

We have discovered a very strange anomaly in one of our databases yesterday.
The database is being run on SQL 2000, and has been running problem free for
about 5 years, until an isolated event yesterday.
In simple terms, a transaction that has been committed is "missing" from the
database.
The normal steps for our transaction are as follows.
1. Begin a transaction.
2. Update some records in some tables.
3. Write a new record to the database in another table.
4. If all successful, Commit transaction. Read the data from written in step
3, and print out a hard copy. Included in the hardcopy is the ID field
(primary Key) of the row written in step 3.
5. If any step fails, roll back transaction, give message to the user.
Yesterday, we had a printout generated. The printout happens after the
commit, is a totally separate step, and is read from the data that is
written in step 3. At some point shortly there after, that record has
"disappeared" from the database. (Also, the Updated rows from step 2 were
not updated like they should be. They looked as they would have if the
transaction had never been committed.)
There is no way for that record to be deleted by the user, and I can say
with certainty a sysadmin didn't delete it, as I am the only user with admin
rights to do something like that, and I know I didn't execute a delete on
that row (let alone un-do the updates in step 2 above).
Now, there is where it gets more interesting. At around the same this
happened, we had blocking situation. Essencially, another transaction had
started, and locked a row on an unrelated table. That users network
connection went down before his transaction could be completed. Since the
lock being placed on the table was affecting other users (who needed to read
from that table) we killed the process of that connection.
Now, my questions are:
1. It seems like more than a coincidence that these 2 events happened at the
same time, but they happened at completly different and unrelated tables.
Can anyone think of a reason something like this might happen?
2. How could this have happened at all? I was under the assumption that once
a transaction was committed, there was no way it could not be in the
database?
3. Is there anything I can do to prevent this from happening in the future?
Thanks for any suggestions.
-Ryan> 1. It seems like more than a coincidence that these 2 events happened at
> the same time, but they happened at completly different and unrelated
> tables. Can anyone think of a reason something like this might happen?
Does your application maintain persistent database connections? If that is
the case, consider that the blocking episode could have caused a client-side
timeout. The transaction that was in progress when the timeout occurred
might not have gotten rolled back and all subsequent work done on that
connection was performed in the context of a transaction that was never
committed.

> 2. How could this have happened at all? I was under the assumption that
> once a transaction was committed, there was no way it could not be in the
> database?
A committed transaction is durable. However, note that COMMIT only
decrements @.@.TRANCOUNT; the transaction is not durable until @.@.TRANCOUNT
reaches zero.

> 3. Is there anything I can do to prevent this from happening in the
> future?
One method is to SET XACT_ABORT ON, which will roll back the transaction in
the event of a timeout. This is especially important when you issue BEGIN
TRAN in stored procedure code. I also believe some client APIs have the
smarts to issue a ROLLBACK following a detected exception as long as the
transaction was started via the API rather than a Transact-SQL BEGIN TRAN.
Hope this helps.
Dan Guzman
SQL Server MVP
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:ObACMuiVHHA.4832@.TK2MSFTNGP04.phx.gbl...
> We have discovered a very strange anomaly in one of our databases
> yesterday.
> The database is being run on SQL 2000, and has been running problem free
> for about 5 years, until an isolated event yesterday.
> In simple terms, a transaction that has been committed is "missing" from
> the database.
> The normal steps for our transaction are as follows.
> 1. Begin a transaction.
> 2. Update some records in some tables.
> 3. Write a new record to the database in another table.
> 4. If all successful, Commit transaction. Read the data from written in
> step 3, and print out a hard copy. Included in the hardcopy is the ID
> field (primary Key) of the row written in step 3.
> 5. If any step fails, roll back transaction, give message to the user.
> Yesterday, we had a printout generated. The printout happens after the
> commit, is a totally separate step, and is read from the data that is
> written in step 3. At some point shortly there after, that record has
> "disappeared" from the database. (Also, the Updated rows from step 2 were
> not updated like they should be. They looked as they would have if the
> transaction had never been committed.)
> There is no way for that record to be deleted by the user, and I can say
> with certainty a sysadmin didn't delete it, as I am the only user with
> admin rights to do something like that, and I know I didn't execute a
> delete on that row (let alone un-do the updates in step 2 above).
> Now, there is where it gets more interesting. At around the same this
> happened, we had blocking situation. Essencially, another transaction had
> started, and locked a row on an unrelated table. That users network
> connection went down before his transaction could be completed. Since the
> lock being placed on the table was affecting other users (who needed to
> read from that table) we killed the process of that connection.
> Now, my questions are:
> 1. It seems like more than a coincidence that these 2 events happened at
> the same time, but they happened at completly different and unrelated
> tables. Can anyone think of a reason something like this might happen?
> 2. How could this have happened at all? I was under the assumption that
> once a transaction was committed, there was no way it could not be in the
> database?
> 3. Is there anything I can do to prevent this from happening in the
> future?
> Thanks for any suggestions.
> -Ryan
>

Data missing after transaction committed

We have discovered a very strange anomaly in one of our databases yesterday.
The database is being run on SQL 2000, and has been running problem free for
about 5 years, until an isolated event yesterday.
In simple terms, a transaction that has been committed is "missing" from the
database.
The normal steps for our transaction are as follows.
1. Begin a transaction.
2. Update some records in some tables.
3. Write a new record to the database in another table.
4. If all successful, Commit transaction. Read the data from written in step
3, and print out a hard copy. Included in the hardcopy is the ID field
(primary Key) of the row written in step 3.
5. If any step fails, roll back transaction, give message to the user.
Yesterday, we had a printout generated. The printout happens after the
commit, is a totally separate step, and is read from the data that is
written in step 3. At some point shortly there after, that record has
"disappeared" from the database. (Also, the Updated rows from step 2 were
not updated like they should be. They looked as they would have if the
transaction had never been committed.)
There is no way for that record to be deleted by the user, and I can say
with certainty a sysadmin didn't delete it, as I am the only user with admin
rights to do something like that, and I know I didn't execute a delete on
that row (let alone un-do the updates in step 2 above).
Now, there is where it gets more interesting. At around the same this
happened, we had blocking situation. Essencially, another transaction had
started, and locked a row on an unrelated table. That users network
connection went down before his transaction could be completed. Since the
lock being placed on the table was affecting other users (who needed to read
from that table) we killed the process of that connection.
Now, my questions are:
1. It seems like more than a coincidence that these 2 events happened at the
same time, but they happened at completly different and unrelated tables.
Can anyone think of a reason something like this might happen?
2. How could this have happened at all? I was under the assumption that once
a transaction was committed, there was no way it could not be in the
database?
3. Is there anything I can do to prevent this from happening in the future?
Thanks for any suggestions.
-Ryan> 1. It seems like more than a coincidence that these 2 events happened at
> the same time, but they happened at completly different and unrelated
> tables. Can anyone think of a reason something like this might happen?
Does your application maintain persistent database connections? If that is
the case, consider that the blocking episode could have caused a client-side
timeout. The transaction that was in progress when the timeout occurred
might not have gotten rolled back and all subsequent work done on that
connection was performed in the context of a transaction that was never
committed.
> 2. How could this have happened at all? I was under the assumption that
> once a transaction was committed, there was no way it could not be in the
> database?
A committed transaction is durable. However, note that COMMIT only
decrements @.@.TRANCOUNT; the transaction is not durable until @.@.TRANCOUNT
reaches zero.
> 3. Is there anything I can do to prevent this from happening in the
> future?
One method is to SET XACT_ABORT ON, which will roll back the transaction in
the event of a timeout. This is especially important when you issue BEGIN
TRAN in stored procedure code. I also believe some client APIs have the
smarts to issue a ROLLBACK following a detected exception as long as the
transaction was started via the API rather than a Transact-SQL BEGIN TRAN.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:ObACMuiVHHA.4832@.TK2MSFTNGP04.phx.gbl...
> We have discovered a very strange anomaly in one of our databases
> yesterday.
> The database is being run on SQL 2000, and has been running problem free
> for about 5 years, until an isolated event yesterday.
> In simple terms, a transaction that has been committed is "missing" from
> the database.
> The normal steps for our transaction are as follows.
> 1. Begin a transaction.
> 2. Update some records in some tables.
> 3. Write a new record to the database in another table.
> 4. If all successful, Commit transaction. Read the data from written in
> step 3, and print out a hard copy. Included in the hardcopy is the ID
> field (primary Key) of the row written in step 3.
> 5. If any step fails, roll back transaction, give message to the user.
> Yesterday, we had a printout generated. The printout happens after the
> commit, is a totally separate step, and is read from the data that is
> written in step 3. At some point shortly there after, that record has
> "disappeared" from the database. (Also, the Updated rows from step 2 were
> not updated like they should be. They looked as they would have if the
> transaction had never been committed.)
> There is no way for that record to be deleted by the user, and I can say
> with certainty a sysadmin didn't delete it, as I am the only user with
> admin rights to do something like that, and I know I didn't execute a
> delete on that row (let alone un-do the updates in step 2 above).
> Now, there is where it gets more interesting. At around the same this
> happened, we had blocking situation. Essencially, another transaction had
> started, and locked a row on an unrelated table. That users network
> connection went down before his transaction could be completed. Since the
> lock being placed on the table was affecting other users (who needed to
> read from that table) we killed the process of that connection.
> Now, my questions are:
> 1. It seems like more than a coincidence that these 2 events happened at
> the same time, but they happened at completly different and unrelated
> tables. Can anyone think of a reason something like this might happen?
> 2. How could this have happened at all? I was under the assumption that
> once a transaction was committed, there was no way it could not be in the
> database?
> 3. Is there anything I can do to prevent this from happening in the
> future?
> Thanks for any suggestions.
> -Ryan
>

Data missing

Hey I'm really really new to crystal reports and I'm working on setting up a new paramater field and I'm running into some issues. The table for some reason is not showing all the data it should meaning its missing some records. When I go into SQL manager the data all seems to be there and in order but when I pull the same data into crystal part is missing. I looked at the way I had the tables linked to see if that would have something to do with the data is coming up but from the best I can tell everything looks fine. Has anyone noticed similar issues with a report if so what steps did you take to hunt down the problem?Did you use any Selection Formulas?
If so remove them
Also Do Verify Database

Data Mining slicing / filtering

Is there a way to dynamically slice / filter data when running a data mining query?

(Dynamically means - not deployed as part of the structure)

For example - I’d like find associations to products sold in different geographic locations.

Does the answer differ if the structure is based on a cube or on a rational DB?

The answer is no - the counts of product associations are the counts for the products with which the model was changed. You would have to create specific structure for each subset of the data you would want to model.

You may be able to use many-many dimensions in OLAP and then provide the appropriate slice to see association counts by region, but you won't have a mining model that can perform predictions, and you will only see pairwise counts.

Data Mining slicing / filtering

Is there a way to dynamically slice / filter data when running a data mining query?

(Dynamically means - not deployed as part of the structure)

For example - I’d like find associations to products sold in different geographic locations.

Does the answer differ if the structure is based on a cube or on a rational DB?

The answer is no - the counts of product associations are the counts for the products with which the model was changed. You would have to create specific structure for each subset of the data you would want to model.

You may be able to use many-many dimensions in OLAP and then provide the appropriate slice to see association counts by region, but you won't have a mining model that can perform predictions, and you will only see pairwise counts.

Friday, February 24, 2012

Data Loss?

Hi,
I'm sure this is a very broad question, but what could cause roughly
125,000 rows in one table to disappear over night. I'm running SQL server
7. I've done multiple virus scans...all clean...although mydoom was
previously found and quarantined.
Could someone give me at least a starting point on troubleshooting this.
The same thing happened to the same table about 3 months ago. At that time,
I figured it was some strange fluke, but now that it has happened again, it
is rather disconcerting.
Any help would be appreciated!!
Thanks,
DanHave you used a SQL log examination tool (Log P.I., Lumigent Log Explorer)
to see if somebody issued a DELETE statement?
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Dan B" <none@.none.com> wrote in message
news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
> Hi,
> I'm sure this is a very broad question, but what could cause roughly
> 125,000 rows in one table to disappear over night. I'm running SQL server
> 7. I've done multiple virus scans...all clean...although mydoom was
> previously found and quarantined.
> Could someone give me at least a starting point on troubleshooting this.
> The same thing happened to the same table about 3 months ago. At that
time,
> I figured it was some strange fluke, but now that it has happened again,
it
> is rather disconcerting.
> Any help would be appreciated!!
> Thanks,
> Dan
>|||Dan B wrote:
> Hi,
> I'm sure this is a very broad question, but what could cause roughly
> 125,000 rows in one table to disappear over night. I'm running SQL
> server 7. I've done multiple virus scans...all clean...although
> mydoom was
> previously found and quarantined.
> Could someone give me at least a starting point on troubleshooting
> this. The same thing happened to the same table about 3 months ago. At
> that time, I figured it was some strange fluke, but now that it
> has happened again, it is rather disconcerting.
> Any help would be appreciated!!
> Thanks,
> Dan
Make sure there are no running jobs in SQL Agent. Change all your
passwords on all logins that have delete access to the table or are in
the sysadmin group.
--
David Gugick
Imceda Software
www.imceda.com|||"Dan B" <none@.none.com> wrote in message
news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
> Hi,
> I'm sure this is a very broad question, but what could cause roughly
> 125,000 rows in one table to disappear over night. I'm running SQL server
> 7. I've done multiple virus scans...all clean...although mydoom was
> previously found and quarantined.
> Could someone give me at least a starting point on troubleshooting this.
> The same thing happened to the same table about 3 months ago. At that
time,
> I figured it was some strange fluke, but now that it has happened again,
it
> is rather disconcerting.
> Any help would be appreciated!!
> Thanks,
> Dan
>
Perhaps you could add a trigger to the table that would write diagnostic
information to a logging table, such as time-of-deletion and possibly
information about the user that the deletion SQL was running as.
Regards,
Simon|||I have a evaluation copy of Lumigent Log Explorer, which I used to the
extent the evaluation allows. I was able to when the deleting took place,
and the SPID of the user or computer it came from, but apparently SPIDs
change so whoever had that number on the day the deletions occurred has a
different SPID now. It looks like the 125,000 rows where deleted within
about 10 minutes. People who use the application that is tied to the
database cannot delete anything. I just can't see how this
happened....again.
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:OSKCb0I3EHA.3000@.TK2MSFTNGP15.phx.gbl...
> Have you used a SQL log examination tool (Log P.I., Lumigent Log Explorer)
> to see if somebody issued a DELETE statement?
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
> "Dan B" <none@.none.com> wrote in message
> news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
>> Hi,
>> I'm sure this is a very broad question, but what could cause roughly
>> 125,000 rows in one table to disappear over night. I'm running SQL
>> server
>> 7. I've done multiple virus scans...all clean...although mydoom was
>> previously found and quarantined.
>> Could someone give me at least a starting point on troubleshooting this.
>> The same thing happened to the same table about 3 months ago. At that
> time,
>> I figured it was some strange fluke, but now that it has happened again,
> it
>> is rather disconcerting.
>> Any help would be appreciated!!
>> Thanks,
>> Dan
>>
>|||Lumigent Log Explorer will record logins and SPIDS so you can see extended
information about who and where the changes came from. If you know when it
is happening, you can run Profiler to grab complete information.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Dan B" <none@.none.com> wrote in message
news:%23O9sqnJ3EHA.3452@.TK2MSFTNGP14.phx.gbl...
> I have a evaluation copy of Lumigent Log Explorer, which I used to the
> extent the evaluation allows. I was able to when the deleting took place,
> and the SPID of the user or computer it came from, but apparently SPIDs
> change so whoever had that number on the day the deletions occurred has a
> different SPID now. It looks like the 125,000 rows where deleted within
> about 10 minutes. People who use the application that is tied to the
> database cannot delete anything. I just can't see how this
> happened....again.
>
>
> "Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
> news:OSKCb0I3EHA.3000@.TK2MSFTNGP15.phx.gbl...
> > Have you used a SQL log examination tool (Log P.I., Lumigent Log
Explorer)
> > to see if somebody issued a DELETE statement?
> >
> > --
> > Geoff N. Hiten
> > Microsoft SQL Server MVP
> > Senior Database Administrator
> > Careerbuilder.com
> >
> > I support the Professional Association for SQL Server
> > www.sqlpass.org
> >
> > "Dan B" <none@.none.com> wrote in message
> > news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
> >> Hi,
> >> I'm sure this is a very broad question, but what could cause roughly
> >> 125,000 rows in one table to disappear over night. I'm running SQL
> >> server
> >> 7. I've done multiple virus scans...all clean...although mydoom was
> >> previously found and quarantined.
> >>
> >> Could someone give me at least a starting point on troubleshooting
this.
> >> The same thing happened to the same table about 3 months ago. At that
> > time,
> >> I figured it was some strange fluke, but now that it has happened
again,
> > it
> >> is rather disconcerting.
> >>
> >> Any help would be appreciated!!
> >>
> >> Thanks,
> >> Dan
> >>
> >>
> >
> >
>|||You could turn on event auditing. Also, is the system secured? You don't
need your app to connect to the system and delete information. MS Access,
SS Query Analyzer, MS Query, etc., etc.
Is the application using Windows Authentication or SQL Server logins?
Logins per user or one application login? Is the password well known? What
is the application security level on the server and within the database? Is
the SA account secured? Who knows the password?
I'd be running audit traces pretty heavily until you found out who has been
connecting to the system directly.
Sincerely,
Anthony Thomas
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:uNkFfqJ3EHA.3416@.TK2MSFTNGP09.phx.gbl...
Lumigent Log Explorer will record logins and SPIDS so you can see extended
information about who and where the changes came from. If you know when it
is happening, you can run Profiler to grab complete information.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Dan B" <none@.none.com> wrote in message
news:%23O9sqnJ3EHA.3452@.TK2MSFTNGP14.phx.gbl...
> I have a evaluation copy of Lumigent Log Explorer, which I used to the
> extent the evaluation allows. I was able to when the deleting took place,
> and the SPID of the user or computer it came from, but apparently SPIDs
> change so whoever had that number on the day the deletions occurred has a
> different SPID now. It looks like the 125,000 rows where deleted within
> about 10 minutes. People who use the application that is tied to the
> database cannot delete anything. I just can't see how this
> happened....again.
>
>
> "Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
> news:OSKCb0I3EHA.3000@.TK2MSFTNGP15.phx.gbl...
> > Have you used a SQL log examination tool (Log P.I., Lumigent Log
Explorer)
> > to see if somebody issued a DELETE statement?
> >
> > --
> > Geoff N. Hiten
> > Microsoft SQL Server MVP
> > Senior Database Administrator
> > Careerbuilder.com
> >
> > I support the Professional Association for SQL Server
> > www.sqlpass.org
> >
> > "Dan B" <none@.none.com> wrote in message
> > news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
> >> Hi,
> >> I'm sure this is a very broad question, but what could cause roughly
> >> 125,000 rows in one table to disappear over night. I'm running SQL
> >> server
> >> 7. I've done multiple virus scans...all clean...although mydoom was
> >> previously found and quarantined.
> >>
> >> Could someone give me at least a starting point on troubleshooting
this.
> >> The same thing happened to the same table about 3 months ago. At that
> > time,
> >> I figured it was some strange fluke, but now that it has happened
again,
> > it
> >> is rather disconcerting.
> >>
> >> Any help would be appreciated!!
> >>
> >> Thanks,
> >> Dan
> >>
> >>
> >
> >
>

Data Loss?

Hi,
I'm sure this is a very broad question, but what could cause roughly
125,000 rows in one table to disappear over night. I'm running SQL server
7. I've done multiple virus scans...all clean...although mydoom was
previously found and quarantined.
Could someone give me at least a starting point on troubleshooting this.
The same thing happened to the same table about 3 months ago. At that time,
I figured it was some strange fluke, but now that it has happened again, it
is rather disconcerting.
Any help would be appreciated!!
Thanks,
Dan
Have you used a SQL log examination tool (Log P.I., Lumigent Log Explorer)
to see if somebody issued a DELETE statement?
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Dan B" <none@.none.com> wrote in message
news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
> Hi,
> I'm sure this is a very broad question, but what could cause roughly
> 125,000 rows in one table to disappear over night. I'm running SQL server
> 7. I've done multiple virus scans...all clean...although mydoom was
> previously found and quarantined.
> Could someone give me at least a starting point on troubleshooting this.
> The same thing happened to the same table about 3 months ago. At that
time,
> I figured it was some strange fluke, but now that it has happened again,
it
> is rather disconcerting.
> Any help would be appreciated!!
> Thanks,
> Dan
>
|||Dan B wrote:
> Hi,
> I'm sure this is a very broad question, but what could cause roughly
> 125,000 rows in one table to disappear over night. I'm running SQL
> server 7. I've done multiple virus scans...all clean...although
> mydoom was
> previously found and quarantined.
> Could someone give me at least a starting point on troubleshooting
> this. The same thing happened to the same table about 3 months ago. At
> that time, I figured it was some strange fluke, but now that it
> has happened again, it is rather disconcerting.
> Any help would be appreciated!!
> Thanks,
> Dan
Make sure there are no running jobs in SQL Agent. Change all your
passwords on all logins that have delete access to the table or are in
the sysadmin group.
David Gugick
Imceda Software
www.imceda.com
|||"Dan B" <none@.none.com> wrote in message
news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
> Hi,
> I'm sure this is a very broad question, but what could cause roughly
> 125,000 rows in one table to disappear over night. I'm running SQL server
> 7. I've done multiple virus scans...all clean...although mydoom was
> previously found and quarantined.
> Could someone give me at least a starting point on troubleshooting this.
> The same thing happened to the same table about 3 months ago. At that
time,
> I figured it was some strange fluke, but now that it has happened again,
it
> is rather disconcerting.
> Any help would be appreciated!!
> Thanks,
> Dan
>
Perhaps you could add a trigger to the table that would write diagnostic
information to a logging table, such as time-of-deletion and possibly
information about the user that the deletion SQL was running as.
Regards,
Simon
|||I have a evaluation copy of Lumigent Log Explorer, which I used to the
extent the evaluation allows. I was able to when the deleting took place,
and the SPID of the user or computer it came from, but apparently SPIDs
change so whoever had that number on the day the deletions occurred has a
different SPID now. It looks like the 125,000 rows where deleted within
about 10 minutes. People who use the application that is tied to the
database cannot delete anything. I just can't see how this
happened....again.
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:OSKCb0I3EHA.3000@.TK2MSFTNGP15.phx.gbl...
> Have you used a SQL log examination tool (Log P.I., Lumigent Log Explorer)
> to see if somebody issued a DELETE statement?
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
> "Dan B" <none@.none.com> wrote in message
> news:u038qvI3EHA.2012@.TK2MSFTNGP15.phx.gbl...
> time,
> it
>
|||Lumigent Log Explorer will record logins and SPIDS so you can see extended
information about who and where the changes came from. If you know when it
is happening, you can run Profiler to grab complete information.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Dan B" <none@.none.com> wrote in message
news:%23O9sqnJ3EHA.3452@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> I have a evaluation copy of Lumigent Log Explorer, which I used to the
> extent the evaluation allows. I was able to when the deleting took place,
> and the SPID of the user or computer it came from, but apparently SPIDs
> change so whoever had that number on the day the deletions occurred has a
> different SPID now. It looks like the 125,000 rows where deleted within
> about 10 minutes. People who use the application that is tied to the
> database cannot delete anything. I just can't see how this
> happened....again.
>
>
> "Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
> news:OSKCb0I3EHA.3000@.TK2MSFTNGP15.phx.gbl...
Explorer)[vbcol=seagreen]
this.[vbcol=seagreen]
again,
>
|||You could turn on event auditing. Also, is the system secured? You don't
need your app to connect to the system and delete information. MS Access,
SS Query Analyzer, MS Query, etc., etc.
Is the application using Windows Authentication or SQL Server logins?
Logins per user or one application login? Is the password well known? What
is the application security level on the server and within the database? Is
the SA account secured? Who knows the password?
I'd be running audit traces pretty heavily until you found out who has been
connecting to the system directly.
Sincerely,
Anthony Thomas

"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:uNkFfqJ3EHA.3416@.TK2MSFTNGP09.phx.gbl...
Lumigent Log Explorer will record logins and SPIDS so you can see extended
information about who and where the changes came from. If you know when it
is happening, you can run Profiler to grab complete information.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Dan B" <none@.none.com> wrote in message
news:%23O9sqnJ3EHA.3452@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> I have a evaluation copy of Lumigent Log Explorer, which I used to the
> extent the evaluation allows. I was able to when the deleting took place,
> and the SPID of the user or computer it came from, but apparently SPIDs
> change so whoever had that number on the day the deletions occurred has a
> different SPID now. It looks like the 125,000 rows where deleted within
> about 10 minutes. People who use the application that is tied to the
> database cannot delete anything. I just can't see how this
> happened....again.
>
>
> "Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
> news:OSKCb0I3EHA.3000@.TK2MSFTNGP15.phx.gbl...
Explorer)[vbcol=seagreen]
this.[vbcol=seagreen]
again,
>

Data just disappears

I have a client running SQL server 2000 on Windows 2003. Yesterday
data just started disappearing. It is being accessed by asp via his
website and when the data is being inserted it seems to all of a
sudden drop all data in the table. Earlier in the day the table
disappeared all together. Anyone ever see this?

LSThis can happen if the website is being "hacked". This is done via SQL
Injection, where by DDL language is used in the fields that are on the
screen. With the clever use of quotes and semi-colons, a hacker can issue a
TRUNCATE TABLE or DROP table.

Oscar...

"Len Svitenko" <its_goodtobethe_king@.yahoo.com> wrote in message
news:6092a26a.0401181707.3134bde1@.posting.google.c om...
> I have a client running SQL server 2000 on Windows 2003. Yesterday
> data just started disappearing. It is being accessed by asp via his
> website and when the data is being inserted it seems to all of a
> sudden drop all data in the table. Earlier in the day the table
> disappeared all together. Anyone ever see this?
> LS|||its_goodtobethe_king@.yahoo.com (Len Svitenko) wrote in message news:<6092a26a.0401181707.3134bde1@.posting.google.com>...
> I have a client running SQL server 2000 on Windows 2003. Yesterday
> data just started disappearing. It is being accessed by asp via his
> website and when the data is being inserted it seems to all of a
> sudden drop all data in the table. Earlier in the day the table
> disappeared all together. Anyone ever see this?
> LS

You can use Profiler to trace all SQL to the server, and see where the
DELETE or TRUNCATE statements are coming from. It may be a genuine
error in application code, or it may be malicious exploitation of a
security hole.

Simon|||Have a look at Erland's site which has more info on this :

http://www.algonet.se/~sommar/dynam...html#Security2

"Oscar Santiesteban Jr." <oscarsantiesteban@.worldnet.att.net> wrote in message news:<KjIOb.31844$VS4.992004@.bgtnsc04-news.ops.worldnet.att.net>...
> This can happen if the website is being "hacked". This is done via SQL
> Injection, where by DDL language is used in the fields that are on the
> screen. With the clever use of quotes and semi-colons, a hacker can issue a
> TRUNCATE TABLE or DROP table.
> Oscar...
> "Len Svitenko" <its_goodtobethe_king@.yahoo.com> wrote in message
> news:6092a26a.0401181707.3134bde1@.posting.google.c om...
> > I have a client running SQL server 2000 on Windows 2003. Yesterday
> > data just started disappearing. It is being accessed by asp via his
> > website and when the data is being inserted it seems to all of a
> > sudden drop all data in the table. Earlier in the day the table
> > disappeared all together. Anyone ever see this?
> > LS