Showing posts with label service. Show all posts
Showing posts with label service. Show all posts

Thursday, March 22, 2012

Bug? No WSDL information fo a WEBMETHOD that points to a table-value function

Hello all,

I'm trying to create a web service that merely exposes a table value function. I have a dummy function that looks like this (in a DB called ReportingDB):

USE [ReportingDB];
DROP function [dbo].[TestFN];
GO
CREATE FUNCTION [dbo].[TestFN] ()
RETURNS
@.Table_Var TABLE (c1 int, c2 int)
AS
BEGIN
RETURN
END;
GO

My web service definition looks like this:

DROP ENDPOINT sql;
go

CREATE ENDPOINT sql
STATE = STARTED
AS HTTP(
PATH = '/sql',
AUTHENTICATION = (INTEGRATED ),
PORTS = ( CLEAR ),
CLEAR_PORT = 90,
SITE = 'mypc'
)
FOR SOAP (
WEBMETHOD 'TestFN'
(name='ReportingDB.dbo.TestFN', SCHEMA=STANDARD),
WSDL = DEFAULT,
SCHEMA = STANDARD,
DATABASE = 'ReportingDB',
NAMESPACE = 'http://tempUri.org/'
);
go

Everything succeeds, however, the problem is that the TestFN function is not visible in the generated WSDL (http://mypc:90/sql?wsdl). If I do the same with a stored procedure instead of a function, then it works as expected, so it seems that I'm missing something or that this is a bug of SQL Server 2005.

Could somebody please shed some light on this issue?

Regards,

Ianier

Hi imj,

I think this comes from the type of function that you used. Your TestFN is a Table-valued function. I tried it with a Scalar-valued function, and it worked, the method is noted in the wsdl.

Here's my sample code:

DROP function [dbo].[TestFN];

GO

CREATE FUNCTION TestFN (@.DATE datetime)

RETURNS int

AS

BEGIN

DECLARE @.retVal int

SET @.retVal=1

RETURN(@.retVal)

END

GO

DROP ENDPOINT sql;

go

CREATE ENDPOINT sql

STATE = STARTED

AS HTTP(

PATH = '/sql/test',

AUTHENTICATION = (INTEGRATED ),

PORTS = ( CLEAR ),

CLEAR_PORT = 90,

SITE = 'mypc.domain.com'

)

FOR SOAP (

WEBMETHOD

'http://tempuri.org/'.'TestFN'

(NAME = 'ReportingDB.dbo.TestFN'),

BATCHES = ENABLED,

WSDL = DEFAULT

)

go

/*GRANT CONNECT ON ENDPOINT::sql TO [xxx\yyy]*/

Best regards,
Marcus

|||Thanks Marcus,

Then it may be a SQL Server bug, since the CREATE ENDPOINT command succeeds. Should I get no answer here, I will open a bug report about this.
The reason why I would like to use table-value functions instead of stored procedures is that, since the metadata for table-value functions results is known in advance, I was expecting to see a typed dataset (or array) in the WSDL. That would let me use my function from, say, InfoPath.
Regards,

Ianier|||Hi again,

FYI, I sent a bug report: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?FeedbackId=9e1e9b79-079d-40eb-b3f8-441432a26cbc
Nevertheless, it's hard for me to believe that such a serious issue escaped Microsoft's testing, so I'm still hoping that I'm missing something obvious.
Regards,

Ianier|||SQL Server's SOAP does not support table valued functions unfortunately. This is why it's not working. I found this out by talking to one of the testers. I cannot find where this is mentioned in the docs yet.|||Hello,

Thanks for the info.
That would be a major disapointment. This limitation is not documented and CREATE ENDPOINT reports no error, so this must be either a bug or an "undocumented odd behavior", which is the same.
IMO, not allowing table-value functions in a SOAP endpoint makes the WS feature extremely limited, if useful at all.
I'll come back to this group as soon as I get some feedback on my bug report.
Regards,

Ianier|||

The SQL 2005 Books Online documentation does have a statement stating that Table Value Functions are not supported in Native XML Web Services. Under the "Guidelines and Limitations in Native XML Web Services" topic (ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/8907005f-7f9b-4f53-80b8-f42729caf86b.htm), there's a bullet point saying:

Table valued user-defined functions are not supported.|||Thank you Jimmy,

In that case CREATE ENDPOINT should not succeed. This is definitely a bug.
Regards,

Ianier|||

Hi Ianier,

Thanks for the feedback.
SQL 2005 actually allows the "CREATE ENDPOINT" query to be executed before any of the webmethods are created.
ie.
CREATE ENDPOINT sql
STATE = STARTED
AS HTTP(
PATH = '/sql',
AUTHENTICATION = (INTEGRATED ),
PORTS = ( CLEAR ),
CLEAR_PORT = 90,
SITE = 'mypc'
)
FOR SOAP (
WEBMETHOD 'TestFN'
(name='ReportingDB.dbo.TestFN', SCHEMA=STANDARD),
WSDL = DEFAULT,
SCHEMA = STANDARD,
DATABASE = 'ReportingDB',
NAMESPACE = 'http://tempUri.org/'
);
go

CREATE FUNCTION [dbo].[TestFN] ()
RETURNS
@.Table_Var TABLE (c1 int, c2 int)
AS
BEGIN
RETURN
END;
GO

In this scenario is would not be possible for the CREATE ENDPOINT query to verify what the webmethod is. You can argue that this should be a bug as well, but the current behavior provides a more flexible system. Suppose we were strict about requiring the webmethods to be created before the CREATE ENDPOINT query, what would happen if after the stored procedure or function was created, someone went and ALTER it or even DELETE it? Should the different endpoints to magically re-verify that the new version of the webmethod is still valid or even there?

The current mechanism allows SQL to verify at execution/run time that the methods are valid and the user has the proper permissions.

Hope that addresses some of your concerns.
Jimmy Wu [MSFT]

|||

Hi Jimmy,

Thanks for the information.

Common sense tells me that if the function exists and is not of a supported type (i.e. a table-value one) then CREATE ENDPOINT should fail. After all, CREATE ENDPOINT fails, for example, when trying to bind a WEBMETHOD to a view because views are not supported.

If someone ALTERs or DELETEs the function afterwards in a way that is not compatible with the endpoint, either of the following should happen:
Option 1: give an error explaining that the WEBMETHOD should be modified first (i.e. there's a dependency).
Option 2: delete the WEBMETHOD automatically and give a warning to the user.

Regards,

Ianier

sql

Bug? No WSDL information fo a WEBMETHOD that points to a table-value function

Hello all,

I'm trying to create a web service that merely exposes a table value function. I have a dummy function that looks like this (in a DB called ReportingDB):

USE [ReportingDB];
DROP function [dbo].[TestFN];
GO
CREATE FUNCTION [dbo].[TestFN] ()
RETURNS
@.Table_Var TABLE (c1 int, c2 int)
AS
BEGIN
RETURN
END;
GO

My web service definition looks like this:

DROP ENDPOINT sql;
go

CREATE ENDPOINT sql
STATE = STARTED
AS HTTP(
PATH = '/sql',
AUTHENTICATION = (INTEGRATED ),
PORTS = ( CLEAR ),
CLEAR_PORT = 90,
SITE = 'mypc'
)
FOR SOAP (
WEBMETHOD 'TestFN'
(name='ReportingDB.dbo.TestFN', SCHEMA=STANDARD),
WSDL = DEFAULT,
SCHEMA = STANDARD,
DATABASE = 'ReportingDB',
NAMESPACE = 'http://tempUri.org/'
);
go

Everything succeeds, however, the problem is that the TestFN function is not visible in the generated WSDL (http://mypc:90/sql?wsdl). If I do the same with a stored procedure instead of a function, then it works as expected, so it seems that I'm missing something or that this is a bug of SQL Server 2005.

Could somebody please shed some light on this issue?

Regards,

Ianier

Hi imj,

I think this comes from the type of function that you used. Your TestFN is a Table-valued function. I tried it with a Scalar-valued function, and it worked, the method is noted in the wsdl.

Here's my sample code:

DROP function [dbo].[TestFN];

GO

CREATE FUNCTION TestFN (@.DATE datetime)

RETURNS int

AS

BEGIN

DECLARE @.retVal int

SET @.retVal=1

RETURN(@.retVal)

END

GO

DROP ENDPOINT sql;

go

CREATE ENDPOINT sql

STATE = STARTED

AS HTTP(

PATH = '/sql/test',

AUTHENTICATION = (INTEGRATED ),

PORTS = ( CLEAR ),

CLEAR_PORT = 90,

SITE = 'mypc.domain.com'

)

FOR SOAP (

WEBMETHOD

'http://tempuri.org/'.'TestFN'

(NAME = 'ReportingDB.dbo.TestFN'),

BATCHES = ENABLED,

WSDL = DEFAULT

)

go

/*GRANT CONNECT ON ENDPOINT::sql TO [xxx\yyy]*/

Best regards,
Marcus

|||Thanks Marcus,

Then it may be a SQL Server bug, since the CREATE ENDPOINT command succeeds. Should I get no answer here, I will open a bug report about this.
The reason why I would like to use table-value functions instead of stored procedures is that, since the metadata for table-value functions results is known in advance, I was expecting to see a typed dataset (or array) in the WSDL. That would let me use my function from, say, InfoPath.
Regards,

Ianier
|||Hi again,

FYI, I sent a bug report: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?FeedbackId=9e1e9b79-079d-40eb-b3f8-441432a26cbc
Nevertheless, it's hard for me to believe that such a serious issue escaped Microsoft's testing, so I'm still hoping that I'm missing something obvious.
Regards,

Ianier
|||SQL Server's SOAP does not support table valued functions unfortunately. This is why it's not working. I found this out by talking to one of the testers. I cannot find where this is mentioned in the docs yet.|||Hello,

Thanks for the info.
That would be a major disapointment. This limitation is not documented and CREATE ENDPOINT reports no error, so this must be either a bug or an "undocumented odd behavior", which is the same.
IMO, not allowing table-value functions in a SOAP endpoint makes the WS feature extremely limited, if useful at all.
I'll come back to this group as soon as I get some feedback on my bug report.
Regards,

Ianier
|||

The SQL 2005 Books Online documentation does have a statement stating that Table Value Functions are not supported in Native XML Web Services. Under the "Guidelines and Limitations in Native XML Web Services" topic (ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/8907005f-7f9b-4f53-80b8-f42729caf86b.htm), there's a bullet point saying:

Table valued user-defined functions are not supported.|||Thank you Jimmy,

In that case CREATE ENDPOINT should not succeed. This is definitely a bug.
Regards,

Ianier
|||

Hi Ianier,

Thanks for the feedback.
SQL 2005 actually allows the "CREATE ENDPOINT" query to be executed before any of the webmethods are created.
ie.
CREATE ENDPOINT sql
STATE = STARTED
AS HTTP(
PATH = '/sql',
AUTHENTICATION = (INTEGRATED ),
PORTS = ( CLEAR ),
CLEAR_PORT = 90,
SITE = 'mypc'
)
FOR SOAP (
WEBMETHOD 'TestFN'
(name='ReportingDB.dbo.TestFN', SCHEMA=STANDARD),
WSDL = DEFAULT,
SCHEMA = STANDARD,
DATABASE = 'ReportingDB',
NAMESPACE = 'http://tempUri.org/'
);
go

CREATE FUNCTION [dbo].[TestFN] ()
RETURNS
@.Table_Var TABLE (c1 int, c2 int)
AS
BEGIN
RETURN
END;
GO

In this scenario is would not be possible for the CREATE ENDPOINT query to verify what the webmethod is. You can argue that this should be a bug as well, but the current behavior provides a more flexible system. Suppose we were strict about requiring the webmethods to be created before the CREATE ENDPOINT query, what would happen if after the stored procedure or function was created, someone went and ALTER it or even DELETE it? Should the different endpoints to magically re-verify that the new version of the webmethod is still valid or even there?

The current mechanism allows SQL to verify at execution/run time that the methods are valid and the user has the proper permissions.

Hope that addresses some of your concerns.
Jimmy Wu [MSFT]

|||

Hi Jimmy,

Thanks for the information.

Common sense tells me that if the function exists and is not of a supported type (i.e. a table-value one) then CREATE ENDPOINT should fail. After all, CREATE ENDPOINT fails, for example, when trying to bind a WEBMETHOD to a view because views are not supported.

If someone ALTERs or DELETEs the function afterwards in a way that is not compatible with the endpoint, either of the following should happen:
Option 1: give an error explaining that the WEBMETHOD should be modified first (i.e. there's a dependency).
Option 2: delete the WEBMETHOD automatically and give a warning to the user.

Regards,

Ianier

Tuesday, March 20, 2012

BUG: Cannot create subscription as NT AUTHORITY\NETWORK SERVICE

Platform:
Windows 2003 Server Enterprise Edition
SQL Server 2000 Developer Edition SP 3
Reporting Services 2000 Developer Edition SP 2
Hi,
I believe I have encountered a bug in Reporting Services and SQL Server.
To reproduce:
Set the Reporting Service Web Service to run as NT AUTHORITY\NETWORK SERVICE
(I believe this is the default on Windows 2003 server as opposed to the
local ASPNET account) using rsconfig.exe, et al.
Make sure NT AUTHORITY\NETWORK SERVICE has RSExecRole privilege on the
Report Server database, Report Server temp database, master, and msdb.
Then try and create a report subscription. I receive this error:
An internal error occurred on the report server. See the error log for more
details. (rsInternalError) The specified '@.owner_login_name' is invalid
(valid values are returned by sp_helplogins[excluding Windows NT groups]).
My guess is that when the Report Server tries to create a subscription it
does so by invoking sp_add_job/sp_verify_job, this then fails because NT
AUTHORITY\NETWORK SERVICE is a Windows Group. I believe the actual error
above is thrown by the stored procedure, sp_verify_job:
Server: Msg 14234, Level 16, State 1, Procedure sp_verify_job, Line 198
The specified '@.owner_login_name' is invalid (valid values are returned by
sp_helplogins [excluding Windows NT groups]).
or
From sp_verify_job:
-- Now just check that the login id is valid (ie. it exists and isn't an NT
group)
IF (@.owner_sid IS NULL) OR (EXISTS (SELECT *
FROM master.dbo.syslogins
WHERE (sid = @.owner_sid)
AND (isntgroup <> 0)))
BEGIN
-- NOTE: In the following message we quote @.owner_login_name instead of
@.owner_sid
-- since this is the parameter the user passed to the calling SP
(ie. either
-- sp_add_job or sp_update_job)
SELECT @.res_valid_range = FORMATMESSAGE(14203)
RAISERROR(14234, -1, -1, '@.owner_login_name', @.res_valid_range)
RETURN(1) -- Failure
END
Thanks,
Bryan"BDB" <bdb@.reply.to.group.com> wrote in message
news:OJi2X7QnFHA.3900@.TK2MSFTNGP09.phx.gbl...
> Platform:
> Windows 2003 Server Enterprise Edition
> SQL Server 2000 Developer Edition SP 3
> Reporting Services 2000 Developer Edition SP 2
> Hi,
> I believe I have encountered a bug in Reporting Services and SQL Server.
> To reproduce:
> Set the Reporting Service Web Service to run as NT AUTHORITY\NETWORK
> SERVICE (I believe this is the default on Windows 2003 server as opposed
> to the local ASPNET account) using rsconfig.exe, et al.
> Make sure NT AUTHORITY\NETWORK SERVICE has RSExecRole privilege on the
> Report Server database, Report Server temp database, master, and msdb.
> Then try and create a report subscription. I receive this error:
> An internal error occurred on the report server. See the error log for
> more details. (rsInternalError) The specified '@.owner_login_name' is
> invalid (valid values are returned by sp_helplogins[excluding Windows NT
> groups]).
>
> My guess is that when the Report Server tries to create a subscription it
> does so by invoking sp_add_job/sp_verify_job, this then fails because NT
> AUTHORITY\NETWORK SERVICE is a Windows Group. I believe the actual error
> above is thrown by the stored procedure, sp_verify_job:
> Server: Msg 14234, Level 16, State 1, Procedure sp_verify_job, Line 198
> The specified '@.owner_login_name' is invalid (valid values are returned by
> sp_helplogins [excluding Windows NT groups]).
> or
> From sp_verify_job:
> -- Now just check that the login id is valid (ie. it exists and isn't an
> NT group)
> IF (@.owner_sid IS NULL) OR (EXISTS (SELECT *
> FROM master.dbo.syslogins
> WHERE (sid = @.owner_sid)
> AND (isntgroup <> 0)))
> BEGIN
> -- NOTE: In the following message we quote @.owner_login_name instead of
> @.owner_sid
> -- since this is the parameter the user passed to the calling SP
> (ie. either
> -- sp_add_job or sp_update_job)
> SELECT @.res_valid_range = FORMATMESSAGE(14203)
> RAISERROR(14234, -1, -1, '@.owner_login_name', @.res_valid_range)
> RETURN(1) -- Failure
> END
>
> Thanks,
> Bryan
>
This bug was fixed (hacked, IMO) in SQL Server 2000 SP4. I have no idea if
a KB article was ever published.|||We've applied SP4 for SQL and still have the error. How did you "fix" it?
--
Thanks,
CGW
"BDB" wrote:
> "BDB" <bdb@.reply.to.group.com> wrote in message
> news:OJi2X7QnFHA.3900@.TK2MSFTNGP09.phx.gbl...
> > Platform:
> > Windows 2003 Server Enterprise Edition
> > SQL Server 2000 Developer Edition SP 3
> > Reporting Services 2000 Developer Edition SP 2
> >
> > Hi,
> >
> > I believe I have encountered a bug in Reporting Services and SQL Server.
> >
> > To reproduce:
> >
> > Set the Reporting Service Web Service to run as NT AUTHORITY\NETWORK
> > SERVICE (I believe this is the default on Windows 2003 server as opposed
> > to the local ASPNET account) using rsconfig.exe, et al.
> >
> > Make sure NT AUTHORITY\NETWORK SERVICE has RSExecRole privilege on the
> > Report Server database, Report Server temp database, master, and msdb.
> >
> > Then try and create a report subscription. I receive this error:
> >
> > An internal error occurred on the report server. See the error log for
> > more details. (rsInternalError) The specified '@.owner_login_name' is
> > invalid (valid values are returned by sp_helplogins[excluding Windows NT
> > groups]).
> >
> >
> >
> > My guess is that when the Report Server tries to create a subscription it
> > does so by invoking sp_add_job/sp_verify_job, this then fails because NT
> > AUTHORITY\NETWORK SERVICE is a Windows Group. I believe the actual error
> > above is thrown by the stored procedure, sp_verify_job:
> >
> > Server: Msg 14234, Level 16, State 1, Procedure sp_verify_job, Line 198
> > The specified '@.owner_login_name' is invalid (valid values are returned by
> > sp_helplogins [excluding Windows NT groups]).
> >
> > or
> >
> > From sp_verify_job:
> >
> > -- Now just check that the login id is valid (ie. it exists and isn't an
> > NT group)
> > IF (@.owner_sid IS NULL) OR (EXISTS (SELECT *
> > FROM master.dbo.syslogins
> > WHERE (sid = @.owner_sid)
> > AND (isntgroup <> 0)))
> > BEGIN
> > -- NOTE: In the following message we quote @.owner_login_name instead of
> > @.owner_sid
> > -- since this is the parameter the user passed to the calling SP
> > (ie. either
> > -- sp_add_job or sp_update_job)
> > SELECT @.res_valid_range = FORMATMESSAGE(14203)
> > RAISERROR(14234, -1, -1, '@.owner_login_name', @.res_valid_range)
> > RETURN(1) -- Failure
> > END
> >
> >
> > Thanks,
> > Bryan
> >
> This bug was fixed (hacked, IMO) in SQL Server 2000 SP4. I have no idea if
> a KB article was ever published.
>
>

Thursday, March 8, 2012

Bug in Report Server?

I am running a report using RS2005. It connects to a web service using the XML data source. It works correctly in my development environment. When I put it up on the server and run the report, I get the error message:

  • An error occurred during rendering of the report.

  • An error occurred during rendering of the report.

  • Item has already been added. Key in dictionary: '1' Key being added: '1'

    If I run the web service from the server, it returns correct data, so I know error is not coming from my web service. The only answer I can think of is that there is a bug in the Report Server's or XML Data Source's code.

    Has anyone else seen this problem?

    Thank you,

    Jessica

    Hi Jessica, could you please repro the bug and send me most recent RS logs to almineev. At microsoft. Com.

    RS logs are located at location similar to this one: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles

    |||

    Jessica, did you ever find out the solution for your problem? I am experiencing a similar issue now.

    Thanks,

    James

    |||It hapened to me, more or less the same.

    For what I know it can be a problem with the default values of the

    Report Parameters... they should not be originated by a query.

    I had this problem and puting this as static or calculated values solved the issue...

    Not the best way as by default the user's are not getting the data shown, but that's a solution.

    Hope Microsoft solves the issue.. as this is a serious bug.

    Regards,

    Jose|||

    Our problem was two report items on top of each other. Once we moved one of them over by just a little bit, the error went away.

    I'm assuming it was something in the server code that wasn't handling the scenario of the same positional coordinates being inserted into a hash table, but that's just a guess.

    We solved it by recreating the report one item at a time, uploading after each item. When we layered the second item on top of the first, that's when we received that message.

    Good luck with everyone else trying to get this to work!

    -Jessica

  • Bug in Report Server?

    I am running a report using RS2005. It connects to a web service using the XML data source. It works correctly in my development environment. When I put it up on the server and run the report, I get the error message:

  • An error occurred during rendering of the report.

  • An error occurred during rendering of the report.

  • Item has already been added. Key in dictionary: '1' Key being added: '1'

    If I run the web service from the server, it returns correct data, so I know error is not coming from my web service. The only answer I can think of is that there is a bug in the Report Server's or XML Data Source's code.

    Has anyone else seen this problem?

    Thank you,

    Jessica

    Hi Jessica, could you please repro the bug and send me most recent RS logs to almineev. At microsoft. Com.

    RS logs are located at location similar to this one: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles

    |||

    Jessica, did you ever find out the solution for your problem? I am experiencing a similar issue now.

    Thanks,

    James

    |||It hapened to me, more or less the same.

    For what I know it can be a problem with the default values of the

    Report Parameters... they should not be originated by a query.

    I had this problem and puting this as static or calculated values solved the issue...

    Not the best way as by default the user's are not getting the data shown, but that's a solution.

    Hope Microsoft solves the issue.. as this is a serious bug.

    Regards,

    Jose|||

    Our problem was two report items on top of each other. Once we moved one of them over by just a little bit, the error went away.

    I'm assuming it was something in the server code that wasn't handling the scenario of the same positional coordinates being inserted into a hash table, but that's just a guess.

    We solved it by recreating the report one item at a time, uploading after each item. When we layered the second item on top of the first, that's when we received that message.

    Good luck with everyone else trying to get this to work!

    -Jessica

  • Bug in Report Server?

    I am running a report using RS2005. It connects to a web service using the XML data source. It works correctly in my development environment. When I put it up on the server and run the report, I get the error message:

  • An error occurred during rendering of the report.
  • An error occurred during rendering of the report.
  • Item has already been added. Key in dictionary: '1' Key being added: '1'

    If I run the web service from the server, it returns correct data, so I know error is not coming from my web service. The only answer I can think of is that there is a bug in the Report Server's or XML Data Source's code.

    Has anyone else seen this problem?

    Thank you,

    Jessica

    Hi Jessica, could you please repro the bug and send me most recent RS logs to almineev. At microsoft. Com.

    RS logs are located at location similar to this one: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles

    |||

    Jessica, did you ever find out the solution for your problem? I am experiencing a similar issue now.

    Thanks,

    James

    |||It hapened to me, more or less the same.
    For what I know it can be a problem with the default values of the Report Parameters... they should not be originated by a query.
    I had this problem and puting this as static or calculated values solved the issue...
    Not the best way as by default the user's are not getting the data shown, but that's a solution.
    Hope Microsoft solves the issue.. as this is a serious bug.
    Regards,
    Jose|||

    Our problem was two report items on top of each other. Once we moved one of them over by just a little bit, the error went away.

    I'm assuming it was something in the server code that wasn't handling the scenario of the same positional coordinates being inserted into a hash table, but that's just a guess.

    We solved it by recreating the report one item at a time, uploading after each item. When we layered the second item on top of the first, that's when we received that message.

    Good luck with everyone else trying to get this to work!

    -Jessica

  • Bug in Report Server?

    I am running a report using RS2005. It connects to a web service using the XML data source. It works correctly in my development environment. When I put it up on the server and run the report, I get the error message:

  • An error occurred during rendering of the report.

  • An error occurred during rendering of the report.

  • Item has already been added. Key in dictionary: '1' Key being added: '1'

    If I run the web service from the server, it returns correct data, so I know error is not coming from my web service. The only answer I can think of is that there is a bug in the Report Server's or XML Data Source's code.

    Has anyone else seen this problem?

    Thank you,

    Jessica

    Hi Jessica, could you please repro the bug and send me most recent RS logs to almineev. At microsoft. Com.

    RS logs are located at location similar to this one: C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles

    |||

    Jessica, did you ever find out the solution for your problem? I am experiencing a similar issue now.

    Thanks,

    James

    |||It hapened to me, more or less the same.

    For what I know it can be a problem with the default values of the

    Report Parameters... they should not be originated by a query.

    I had this problem and puting this as static or calculated values solved the issue...

    Not the best way as by default the user's are not getting the data shown, but that's a solution.

    Hope Microsoft solves the issue.. as this is a serious bug.

    Regards,

    Jose|||

    Our problem was two report items on top of each other. Once we moved one of them over by just a little bit, the error went away.

    I'm assuming it was something in the server code that wasn't handling the scenario of the same positional coordinates being inserted into a hash table, but that's just a guess.

    We solved it by recreating the report one item at a time, uploading after each item. When we layered the second item on top of the first, that's when we received that message.

    Good luck with everyone else trying to get this to work!

    -Jessica

  • Friday, February 24, 2012

    Browser tab error/crash in BIDS when I want to browse data

    I just a newbie , for SQL Analysis service 2005

    I followed Analyasis Service Tutorial to create Analysis Project when I done everything after create data source , DSV , create cube and processing cube. I click deploy project and when I click browser tab it's crash and BIDS(Business Intelligence Development Studio) hang not response.

    What should I do ? Any suggestion. While after deploy I can use other tab near browser tab properly.

    What kind of error you are getting?

    See what happens if you wait a little bit. The deployment is sending command to Analysis Server that needs to process a cube and then executes a query to show your results in BIDS. This all might take some time. So wait till deplyment finishes and then go and browse your data.

    See if installing SP2 helps you getting better performace out of your cube.

    Edward.
    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Sunday, February 19, 2012

    BROKER_QUEUE_DISABLED problems

    I have created a queue and service all in the same database as follows:

    CREATE QUEUE ODS.[Queue Watch];

    CREATE SERVICE [Queue Watch Service]

    ON QUEUE [Queue Watch];

    Next I created an event Notification as:

    CREATE EVENT NOTIFICATION [OrderQueueDisabled]

    ON QUEUE [ODS].[Order Process Queue]

    FOR BROKER_QUEUE_DISABLED

    TO SERVICE 'Queue Watch Service', 'current database';

    When I get the queue to disable ([ODS].[Order Process Queue] ) by setting the activated stored procedure to do a 'Select 1/0', I don't get a message in the ODS.[Queue Watch] queue. There is nothing returned from any of the following queries:

    Select * from sys.transmission_queue

    SELECT * FROM sys.server_event_notifications

    Select * from [ODS].[Queue Watch]

    select * from sys.dm_qn_subscriptions

    All of this is running the same database.

    .

    The rollback handler is a "poison message detection" mechanism. It detects rollbacks after a message has been RECEIVEd from a queue. It should not be understood as an "activated stored proc abort detection" mechanism.

    In your case, you aborted having never RECEIVEd a message so the mechanism did not fire.

    The same mechanism works for both activated stored procs and external applications that are written using ADO, OLEDB, ODBC, etc.

    |||Sorry I didn't point that out but I did recieve a message and it ran until the queue was disabled (5 times). Shouldn't the Notification show up in the Dynamic Managed view regardless?|||

    Start the profiler and check (ie. turn on) the broker monitoring events. You should see a trace message like this:

    EventClass = Broker:Message Undeliverable

    This message could not be delivered because the targeted service does not support the service contract. Targeted service: 'Queue Watch Service', service contract:
    'http://schemas.microsoft.com/SQL/Notifications/PostEventNotification'.

    If you subscribe to one of SQL Server events, the targetted service, in your case the "Queue Watch Service", must support the message contract used by SQL Server.

    Change your CREATE SERVICE to look like this:

    create SERVICE [Queue Watch Service]

    ON QUEUE ODS.[Queue Watch]

    ([http://schemas.microsoft.com/SQL/Notifications/PostEventNotification]);

    |||

    Btw, your original code snippet included several "SELECTs ..." at the end. I'm guessing you were using one (both?) of the following to confirm that your CREATE EVENT worked:

    SELECT * FROM sys.server_event_notifications

    select * from sys.dm_qn_subscriptions

    Neither of them will contain it. sys.dm_qn_subscription is a view that contains rows (subscriptions) resulting from usage of the query notifications feature. sys.server_event notifications is a view that contains rows resulting from CREATE EVENT calls, but for server-scoped events. The particular event you are subscribing to receive (BROKER_QUEUE_DISABLED) is a database-scoped event. The view that will contain a row representing this CREATE EVENT call is:

    select * from sys.event_notifications

    |||That worked. Thanks Gerald. Sorry for the long delay. We all need a vacation now and then.

    BROKER_QUEUE_DISABLED problems

    I have created a queue and service all in the same database as follows:

    CREATE QUEUE ODS.[Queue Watch];

    CREATE SERVICE [Queue Watch Service]

    ON QUEUE [Queue Watch];

    Next I created an event Notification as:

    CREATE EVENT NOTIFICATION [OrderQueueDisabled]

    ON QUEUE [ODS].[Order Process Queue]

    FOR BROKER_QUEUE_DISABLED

    TO SERVICE 'Queue Watch Service', 'current database';

    When I get the queue to disable ([ODS].[Order Process Queue] ) by setting the activated stored procedure to do a 'Select 1/0', I don't get a message in the ODS.[Queue Watch] queue. There is nothing returned from any of the following queries:

    Select * from sys.transmission_queue

    SELECT * FROM sys.server_event_notifications

    Select * from [ODS].[Queue Watch]

    select * from sys.dm_qn_subscriptions

    All of this is running the same database.

    .

    The rollback handler is a "poison message detection" mechanism. It detects rollbacks after a message has been RECEIVEd from a queue. It should not be understood as an "activated stored proc abort detection" mechanism.

    In your case, you aborted having never RECEIVEd a message so the mechanism did not fire.

    The same mechanism works for both activated stored procs and external applications that are written using ADO, OLEDB, ODBC, etc.

    |||Sorry I didn't point that out but I did recieve a message and it ran until the queue was disabled (5 times). Shouldn't the Notification show up in the Dynamic Managed view regardless?|||

    Start the profiler and check (ie. turn on) the broker monitoring events. You should see a trace message like this:

    EventClass = Broker:Message Undeliverable

    This message could not be delivered because the targeted service does not support the service contract. Targeted service: 'Queue Watch Service', service contract:
    'http://schemas.microsoft.com/SQL/Notifications/PostEventNotification'.

    If you subscribe to one of SQL Server events, the targetted service, in your case the "Queue Watch Service", must support the message contract used by SQL Server.

    Change your CREATE SERVICE to look like this:

    create SERVICE [Queue Watch Service]

    ON QUEUE ODS.[Queue Watch]

    ([http://schemas.microsoft.com/SQL/Notifications/PostEventNotification]);

    |||

    Btw, your original code snippet included several "SELECTs ..." at the end. I'm guessing you were using one (both?) of the following to confirm that your CREATE EVENT worked:

    SELECT * FROM sys.server_event_notifications

    select * from sys.dm_qn_subscriptions

    Neither of them will contain it. sys.dm_qn_subscription is a view that contains rows (subscriptions) resulting from usage of the query notifications feature. sys.server_event notifications is a view that contains rows resulting from CREATE EVENT calls, but for server-scoped events. The particular event you are subscribing to receive (BROKER_QUEUE_DISABLED) is a database-scoped event. The view that will contain a row representing this CREATE EVENT call is:

    select * from sys.event_notifications

    |||That worked. Thanks Gerald. Sorry for the long delay. We all need a vacation now and then.

    broker and mirroring

    Hi,

    I tried to setup a service broker from one database to another that is mirrored. I specified the mirror address in the create route sql. When I tried to failover to the mirror database, the message was never sent to the mirror database. I do not see any error in transmission_status of sys.transmission_queue. I do see the following errors in the sql log

    Service Broker login attempt failed with error: 'Connection handshake failed. The certificate used by the peer is invalid due to the following reason: Certificate not found. State 89.'. [CLIENT: 10.76.223.38]

    The mirror route is not operational. 'TCP://11.78.223.54:4022' is acting as 'Mirror' []. 'TCP://11.78.223.38:4022' is acting as 'Unknown' [].

    what should I be checking here?

    thanks

    P

    Hi P,

    Looks like you did set up the endpoint authentication between the sender and the mirror, but you did not set up the endpoint authentication between the sender and the principal. Therefore the sender cannot connect to the principal. Exchange the certificates, create the login, grant CONNECT permission etc.

    In order to use the mirrored route, the sender's instance must be able to connect and authenticate with both instances involved in the mirroring session (principal and mirror).

    HTH,
    ~ Remus

    Broadcast Storm

    I have a SQL server 2000 with service pack 3 installed.
    This morning I saw that its CPU utilization is about 98%
    and it was broadcasting something to all network
    computers.
    I checked for any virus but nothing found.
    Could you help me?It's most likely slammer. Have a look here:
    http://www.aspfaq.com/show.asp?id=2440 SQL Slammer info
    --
    Andrew J. Kelly
    SQL Server MVP
    "payman" <paymanzafar@.yahoo.com> wrote in message
    news:05fe01c3b0d0$7d80e030$a401280a@.phx.gbl...
    > I have a SQL server 2000 with service pack 3 installed.
    > This morning I saw that its CPU utilization is about 98%
    > and it was broadcasting something to all network
    > computers.
    > I checked for any virus but nothing found.
    > Could you help me?

    Bringing up SQL Server 2000

    Hi,
    I was trying to test SQL Server 2000 master database restore and to do that
    I stopped MSSQLSERVER service and tried to restart with a single user mode.
    However, on typing the command "sqlservr.exe -m" in the Command window it
    stops at the point where it says "Using 'xplog70.dll' version '2000.80.760'
    to execute extended stored procedure 'xp_msver" and it just does not do
    anything.
    Then I started it with -m -f option and the last line in the command window
    is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec procedures
    skipped." and it does not do anything after that.
    Am I doing something wrong? Thanks in advance.
    All is fine. Leave the command prompt as is, connect using OSQL and execute your RESTORE command.
    Tibor Karaszi, SQL Server MVP
    http://www.karaszi.com/sqlserver/default.asp
    http://www.solidqualitylearning.com/
    "sharman" <sharman@.discussions.microsoft.com> wrote in message
    news:E80139B2-0AC7-4053-AD17-9907AD851B99@.microsoft.com...
    > Hi,
    > I was trying to test SQL Server 2000 master database restore and to do that
    > I stopped MSSQLSERVER service and tried to restart with a single user mode.
    > However, on typing the command "sqlservr.exe -m" in the Command window it
    > stops at the point where it says "Using 'xplog70.dll' version '2000.80.760'
    > to execute extended stored procedure 'xp_msver" and it just does not do
    > anything.
    > Then I started it with -m -f option and the last line in the command window
    > is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec procedures
    > skipped." and it does not do anything after that.
    > Am I doing something wrong? Thanks in advance.
    |||Thanks for the response. Can you please let me know what commands are used to
    run Restore through OSQL and do I run them in the Command Prompt window or
    Query analyzer?
    "Tibor Karaszi" wrote:

    > All is fine. Leave the command prompt as is, connect using OSQL and execute your RESTORE command.
    > --
    > Tibor Karaszi, SQL Server MVP
    > http://www.karaszi.com/sqlserver/default.asp
    > http://www.solidqualitylearning.com/
    >
    > "sharman" <sharman@.discussions.microsoft.com> wrote in message
    > news:E80139B2-0AC7-4053-AD17-9907AD851B99@.microsoft.com...
    >
    >
    |||You can open another Command Prompt window (not the one you started SQL
    Server in, just leave that alone until you're ready to stop the service) to
    run osql or open Query Analyzer. The command to restore a database is
    RESTORE DATABASE. You should look up the full syntax of the RESTORE DATABASE
    command in the Books Online, study it a bit, and then feel free to ask more
    questions.
    HTH
    Kalen Delaney, SQL Server MVP
    www.InsideSQLServer.com
    http://sqlblog.com
    "sharman" <sharman@.discussions.microsoft.com> wrote in message
    news:EE86914A-42FD-4485-8C33-E5C02400B0EC@.microsoft.com...[vbcol=seagreen]
    > Thanks for the response. Can you please let me know what commands are used
    > to
    > run Restore through OSQL and do I run them in the Command Prompt window or
    > Query analyzer?
    > "Tibor Karaszi" wrote:

    Bringing up SQL Server 2000

    Hi,
    I was trying to test SQL Server 2000 master database restore and to do that
    I stopped MSSQLSERVER service and tried to restart with a single user mode.
    However, on typing the command "sqlservr.exe -m" in the Command window it
    stops at the point where it says "Using 'xplog70.dll' version '2000.80.760'
    to execute extended stored procedure 'xp_msver" and it just does not do
    anything.
    Then I started it with -m -f option and the last line in the command window
    is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec procedures
    skipped." and it does not do anything after that.
    Am I doing something wrong? Thanks in advance.All is fine. Leave the command prompt as is, connect using OSQL and execute your RESTORE command.
    --
    Tibor Karaszi, SQL Server MVP
    http://www.karaszi.com/sqlserver/default.asp
    http://www.solidqualitylearning.com/
    "sharman" <sharman@.discussions.microsoft.com> wrote in message
    news:E80139B2-0AC7-4053-AD17-9907AD851B99@.microsoft.com...
    > Hi,
    > I was trying to test SQL Server 2000 master database restore and to do that
    > I stopped MSSQLSERVER service and tried to restart with a single user mode.
    > However, on typing the command "sqlservr.exe -m" in the Command window it
    > stops at the point where it says "Using 'xplog70.dll' version '2000.80.760'
    > to execute extended stored procedure 'xp_msver" and it just does not do
    > anything.
    > Then I started it with -m -f option and the last line in the command window
    > is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec procedures
    > skipped." and it does not do anything after that.
    > Am I doing something wrong? Thanks in advance.|||Thanks for the response. Can you please let me know what commands are used to
    run Restore through OSQL and do I run them in the Command Prompt window or
    Query analyzer?
    "Tibor Karaszi" wrote:
    > All is fine. Leave the command prompt as is, connect using OSQL and execute your RESTORE command.
    > --
    > Tibor Karaszi, SQL Server MVP
    > http://www.karaszi.com/sqlserver/default.asp
    > http://www.solidqualitylearning.com/
    >
    > "sharman" <sharman@.discussions.microsoft.com> wrote in message
    > news:E80139B2-0AC7-4053-AD17-9907AD851B99@.microsoft.com...
    > > Hi,
    > >
    > > I was trying to test SQL Server 2000 master database restore and to do that
    > > I stopped MSSQLSERVER service and tried to restart with a single user mode.
    > > However, on typing the command "sqlservr.exe -m" in the Command window it
    > > stops at the point where it says "Using 'xplog70.dll' version '2000.80.760'
    > > to execute extended stored procedure 'xp_msver" and it just does not do
    > > anything.
    > >
    > > Then I started it with -m -f option and the last line in the command window
    > > is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec procedures
    > > skipped." and it does not do anything after that.
    > >
    > > Am I doing something wrong? Thanks in advance.
    >
    >|||You can open another Command Prompt window (not the one you started SQL
    Server in, just leave that alone until you're ready to stop the service) to
    run osql or open Query Analyzer. The command to restore a database is
    RESTORE DATABASE. You should look up the full syntax of the RESTORE DATABASE
    command in the Books Online, study it a bit, and then feel free to ask more
    questions.
    --
    HTH
    Kalen Delaney, SQL Server MVP
    www.InsideSQLServer.com
    http://sqlblog.com
    "sharman" <sharman@.discussions.microsoft.com> wrote in message
    news:EE86914A-42FD-4485-8C33-E5C02400B0EC@.microsoft.com...
    > Thanks for the response. Can you please let me know what commands are used
    > to
    > run Restore through OSQL and do I run them in the Command Prompt window or
    > Query analyzer?
    > "Tibor Karaszi" wrote:
    >> All is fine. Leave the command prompt as is, connect using OSQL and
    >> execute your RESTORE command.
    >> --
    >> Tibor Karaszi, SQL Server MVP
    >> http://www.karaszi.com/sqlserver/default.asp
    >> http://www.solidqualitylearning.com/
    >>
    >> "sharman" <sharman@.discussions.microsoft.com> wrote in message
    >> news:E80139B2-0AC7-4053-AD17-9907AD851B99@.microsoft.com...
    >> > Hi,
    >> >
    >> > I was trying to test SQL Server 2000 master database restore and to do
    >> > that
    >> > I stopped MSSQLSERVER service and tried to restart with a single user
    >> > mode.
    >> > However, on typing the command "sqlservr.exe -m" in the Command window
    >> > it
    >> > stops at the point where it says "Using 'xplog70.dll' version
    >> > '2000.80.760'
    >> > to execute extended stored procedure 'xp_msver" and it just does not do
    >> > anything.
    >> >
    >> > Then I started it with -m -f option and the last line in the command
    >> > window
    >> > is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec
    >> > procedures
    >> > skipped." and it does not do anything after that.
    >> >
    >> > Am I doing something wrong? Thanks in advance.
    >>

    Thursday, February 16, 2012

    Bringing up SQL Server 2000

    Hi,
    I was trying to test SQL Server 2000 master database restore and to do that
    I stopped MSSQLSERVER service and tried to restart with a single user mode.
    However, on typing the command "sqlservr.exe -m" in the Command window it
    stops at the point where it says "Using 'xplog70.dll' version '2000.80.760'
    to execute extended stored procedure 'xp_msver" and it just does not do
    anything.
    Then I started it with -m -f option and the last line in the command window
    is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec procedures
    skipped." and it does not do anything after that.
    Am I doing something wrong? Thanks in advance.All is fine. Leave the command prompt as is, connect using OSQL and execute
    your RESTORE command.
    Tibor Karaszi, SQL Server MVP
    http://www.karaszi.com/sqlserver/default.asp
    http://www.solidqualitylearning.com/
    "sharman" <sharman@.discussions.microsoft.com> wrote in message
    news:E80139B2-0AC7-4053-AD17-9907AD851B99@.microsoft.com...
    > Hi,
    > I was trying to test SQL Server 2000 master database restore and to do tha
    t
    > I stopped MSSQLSERVER service and tried to restart with a single user mode
    .
    > However, on typing the command "sqlservr.exe -m" in the Command window it
    > stops at the point where it says "Using 'xplog70.dll' version '2000.80.760
    '
    > to execute extended stored procedure 'xp_msver" and it just does not do
    > anything.
    > Then I started it with -m -f option and the last line in the command windo
    w
    > is "2007-03-29 14:18:16.24 spid3 Warning: override, autoexec procedure
    s
    > skipped." and it does not do anything after that.
    > Am I doing something wrong? Thanks in advance.|||Thanks for the response. Can you please let me know what commands are used t
    o
    run Restore through OSQL and do I run them in the Command Prompt window or
    Query analyzer?
    "Tibor Karaszi" wrote:

    > All is fine. Leave the command prompt as is, connect using OSQL and execut
    e your RESTORE command.
    > --
    > Tibor Karaszi, SQL Server MVP
    > http://www.karaszi.com/sqlserver/default.asp
    > http://www.solidqualitylearning.com/
    >
    > "sharman" <sharman@.discussions.microsoft.com> wrote in message
    > news:E80139B2-0AC7-4053-AD17-9907AD851B99@.microsoft.com...
    >
    >|||You can open another Command Prompt window (not the one you started SQL
    Server in, just leave that alone until you're ready to stop the service) to
    run osql or open Query Analyzer. The command to restore a database is
    RESTORE DATABASE. You should look up the full syntax of the RESTORE DATABASE
    command in the Books Online, study it a bit, and then feel free to ask more
    questions.
    HTH
    Kalen Delaney, SQL Server MVP
    www.InsideSQLServer.com
    http://sqlblog.com
    "sharman" <sharman@.discussions.microsoft.com> wrote in message
    news:EE86914A-42FD-4485-8C33-E5C02400B0EC@.microsoft.com...[vbcol=seagreen]
    > Thanks for the response. Can you please let me know what commands are used
    > to
    > run Restore through OSQL and do I run them in the Command Prompt window or
    > Query analyzer?
    > "Tibor Karaszi" wrote:
    >

    breaking web service?

    I currently have a SQL 2000 RS SP2 installation and upgraded the back end to
    2005. I think I read somewhere that the web service is not compatible
    anymore? I am using the web services and don't want to have to change any
    code if I don't have to. Will my 2000 WS implementation continue to work
    after I install SSRS 2005?
    Thanks
    ScottHi Scott,
    As for the SQL Server reporting service, the webservice interface should
    definitely change from version 2000 to version 2005 as Reporting service
    2005 has involved some new objects and methods signatures. A simple way to
    check this is compare the WSDL service description of the two ones and look
    for the service interface definiations. If you want to migrate your
    application from RS 2000 to RS 2005, I think it is necessary to regenerate
    the service proxy and use the new proxy methods.
    Sincerely,
    Steven Cheng
    Microsoft MSDN Online Support Lead
    This posting is provided "AS IS" with no warranties, and confers no rights.