Showing posts with label type. Show all posts
Showing posts with label type. Show all posts

Friday, March 23, 2012

msmqtask.dll

I tried to install the ENT edition of 2005, the release version. I continue to get an error stating the the install was unable to build the type lib for Microsoft.SqlServer.MsmqTask.dll.

I tried multiple uninstalls scenaios, including cleaning the registry, cleaning the file system, using the cleanup tool from the CTP, and I uninstalled MSMQ.

I can not seem to find my way out of this bag. The net result is that I can not import an existing Database. At least that's the first problem I found.

LT

This is an issue when Microsoft.SqlServer.MSMQTask is left behind in COM+ catalog. You can workaround it by:

1. Open Administrative Tools\Component Services

2. Go to Component Services\Computers\My Computer\COM+ Applications

3. Delete Microsoft.SqlServer.MSMQTask

|||

And what if you get this error and the Microsoft.SqlServer.MSMQTask is not there?

I clicked on ignore eventually, but this should not be ok.

|||The error also happens due to invalid or not enough rights in all the HKCR\Microsoft.SqlServer.Dts.Tasks. ... keys. The administrator group has only read access. Setting all keys of this group to full access solves this problem

msmqtask.dll

I tried to install the ENT edition of 2005, the release version. I continue to get an error stating the the install was unable to build the type lib for Microsoft.SqlServer.MsmqTask.dll.

I tried multiple uninstalls scenaios, including cleaning the registry, cleaning the file system, using the cleanup tool from the CTP, and I uninstalled MSMQ.

I can not seem to find my way out of this bag. The net result is that I can not import an existing Database. At least that's the first problem I found.

LT

This is an issue when Microsoft.SqlServer.MSMQTask is left behind in COM+ catalog. You can workaround it by:

1. Open Administrative Tools\Component Services

2. Go to Component Services\Computers\My Computer\COM+ Applications

3. Delete Microsoft.SqlServer.MSMQTask

|||

And what if you get this error and the Microsoft.SqlServer.MSMQTask is not there?

I clicked on ignore eventually, but this should not be ok.

|||The error also happens due to invalid or not enough rights in all the HKCR\Microsoft.SqlServer.Dts.Tasks. ... keys. The administrator group has only read access. Setting all keys of this group to full access solves this problem

msmqtask.dll

I tried to install the ENT edition of 2005, the release version. I continue to get an error stating the the install was unable to build the type lib for Microsoft.SqlServer.MsmqTask.dll.

I tried multiple uninstalls scenaios, including cleaning the registry, cleaning the file system, using the cleanup tool from the CTP, and I uninstalled MSMQ.

I can not seem to find my way out of this bag. The net result is that I can not import an existing Database. At least that's the first problem I found.

LT

This is an issue when Microsoft.SqlServer.MSMQTask is left behind in COM+ catalog. You can workaround it by:

1. Open Administrative Tools\Component Services

2. Go to Component Services\Computers\My Computer\COM+ Applications

3. Delete Microsoft.SqlServer.MSMQTask

|||

And what if you get this error and the Microsoft.SqlServer.MSMQTask is not there?

I clicked on ignore eventually, but this should not be ok.

|||The error also happens due to invalid or not enough rights in all the HKCR\Microsoft.SqlServer.Dts.Tasks. ... keys. The administrator group has only read access. Setting all keys of this group to full access solves this problem|||I found some access denied keys, HKCR\Microsoft.SqlServer.DTS.TAks.MessageQueueTask.DataFileMessage keys....

MessageQueueTask
MessageQueueTask.ServerCompMQTask

There might be a few others becuase I gave permissions to a few before I starts running REGMON.

MSMQ did not make MQIS database in SQL 2000

