Showing posts with label cause. Show all posts
Showing posts with label cause. Show all posts

Thursday, February 16, 2012

Causing a PostBack when user changes a parameter in Report Viewer

Does anyone know of a way to cause a postback when the user changes a parameter in the report viewer control? I need it to postback even if it is just text that was changed in a textbox. Basically I need it to do the same thing as when you click on a DateTime parameter to set a date.

I need this because I am allowing the user to save the settings as a preset to a XML file without having to first run the report. The GetParameters() method won't give me the new client selections without first running the report. But a postback will allow the GetParameters() method to give me the right parameters without running it.

Any ideas?

Nevermind...I have a workaround.

I just added a submit() to the "onclick" event to the Save Preset button. This updates the Report Viewer and then calls my C# function to get the parameter settings.

Causes for SQL Server Stack Dump.

Can anyone tell the general cause for sql server to generate an stack dump.
And how important it is to analyze the dumps generated.
ThanxHi
The highest number of causes for stack dumps is hardware related, therefore
it will be hard to tell what has caused yours unless you analyse the dump. If
you are running a business critical system then I would certainly want to get
to the root cause. You may want to raise a call with PSS to get it analysed.
John
"Ramesh" wrote:
> Can anyone tell the general cause for sql server to generate an stack dump.
> And how important it is to analyze the dumps generated.
> Thanx|||Actually, that is the only way to analyze a stack dump. PSS has the symbol
files to load up to the stack dump.
--
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:41840968-4106-43B5-A73F-7639B990B5CE@.microsoft.com...
> Hi
> The highest number of causes for stack dumps is hardware related,
> therefore
> it will be hard to tell what has caused yours unless you analyse the dump.
> If
> you are running a business critical system then I would certainly want to
> get
> to the root cause. You may want to raise a call with PSS to get it
> analysed.
> John
> "Ramesh" wrote:
>> Can anyone tell the general cause for sql server to generate an stack
>> dump.
>> And how important it is to analyze the dumps generated.
>> Thanx

Causes for SQL Server Stack Dump.

Can anyone tell the general cause for sql server to generate an stack dump.
And how important it is to analyze the dumps generated.
Thanx
Hi
The highest number of causes for stack dumps is hardware related, therefore
it will be hard to tell what has caused yours unless you analyse the dump. If
you are running a business critical system then I would certainly want to get
to the root cause. You may want to raise a call with PSS to get it analysed.
John
"Ramesh" wrote:

> Can anyone tell the general cause for sql server to generate an stack dump.
> And how important it is to analyze the dumps generated.
> Thanx
|||Actually, that is the only way to analyze a stack dump. PSS has the symbol
files to load up to the stack dump.
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:41840968-4106-43B5-A73F-7639B990B5CE@.microsoft.com...[vbcol=seagreen]
> Hi
> The highest number of causes for stack dumps is hardware related,
> therefore
> it will be hard to tell what has caused yours unless you analyse the dump.
> If
> you are running a business critical system then I would certainly want to
> get
> to the root cause. You may want to raise a call with PSS to get it
> analysed.
> John
> "Ramesh" wrote:

Causes for SQL Server Stack Dump.

Can anyone tell the general cause for sql server to generate an stack dump.
And how important it is to analyze the dumps generated.
ThanxHi
The highest number of causes for stack dumps is hardware related, therefore
it will be hard to tell what has caused yours unless you analyse the dump. I
f
you are running a business critical system then I would certainly want to ge
t
to the root cause. You may want to raise a call with PSS to get it analysed.
John
"Ramesh" wrote:

> Can anyone tell the general cause for sql server to generate an stack dump
.
> And how important it is to analyze the dumps generated.
> Thanx|||Actually, that is the only way to analyze a stack dump. PSS has the symbol
files to load up to the stack dump.
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.
"John Bell" <jbellnewsposts@.hotmail.com> wrote in message
news:41840968-4106-43B5-A73F-7639B990B5CE@.microsoft.com...[vbcol=seagreen]
> Hi
> The highest number of causes for stack dumps is hardware related,
> therefore
> it will be hard to tell what has caused yours unless you analyse the dump.
> If
> you are running a business critical system then I would certainly want to
> get
> to the root cause. You may want to raise a call with PSS to get it
> analysed.
> John
> "Ramesh" wrote:
>

Cause SQL Server Restricted Mode (db_owner, dbcreator,)

