Showing posts with label urgent. Show all posts
Showing posts with label urgent. Show all posts

Sunday, March 25, 2012

A weird problem - Need URGENT HELP

Hello All,

Greetings!

I have been using the VS2005/SQL 2005 for over a year to develp an application. This is completly a web application and pretty simple and straight forward.

Here is the situation:

(1) Including myself, one more user is logging on.

(2) We both are querying different departments and adding employees to the department.

For example: I query a dept# 101 and the other users querying dept# 102.

(3) When I commit my changes, I am getting the data saved into the table what other user queried in.(Instead of my dept# 101, I am getting dept#102 saved in the table.). The records that are commited using the stored prodedure, simple insert statement and they are between BEGIN TRAN and COMMIT TRAN.

(4) I trapped the sql command using the SQL profiler but I am in the need of some help to overcome.

Is there any SQL Server agent to be tweaked in? OR anything to do with IIS?

Your help will be highly appreciated.

Regards,

Amritha

Very difficult to say without more info, but my gut instinct is its not SQL server thats the issue here.

Have you tried running the stored procedures outside of the application? Do they give the correct results?

Is it a standard stored procedure or CLR stored procedure?


Post the sql code back here and it might help.

|||

Thank you so much for the response. I figured out the problem. Some of our colleagues declare variables as static and hence the reason. It should have been as session variables.

Again, I appreciate your time.

Regards,

Amritha

A weird problem - Need URGENT HELP

Hello All,

Greetings!

I have been using the VS2005/SQL 2005 for over a year to develp an application. This is completly a web application and pretty simple and straight forward.

Here is the situation:

(1) Including myself, one more user is logging on.

(2) We both are querying different departments and adding employees to the department.

For example: I query a dept# 101 and the other users querying dept# 102.

(3) When I commit my changes, I am getting the data saved into the table what other user queried in.(Instead of my dept# 101, I am getting dept#102 saved in the table.). The records that are commited using the stored prodedure, simple insert statement and they are between BEGIN TRAN and COMMIT TRAN.

(4) I trapped the sql command using the SQL profiler but I am in the need of some help to overcome.

Is there any SQL Server agent to be tweaked in? OR anything to do with IIS?

Your help will be highly appreciated.

Regards,

Amritha

Very difficult to say without more info, but my gut instinct is its not SQL server thats the issue here.

Have you tried running the stored procedures outside of the application? Do they give the correct results?

Is it a standard stored procedure or CLR stored procedure?


Post the sql code back here and it might help.

|||

Thank you so much for the response. I figured out the problem. Some of our colleagues declare variables as static and hence the reason. It should have been as session variables.

Again, I appreciate your time.

Regards,

Amritha

Thursday, March 22, 2012

A urgent Replication Issue

A very urgent solution needed I have one main feed Server "A" replicating data to two Servers "B" & "C"

The Distribution agent profiles of Both "B" and "C" are as follows

"B" Distribution Agent Profile

-BcpBatchSize 100000 (default)
-CommitBatchSize 100 (default)
-CommitBatchThreshold 1000 (default)
-HistoryVerboseLevel 1 (default)
-KeepAliveMessageInterval 300 (default)
-LoginTimeOut 15 (default)
-MaxBcpThreads 1 (default)
-MaxDeliveredTransactions 0 (default)
-PollingInterval 10 (default)
-QueryTimeOut 2000
-SkipErrors 2601:2627:20598
-TransactionsPerHistory 100 (default)

"C" Distribution Agent Profile

-BcpBatchSize 100000 (default)
-CommitBatchSize 100 (default)
-CommitBatchThreshold 1000 (default)
-HistoryVerboseLevel 1 (default)
-KeepAliveMessageInterval 300 (default)
-LoginTimeOut 15 (default)
-MaxBcpThreads 1 (default)
-MaxDeliveredTransactions 0 (default)
-PollingInterval 10 (default)
-QueryTimeOut 300
-SkipErrors 2601:2627:20598
-TransactionsPerHistory 100 (default)

The latency for the server "B" is around 500000 & for the Server "C" is around 3000

Can u suggest anything wrong in the agent profile which can cause the Server LAtency to Shoot Up. what is the QueryTimeOut property about

thanks in advance

JAcx

I would take a look at the resources on Server B. You have a bottleneck somewhere over there which is causing things to move much more slowly than to other subscribers.|||Network connectivity between the 2?

Saturday, February 25, 2012

A Question on SQL Cluster -Urgent

We are planning the following setup as part of our Business Continuity
Planning.
We have an active passive cluster in the production and we will also have
the same setup in the DR setup. But the issue is that we need to keep the
same SQL virtual name in both Production and DR. So in this scenario if we
have to do some maintenance on the DR setup for eg: to apply Service Packs
or any fine tuning, how do we do that? Is there any recommendation or best
practices?
Waiting on an immediate response.
Abhi
Consider using a DNS alias. The apps use the alias, while the virtual
servers can be whatever you want.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau
"Abhi" <Abhi@.discussions.microsoft.com> wrote in message
news:F4A782D4-8BD3-4B46-ABFA-B6BECE82908D@.microsoft.com...
We are planning the following setup as part of our Business Continuity
Planning.
We have an active passive cluster in the production and we will also have
the same setup in the DR setup. But the issue is that we need to keep the
same SQL virtual name in both Production and DR. So in this scenario if we
have to do some maintenance on the DR setup for eg: to apply Service Packs
or any fine tuning, how do we do that? Is there any recommendation or best
practices?
Waiting on an immediate response.
Abhi
|||"Abhi" <Abhi@.discussions.microsoft.com> wrote in message
news:F4A782D4-8BD3-4B46-ABFA-B6BECE82908D@.microsoft.com...
> We are planning the following setup as part of our Business Continuity
> Planning.
> We have an active passive cluster in the production and we will also have
> the same setup in the DR setup. But the issue is that we need to keep the
> same SQL virtual name in both Production and DR. So in this scenario if we
> have to do some maintenance on the DR setup for eg: to apply Service
> Packs
> or any fine tuning, how do we do that? Is there any recommendation or best
> practices?
You might also consider using database mirroring.
Russ Kaufmann
MVP - Windows Server - Clustering
ClusterHelp.com, a Microsoft Certified Gold Partner
Web http://www.clusterhelp.com
Blog http://msmvps.com/clusterhelp
The next ClusterHelp classes are:
July 10-13 in Denver
July 16-19 in New York
Sep 3 - 6 in Copenhagen

Thursday, February 9, 2012

a General database question. Please help urgent!

guys i have a programming question i have table called prerequsites
which is like this
prerequisite component component
a b
so inside my before insert trigger i have to check if the prerequisite is a valid entry like for instance
an entry like b is a prerequisite component for component a which is not a valid entry since i already have an entry in the prerequisite table which defines that comonent a is a prerequisite of b. however this is
very basic so i can test it easy some thing like this in my before insert
prerequisite component component
a b
b a ( Not a valid entry)
select count(*) from prerequisite where component = value of prerequisite component
and prerequisite component = value of component
the above select statement will actually tell me if entry is allowed for insert and does not override other prerequsites
but it can get very complex depending on how the user chooses so if someone can tell me a nice algorithm or good logic to approach this problem it would be great like for instance
prerequisite component component
a b
b c
c a ( Not a valid entry. so how do i ensure that this entry is not allowed considering that complexity for prerequsites can increase quite greatly)
please can someone tell me how to approach this problem.

Try these links for INSTEAD OF Triggers, you can do things within the Trigger. Hope this helps.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlpro01/html/sql01a17.asp

http://www.databasejournal.com/features/mssql/article.php/1437741