I believe this is why I am having a error at boot from the Service =
Control Manager:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7022
Date: 12/14/2004
Time: 1:54:04 AM
User: N/A
Computer: HESTER
Description:
The Microsoft Search service hung on starting.=20
It hangs but has started when I get to the desktop. This started =
immediately after I installed the Windows 2000
Component MSMQ. I did not do it with Routing and I lessened =
permissions. This on the domain controller.=20
According to this article:
http://support.microsoft.com/default...b;en-us;193510
I should have an ODBC System DSN called MQIS pointing to a database in =
SQL that was made by the
installation of MSMQ called MQIS. Well I have the DSN but I don't have =
the database. It was not made. SQL 2000 SP3. How do I fix this? Is =
there some kind of sp which I can run in Query Manager that will in fact =
make this database the MSMQ is expecting?
Thanks.
--=20
George Hester
_________________________________
Well that's the end of the Op sys. It's been hosed. Thanks MSMQ.
--=20
George Hester
_________________________________
"George Hester" <hesterloli@.hotmail.com> wrote in message =
news:u#DZi2a4EHA.2452@.TK2MSFTNGP14.phx.gbl...
I believe this is why I am having a error at boot from the Service =
Control Manager:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7022
Date: 12/14/2004
Time: 1:54:04 AM
User: N/A
Computer: HESTER
Description:
The Microsoft Search service hung on starting.=20
It hangs but has started when I get to the desktop. This started =
immediately after I installed the Windows 2000
Component MSMQ. I did not do it with Routing and I lessened =
permissions. This on the domain controller.=20
According to this article:
http://support.microsoft.com/default...b;en-us;193510
I should have an ODBC System DSN called MQIS pointing to a database in =
SQL that was made by the
installation of MSMQ called MQIS. Well I have the DSN but I don't have =
the database. It was not made. SQL 2000 SP3. How do I fix this? Is =
there some kind of sp which I can run in Query Manager that will in fact =
make this database the MSMQ is expecting?
Thanks.
--=20
George Hester
_________________________________

MSMQ did not make MQIS database in SQL 2000

I believe this is why I am having a error at boot from the Service = Control Manager:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7022
Date: 12/14/2004
Time: 1:54:04 AM
User: N/A
Computer: HESTER
Description:
The Microsoft Search service hung on starting.
It hangs but has started when I get to the desktop. This started = immediately after I installed the Windows 2000
Component MSMQ. I did not do it with Routing and I lessened = permissions. This on the domain controller. According to this article:
http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;193510
I should have an ODBC System DSN called MQIS pointing to a database in = SQL that was made by the
installation of MSMQ called MQIS. Well I have the DSN but I don't have = the database. It was not made. SQL 2000 SP3. How do I fix this? Is = there some kind of sp which I can run in Query Manager that will in fact = make this database the MSMQ is expecting?
Thanks.
-- George Hester
_________________________________Well that's the end of the Op sys. It's been hosed. Thanks MSMQ.
-- George Hester
_________________________________
"George Hester" <hesterloli@.hotmail.com> wrote in message =news:u#DZi2a4EHA.2452@.TK2MSFTNGP14.phx.gbl...
I believe this is why I am having a error at boot from the Service =Control Manager:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7022
Date: 12/14/2004
Time: 1:54:04 AM
User: N/A
Computer: HESTER
Description:
The Microsoft Search service hung on starting.
It hangs but has started when I get to the desktop. This started =immediately after I installed the Windows 2000
Component MSMQ. I did not do it with Routing and I lessened =permissions. This on the domain controller. According to this article:
http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;193510
I should have an ODBC System DSN called MQIS pointing to a database in =SQL that was made by the
installation of MSMQ called MQIS. Well I have the DSN but I don't have =the database. It was not made. SQL 2000 SP3. How do I fix this? Is =there some kind of sp which I can run in Query Manager that will in fact =make this database the MSMQ is expecting?
Thanks.
-- George Hester
_________________________________sql

Wednesday, March 21, 2012

