Viewing 15 posts - 5,551 through 5,565 (of 5,588 total)
Gekko (5/28/2008)
I have a report that lets users select 1 to Many months of...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 28, 2008 at 8:59 am
If I export to a pdf, it also does not have the barcodes in the report.
The report does print out correctly from VS.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 28, 2008 at 8:40 am
Hello again...
As you can see, posting XML strings is stripping everything out.
I've recoded this to build the string in a more complex method. Hopefully, it will post okay.
This code, when...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 12, 2008 at 6:53 am
Adriaan Davel (5/9/2008)
Hi Wayne,Nice one, have you looked at the performance of using the XML joins in your stored procedure?
In my "casual" testing, XML datasets up to about 1000...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 9, 2008 at 6:00 am
lklein (5/8/2008)
This is the function in the code section - which is different from the beginning article.
If you're not using the function in the beginning article, I don't know what...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 4:43 pm
lklein (5/8/2008)
This is so frustrating... yikes - I get an error running that just in design view right?
Yes, the RaisError raises an error. In Preview mode, you'll see the xml...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 3:38 pm
The following code (based off of your query) works for me. Note that I build the XML string by hand, but your XML string should look similiar.
[Code]
declare @C XML
set @C...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 3:36 pm
As far as your XML code goes, I don't see anything wrong with what you're doing.
I'd really like to see the XML string that's being passed to the report.
How about...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 3:24 pm
lklein (5/8/2008)
Dang I wish that were it - it's all caps in both the sp and in the report pieces.
Is everything is spelled the same?
Well, can you:
1. Post the code...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 2:42 pm
I think I found your problem (at least I hope so)...
you are calling:
=Code.ReturnXML(Parameters!C.Value,"C","CUSTOMER","CUSTOMER_NUMBER")
and in the procedure you are going:
INNER JOIN
@C.nodes('/C/Customer') as m(item) on (CS.CUSTOMER_NUMBER) = m.item.value('Customer_Number[1]','integer')
I just ran a test,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 2:33 pm
lklein (5/8/2008)
Is this right for in my sp
C=my parameter name
Customer=label
Customer_Number=int value
INNER JOIN
@C.nodes('/C/Customer') as m(item) on (CS.CUSTOMER_NUMBER) =...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 2:13 pm
lklein (5/8/2008)
My dataset Parameter code is: =ReturnXML(Parameters!C.Value,"C","Customer","Customer_Number") - C being the name of the multivalue parameter which is defined as string the the parameter details.
try changing that to =Code.ReturnXML(...)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 1:55 pm
bo (5/8/2008)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 1:45 pm
david (5/8/2008)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 1:42 pm
Daniel Durrans (5/8/2008)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 8, 2008 at 1:36 pm
Viewing 15 posts - 5,551 through 5,565 (of 5,588 total)