Showing posts with label session. Show all posts
Showing posts with label session. Show all posts

Monday, March 19, 2012

Error 1413 during setting up mirroring session

hi guys , does anyone of you have a good solution on the Error 1413: Communications to the remote server instance failed before database mirroring was fully started issue?

Best Regards,

Hans

Do you see any network issues between Principal and mirror?

Explain when and where you are getting this error and if this is during the failover then work around for this problem:

1. Restart the SQL Server service on the mirror server. 2. Wait for the databases to be synchronized. 3. Issue the failover command again.

If there is an issue with NIC on the servers that are in DBMirroring then you would see these alerts.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=481967&SiteID=1 post too.

Sunday, February 26, 2012

Error : "Parallel worker query thread was involved in a deadlock" in SQL Se

We are running four session of application and each session is running
the same stored procedure against SQL Server database running SP3
patch.
All these four session are doing data intense operation and after some
time three of the process are getting completed correctly and the
fourth give us an DeadLock error message.
The error message which is displayed in the application is normal SQL
Server deadlock message.
But in the profiler we are seeing the below mentioned error message
//
Lock : Deadlock Chain : Parallel worker query thread was involved in a
deadlock" in profiler
//
We know that this error is cause by SQL Server optimization
methodology, we know it has to do with
parallel threads deadlocking each other.
Now we are looking for any documentation or information from the
Microsoft about this, any info will be appreciated.
Regards
Basharat<basharatw@.hotmail.com> wrote in message
news:1115667066.094653.87860@.f14g2000cwb.googlegroups.com...
> We are running four session of application and each session is running
> the same stored procedure against SQL Server database running SP3
> patch.
> All these four session are doing data intense operation and after some
> time three of the process are getting completed correctly and the
> fourth give us an DeadLock error message.
> The error message which is displayed in the application is normal SQL
> Server deadlock message.
> But in the profiler we are seeing the below mentioned error message
> //
> Lock : Deadlock Chain : Parallel worker query thread was involved in a
> deadlock" in profiler
> //
> We know that this error is cause by SQL Server optimization
> methodology, we know it has to do with
> parallel threads deadlocking each other.
> Now we are looking for any documentation or information from the
> Microsoft about this, any info will be appreciated.
> Regards
> Basharat
>
Take a look at the "max degree of parallelism" and "maxdop" query hints in
the books online.
I don't know if it will help in this situation or not.
Rick Sawtell
MCT, MCSD, MCDBA|||> We are running four session of application and each session is running
> the same stored procedure against SQL Server database running SP3
> patch.
> All these four session are doing data intense operation and after some
> time three of the process are getting completed correctly and the
> fourth give us an DeadLock error message.
> The error message which is displayed in the application is normal SQL
> Server deadlock message.
> But in the profiler we are seeing the below mentioned error message
> //
> Lock : Deadlock Chain : Parallel worker query thread was involved in a
> deadlock" in profiler
> //
> We know that this error is cause by SQL Server optimization
> methodology, we know it has to do with
> parallel threads deadlocking each other.
That sounds exactly l ike the problem I was having about two months ago on a
2-cpu server.
There is a MAXDOP option you can specify to set the "maximum degree of
parallelism" on a given SQL statement. I can't remember the sp that we had
to tweak that way, and I couldn't find it in the help index. I believe I
found it by dowing a full text search of BOL. For us, the solution was to
provide the MAXDOP hint and set it to 1 (I think).
If you can get to a source with more than a 3 month history of this NG, you
could search for posts containing MAXDOP from a thread that I started
between 2 & three months ago.
Perhaps someone else can chime in with something more precise.
Peace & happy computing,
Mike Labosh, MCSD
"Escriba coda ergo sum." -- vbSensei
<basharatw@.hotmail.com> wrote in message
news:1115667066.094653.87860@.f14g2000cwb.googlegroups.com...
> Now we are looking for any documentation or information from the
> Microsoft about this, any info will be appreciated.
> Regards
> Basharat
>

Error (Data mining): A catalog is not set for this session

I downloaded a copy of sql server and when I run the following query in the sql management studio after choosing new query , DMX I get the above error

CREATE MINING MODEL [NBSample]

(

CustomerKey LONG KEY,

Gender TEXT DISCRETE,

[Number Cars Owned] LONG DISCRETE,

[Bike Buyer] LONG DISCRETE PREDICT

)

Using Microsoft_Naive_Bayes

Also in the pane Mining Model I get the message No mining models found. The only error I get when I installed SQL server was a COM plus registration error. I am running Windows XP SP2. Can someone please help.

Vijay Mukhi

HOD Helios

Apoligies from the bottom of my heart. I was reading the tutorial in the middle of the night and did not create a database. After creating a database the above query works like a charm. I am using sql server to create an expert system for detecting malware. I tried dozens of neural network , bayesain network , SVM , etc products and believe sql server is far ahead. Sorry once again for the post.

Vijay Mukhi

Helios

Friday, February 17, 2012

Error

Can anyone explain me this error message and why am i
getting it:
Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
[SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
7312). The step failed.
thanxs!Hi,
Your transaction may be timing out. By default DTC transaction Timeout is
set to 60 seconds .
If this is not long enough In component services\computers\my computer
right click. select properties and select
the options tab and increase the transaction timeout (you may set this to 0
and the transaction will not time out)
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!|||where can i find the "component services"'
>--Original Message--
>Hi,
>Your transaction may be timing out. By default DTC
transaction Timeout is
>set to 60 seconds .
> If this is not long enough In component
services\computers\my computer
>right click. select properties and select
>the options tab and increase the transaction timeout (you
may set this to 0
>and the transaction will not time out)
>Thanks
>Hari
>MCDBA
>
>"cs" <anonymous@.discussions.microsoft.com> wrote in
message
>news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
>> Can anyone explain me this error message and why am i
>> getting it:
>> Distributed transaction completed. Either enlist this
>> session in a new transaction or the NULL transaction.
>> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
>> 7312). The step failed.
>> thanxs!
>
>.
>|||Hi,
Can you tell me where do you get the error?
I thought that you are using some components.
Thanks
Hari
MCDBA
"cs" <anonymous@.discussions.microsoft.com> wrote in message
news:8a0401c3e96e$32888cf0$a601280a@.phx.gbl...
> Can anyone explain me this error message and why am i
> getting it:
> Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
> [SQLSTATE 42000] (Error 8525) [SQLSTATE 01000] (Error
> 7312). The step failed.
> thanxs!