What would cause SQL Server 2000 Enterprise Edition
databases to be in access restricted mode where only
db_owner, dbcreator, and sysadmin?
SQL Server was not placed in access restricted my any
administrator.
This is an active/active cluster with SQL Server 2000
SP3A with Windows 2000 Advanced Server.
Could the cluster place SQL Server 2000 in a access
restricted mode?
If SQL Server 2000 resources were very low for extended
period would the cluster or SQL Server place SQL Server
in access restricted mode?
Please help me resolve this issue.
Thank You,
Dan
The only thing that can do that is an administrator. If it is a new
database, it will look exactly like that since SQL Server uses the principle
of having to explicitly grant access. But, if it is an existing database,
an administrator had to have changed the security. You are saying that no
one did this. I'd more accurately say that no one is willing to admit to
having done that. How can you find out? Download Log Explorer from
Lumigent Technologies and point it at your tran log + tran log backups. It
will show you pretty explicitly when the security was changed and by whom.
I'd also recommend taking a look at their companion product Entegra which
can notify you immediately when security changes and a whole host of other
things change.
Mike
Principal Mentor
Solid Quality Learning
"More than just Training"
SQL Server MVP
http://www.solidqualitylearning.com
http://www.mssqlserver.com

Cause of table truncated

We have a few tables is SQL 2000 database being truncated and don't know wha
t
happen to them. The database log file look-up is the way I am trying. But
dbcc does not bring too much useful information. I appreciate it if you can
point out a few ways, which can identify the cause of this incident. Thanks
.
--
DLUnderstanding the DBCC LOG output is a bit difficult, especially as there
isn't much documentation available.
You might want to use a thid party tool like Lumigent Log Explorer, which
can read transaction logs and answer the questions like the one you've just
asked.
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"Dliu" <Dliu@.discussions.microsoft.com> wrote in message
news:9E7A4BF4-6974-46DB-A489-BBFEBD28DF59@.microsoft.com...
> We have a few tables is SQL 2000 database being truncated and don't know
> what
> happen to them. The database log file look-up is the way I am trying.
> But
> dbcc does not bring too much useful information. I appreciate it if you
> can
> point out a few ways, which can identify the cause of this incident.
> Thanks.
> --
> DL|||I'm wondering if a trigger could be created to store at least a
time/date and possibly login used to truncate? Or you could lock the
table down and then see what process receives an error while trying to
truncate. Probably some user in query analyzer|||On 5 Aug 2005 07:34:46 -0700, MICHAEL_SUNLIN@.COUNTRYWIDE.COM wrote:

>I'm wondering if a trigger could be created to store at least a
>time/date and possibly login used to truncate? Or you could lock the
>table down and then see what process receives an error while trying to
>truncate. Probably some user in query analyzer
Hi Michael,
Since TRUNCATE TABLE bypasses all trigger execution, your first
suggestion won't work.
The second suggestion will work, but it will also block all legitimate
inserts, updates and deletes. Not an option in most environments.
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)

Cause of DB restarting

Hello,
I have a SQL Server that drives some of my companies web
sites. There are several DBs on this server, however, only
one is having an issue.
It repeatedly restarts itself. This issue started this
past Friday. On that day the DB was in suspect mode.
Any idea on what would cause this one DB to restart and
not affect any other DB on that same server?
Any help would be appreciated.have you run DBCC CHECKDB()
Error logs ?
--
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Jim C" <tjnaz2001@.yahoo.com> wrote in message
news:7f2a01c344ef$093e5ba0$a401280a@.phx.gbl...
> Hello,
> I have a SQL Server that drives some of my companies web
> sites. There are several DBs on this server, however, only
> one is having an issue.
> It repeatedly restarts itself. This issue started this
> past Friday. On that day the DB was in suspect mode.
> Any idea on what would cause this one DB to restart and
> not affect any other DB on that same server?
> Any help would be appreciated.
>|||In addition to Allan's post:
What do you mean by "restart"? Did you set the autoclose database option?
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Jim C" <tjnaz2001@.yahoo.com> wrote in message news:7f2a01c344ef$093e5ba0$a401280a@.phx.gbl...
> Hello,
> I have a SQL Server that drives some of my companies web
> sites. There are several DBs on this server, however, only
> one is having an issue.
> It repeatedly restarts itself. This issue started this
> past Friday. On that day the DB was in suspect mode.
> Any idea on what would cause this one DB to restart and
> not affect any other DB on that same server?
> Any help would be appreciated.
>

Cause INSERT statements without column lists to fail