MSMerge_genhistory and MSMerge_replinfo (comparing int with concatenated VarBina

This may be one of those, "why the h3ll is he trying to do THAT?" type questions. Please bear with me (or ignore and move on)...

Background:
I have a horizontally partitioned, dynamic merge publication that will be shared out with up to 60 subscribers. Things are going swimmingly, but I would like to get a more refined view of the merge update process; specifically, I am trying to query MSMerge_genhistory to see what updates have been made, which subscribers have received those updates, and what updates are pending.

MSMerge_genhistory contains a field nicknames (Varbinary(1000) which is a concatenated value of subscribers. The "official" definition (from the SQL 2000 system table map) is

A list of nicknames of other Subscribers that are known to already have this generation. Used to avoid sending a generation to a Subscriber that has already seen those changes. Nicknames in the nicknames list are maintained in sorted order to make searches more efficient. If there are more nicknames than can fit in this field, they will not benefit from this optimization.

The MSMerge_replinfo table contains a field replnickname (int) which contains a unique integer value that, when cast as a Varbinary, matches the values that are in the nicknames field in MSMerge_genhistory.

Compressed nickname for the replica.

So, my question is: how do I compare the varbinary(1000) (with concatenated values) with the int (cast as a varbinary). Examples:

MSMerge_Genhistory:
Column nicknames:
0x677112FA
0x677112FAEAEB0704677112FA

MSMerge_Replinfo:
replnickname cast(replnickname as varbinary(1000))
1735463674 0x677112FA
-353695996 0xEAEB0704

* Note that EAEB0704 is in the second Varbinary value from MSMerge_Genhistory, but not in the first.

If there's a simpler way to do this (ie, a stored proc/sp_help*) that I have overlooked, please do enlighten me.

Regards,

HughOkay, this may still fall under, "why the H would you want to do this", but here goes:

Stolen from sp_MSAlreadyhavegeneration and modified into a udf...

CREATE FUNCTION dbo.fnCheckGeneration
(@.genguid uniqueidentifier, @.subscribernick int)
RETURNS int

as
BEGIN
declare @.nicknames varbinary(1000)
declare @.offset int
declare @.retcode int

/*
** Check input parameter
*/
if (@.genguid is null)
begin
-- RAISERROR(14043, 16, -1, '@.genguid')
return (-1)
end

select @.nicknames = nicknames from dbo.MSmerge_genhistory where guidsrc = @.genguid
if @.nicknames is null
begin
-- what is the appropriate error to return?
-- RAISERROR(21333, 16, -1)
return (-1)
end

set @.offset = 1
while @.offset < len(@.nicknames)
begin
-- If the subscriber nickname is already in the list just return
if (convert(int, substring(@.nicknames, @.offset, 4)) = @.subscribernick)
return (1)
set @.offset = @.offset + 4
end

return (0)
END

GO

SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

Then by calling this function inside of a query, I should be able to tell if a particular subscriber has been updated to a particular generation.

Is it useful? Dunno yet...

Regards,

hmscott

Monday, March 12, 2012

msg 296 - out of range smalldatetime value

Server: Msg 296, Level 16, State 3, Line 4
The conversion of char data type to smalldatetime data type resulted in an
out-of-range smalldatetime value.
I'm doing a simple select, one of the values is the concatention of a CASE
statement and two other fields. I've got no date specification or range of
any sort in my query, except that one of the fields I am concatenating with
is a date. the relevant portion of the code is here;
...
...
END+A.ctDate+CAST(A.ID AS varchar(12))+'.'+'BB' AS oID
This is the only date I reference at all in the select, and if pulled from
the query, it runs fine. What's the right way to get around msg 296 in this
situation?
-- LynnIf you're concatenating to a string, you should cast it explicitly as a
string.
...
END+CONVERT(CHAR(8), A.ctDate, 112)+CASE ...
"Lynn" <Lynn@.discussions.microsoft.com> wrote in message
news:7FB003B4-F5EB-4FC6-B330-8483A80EA586@.microsoft.com...
> Server: Msg 296, Level 16, State 3, Line 4
> The conversion of char data type to smalldatetime data type resulted in an
> out-of-range smalldatetime value.
> I'm doing a simple select, one of the values is the concatention of a CASE
> statement and two other fields. I've got no date specification or range
> of
> any sort in my query, except that one of the fields I am concatenating
> with
> is a date. the relevant portion of the code is here;
> ...
> ...
> END+A.ctDate+CAST(A.ID AS varchar(12))+'.'+'BB' AS oID
> This is the only date I reference at all in the select, and if pulled from
> the query, it runs fine. What's the right way to get around msg 296 in
> this
> situation?
> -- Lynn|||excellent. that works perfectly. thanks very much
-- Lynn
"Aaron Bertrand [SQL Server MVP]" wrote:

> If you're concatenating to a string, you should cast it explicitly as a
> string.
> ....
> END+CONVERT(CHAR(8), A.ctDate, 112)+CASE ...
>
>
> "Lynn" <Lynn@.discussions.microsoft.com> wrote in message
> news:7FB003B4-F5EB-4FC6-B330-8483A80EA586@.microsoft.com...
>
>

Monday, February 20, 2012

MSDTC

Hi,

I am running SQl 7.0 (SP4) on Windows XP Professional (SP2). Whenever I try an insert/update type of activity, the System returns the following message :

Server: Msg 8501, Level 16, State 3, Line 2
MSDTC on server 'SERVER' is unavailable.

However, all the required services including MSDTC are running on the System.

Please help ASAP.

Thanks & Regards - Rajesh Pathak

It sounds like DTC is turned off on the other machine. Can you confirm that it is on and try again?

Thanks,
Sam Lester (MSFT)

|||Hello Sam,

Thanks for the prompt reply. As a matter of fact, trying any operation on the Server System which itself runs SQL 7.0 returns the MSDTC not running message. If it works on the Server System then I can try debugging problems on other Client Systems.

Kindly let me have probable resolution to this.

Thanks & Regards - Rajesh Pathak