Hi Hilary, Paul....
I have another real problem I hope you can help with.
Setup replication now with no problems but one!
The database tables fail from the application thats using them because of
the ROWQUID column.
I noticed that JUST before the articles are created it shows this;
SQL Server requires that all merge articles contain a uniqueidentifier
column with a unique index and the ROWGUIDCOL property. SQL Server will add a
uniqueidentifier column to published tables that do not have one when the
first snapshot is generated.
Adding a new column will:
? Cause INSERT statements without column lists to fail
? Increase the size of the table
? Increase the time required to generate the first snapshot
So is there ANY way of getting round this bug because my developer said that
they will not alter their software and the way the tables are accessed.
So, any ideas.
First you have to find out if the code does do something like this
Insert into tablename
select * from anothertablename
This is what will break with merge replication. Ask him specifically about
this. Personally good developers would never do anything like this. They
would also access the database through stored procedures which would allow
you, the dba, to modify something like this.
Another method is to have the application talk to a view which only contains
the non rowguid column. This isn't very scalable.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
""confused"" <confused@.discussions.microsoft.com> wrote in message
news:53394C5B-05FA-418C-99CA-FB8A8FF5769A@.microsoft.com...
> Hi Hilary, Paul....
> I have another real problem I hope you can help with.
> Setup replication now with no problems but one!
> The database tables fail from the application thats using them because of
> the ROWQUID column.
> I noticed that JUST before the articles are created it shows this;
> SQL Server requires that all merge articles contain a uniqueidentifier
> column with a unique index and the ROWGUIDCOL property. SQL Server will
> add a
> uniqueidentifier column to published tables that do not have one when the
> first snapshot is generated.
> Adding a new column will:
> Cause INSERT statements without column lists to fail
> Increase the size of the table
> Increase the time required to generate the first snapshot
> So is there ANY way of getting round this bug because my developer said
> that
> they will not alter their software and the way the tables are accessed.
> So, any ideas.
|||Hi,
No it looks like they have hard coded this one particluar SQL statement.
So what acutally changes in the database that affects the table INSERT
commands?.
Is their a way round this. If there isnt then its back to square one for
me...
Thanks
"Hilary Cotter" wrote:

> First you have to find out if the code does do something like this
> Insert into tablename
> select * from anothertablename
> This is what will break with merge replication. Ask him specifically about
> this. Personally good developers would never do anything like this. They
> would also access the database through stored procedures which would allow
> you, the dba, to modify something like this.
> Another method is to have the application talk to a view which only contains
> the non rowguid column. This isn't very scalable.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
>
> ""confused"" <confused@.discussions.microsoft.com> wrote in message
> news:53394C5B-05FA-418C-99CA-FB8A8FF5769A@.microsoft.com...
>
>
|||You say one particular SQL Statement - is it in a stored procedure? If so,
just modify the stored procedure so it contains all the column name except
the rowguid column.
ie before
insert into mytable
select * from myothertable
after
insert into mytable
select col1,col2, col3, col4,... from myothertable.
If this can't be done change the table the app writes to so it is now a
view. So if the app wrote to Mytable rename mytable as mytable and create a
view called mytable. This view will look like this create view mytable as
select col1, col2, col3, col4,... from mytable1
This doesn't scale well. How many nodes in your system? You might want to
look at bi-directional transactional replication.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
""confused"" <confused@.discussions.microsoft.com> wrote in message
news:8DEDF1FC-8926-4072-9D22-91715B8FEE3D@.microsoft.com...[vbcol=seagreen]
> Hi,
> No it looks like they have hard coded this one particluar SQL statement.
> So what acutally changes in the database that affects the table INSERT
> commands?.
> Is their a way round this. If there isnt then its back to square one for
> me...
> Thanks
> "Hilary Cotter" wrote:
|||Hi Hilary,
I think I found the problem but I dont know how to get to it.
The dependencies show 3 objects that have a green plus sign next to them.
These objects are PHONE_ADD, PHONE_DELETE, PHONE_AMEND but I cant see these
anywhere in the database?.
Any ideas?
TIM
"Hilary Cotter" wrote:

> You say one particular SQL Statement - is it in a stored procedure? If so,
> just modify the stored procedure so it contains all the column name except
> the rowguid column.
> ie before
> insert into mytable
> select * from myothertable
> after
> insert into mytable
> select col1,col2, col3, col4,... from myothertable.
> If this can't be done change the table the app writes to so it is now a
> view. So if the app wrote to Mytable rename mytable as mytable and create a
> view called mytable. This view will look like this create view mytable as
> select col1, col2, col3, col4,... from mytable1
> This doesn't scale well. How many nodes in your system? You might want to
> look at bi-directional transactional replication.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
>
> ""confused"" <confused@.discussions.microsoft.com> wrote in message
> news:8DEDF1FC-8926-4072-9D22-91715B8FEE3D@.microsoft.com...
>
>
|||Where are you seeing these green arrows?
Can you do the following for me?
select name from sysobjects where name in (PHONE_ADD, PHONE_DELETE,
PHONE_AMEND) and type='u'
GO
select object_name(id),name from syscolumns where name in (PHONE_ADD,
PHONE_DELETE, PHONE_AMEND)
GO
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
""confused"" <confused@.discussions.microsoft.com> wrote in message
news:ACD9DC12-A2C2-4E65-83C8-3D4E39EE8109@.microsoft.com...[vbcol=seagreen]
> Hi Hilary,
> I think I found the problem but I dont know how to get to it.
> The dependencies show 3 objects that have a green plus sign next to them.
> These objects are PHONE_ADD, PHONE_DELETE, PHONE_AMEND but I cant see
> these
> anywhere in the database?.
> Any ideas?
> TIM
> "Hilary Cotter" wrote: