« first day (3437 days earlier)      last day (1417 days later) » 

5:42 AM
Morning
 
6:19 AM
Morning
 
6:50 AM
Morning
 
7:28 AM
Does anyone know where can I find information about ReportServer2008 database?
I'm trying to get the ConnectionString of a data driven subscription. I can get the ConnectionString of the report, but I can't find it for the subscription.
 
 
2 hours later…
9:20 AM
@McNets isn't there a bunch of xml columns in the subscriptions table?
I don' thave that version at hand any more
 
@TomV-trytopanswers.xyz the Subscriptions table points to a DataSource table
There is a varbinary [image] column named ConnectionString
Usually [image] columns can be converted to XML using: CONVERT(xml, CONVERT(varbinary(max), content))
But not in this case
I've found some scripts to retrieve metadata
But not the ConnectionString of a data driven subscription
 
 
1 hour later…
10:43 AM
hullo there
anyone here with a quick fix for this:
Bonus question: it appears that some data has an ampersand in it and now when I rerun it the following error message is thrown: XML parsing failed .. invalid use of ampersand ('&') character (use &) .. - any quick fix idea? — nutty about natty 4 mins ago
from
2
Q: How to convert xml entities to unicode characters (with read-only access) in Oracle?

nutty about nattyI'm connected to an Oracle Database (11g Release 2 - 11.2.0.4), with read-only access. Into this database, some of the data is uploaded via, or rather as, XML - and quite a few entries contain multiple occurences of XML (special) character entities in the format of &#nnnn;. So far I have dealt ...

?
maybe a regex replace?
 
@nuttyaboutnatty it seems there is an accepted answer. Does it work?
 
11:08 AM
@McNets yes; but the source data I'm confronted with is quity "dirty"
and it seems I need some form of "exception handling" or commenting out of the ampersand
 
11:18 AM
I didn't test the accepted answer for all of the data
and apparently over the weekend new (dirty) data came in
so the error msg only came now
still need a fix for that
 
11:41 AM
@McNets is it encrypted? or possibly embedded in the subscription rather than shared?
@McNets also, doesn't look like that technet article handles for a BOM? github.com/petervandivier/hello-world/blob/master/sql/…
 
12:04 PM
set define off, perhaps?
 
12:16 PM
a simple replace(.., '&', 'xxx') in the xmltable() worked
but that's still quite crude...
slight refinement:
replace(.., ' & ', ' and ') - note the spaces (to prevent all the &#..; tags from being muddled up
would work for "AT & T" but not yet for "AT&T"
need to account for both though
also - "and" is a cheap substitute for the real ampersand...
 
12:49 PM
spawned a new question:
0
Q: How to allow for ampersand in XMLtable()?

nutty about nattyStarting with this Q&A, note that while this works: with data as ( select 'Hallöle sloven&#264;ina Hallöle sloven&#273;ina' str from dual ) select a.str, b.str2 from data a, xmltable( '/' passing xmltype( '<dat>' || a.str || '</dat>' ) columns str2 varchar2(4000) path '/dat' ) b … thi...

 
1:09 PM
@PeterVandivier I suppose it is encrypted
 
1:24 PM
@PeterVandivier it doesn't work
 
1:38 PM
@McNets the UI is pretty friendly if you have access to "just poke around a bit"
i can't remember if you can download an xml flat file for subscriptions, but i'd suggest poking around in the service a bit
backup/restore the DB & encryption key to a VM if you're paranoid you'll break something and it's important enough to warrant the time investment
 
need a regex_replace to find & while ignoring all &#
&*^[#]
?
or rather
.&[^#]
 
@PeterVandivier I need to remove a legacy sql 2008 enterprise ed and I'm developing a poor-man app to send reports via e-mail (similiar to ssrs subscriptions). This app uses XML files with all reports parameters and I'd like to get current metadata and build this xml files automaticaly.
 
oof, yea, i've been out of SSRS too long to help much i'm afraid. i know there's some powershell utils. if you're not too put off you could do a one-off pass to decrypt the data and dump it back into the db
 
1:54 PM
@PeterVandivier In fact, I can write the connectionstring manually, just trying to leverage the work. (I'm not sure if I've used 'leverage' correctly)
 
Correct enough 🙂
Powershell might still be a good time investment, should be able to run reports & capture output via soap api calls, and you’re already in Powershell with the handlers for AD and email integrations
Although vs 2008 maybe you’re too likely to hit limitations there and it’s better to just hack it out as is
Ah... going away from 2008, so possibly worth
 
 
5 hours later…
6:43 PM
@McNets what happens if you export them using rsscripter
Maybe you can pry it out of the xml
 
 
3 hours later…
9:17 PM
can anyone help me understand an explain output - I have two databases - one is basically a mirror of the other but getting much different results. I suspect there is a setting that might need adjusting to help this query run due to size differences in the two
EXPLAIN format = json SELECT p.*, pd.* FROM product p JOIN product_description pd ON p.product_id = pd.product_id AND pd.language_id = '1' WHERE NOT EXISTS (SELECT 1 FROM product_to_category ptc WHERE ptc.product_id = p.product_id) ORDER BY pd.name ASC LIMIT 0,10;
in one db I get this bit, which is ideal and very fast:
`"table": {
"table_name": "ptc",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "4",
"ref": [
"muscle_dev.pd.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 809868,
"filtered": "100.00",
"not_exists": true,
"using_index": true,
"cost_info": {
"read_cost": "202639.56",
"eval_cost": "80986.80",
"prefix_cost": "735703.40",
"data_read_per_join": "12M"
in the other I get this which is slow and obviously not running as efficiently:
`"table": {
"table_name": "<subquery2>",
"access_type": "eq_ref",
"key": "<auto_distinct_key>",
"key_length": "5",
"ref": [
"muscle_live.pd.product_id"
],
"rows_examined_per_scan": 1,
"not_exists": true,
"attached_condition": "<if>(is_not_null_compl(<subquery2>), <if>(found_match(<subquery2>), false, true), true)",
"materialized_from_subquery": {
"using_temporary_table": true,
"query_block": {
"table": {
"table_name": "ptc",
 
Why don't you ask properly on the main site?
 
I might do that.. just checking to see if I could get some quick feedback
I like the keep site questions to something that would have a broader application if possible
 
9:38 PM
seems and left join / is null condition on the slow db gets the same query plan as the other. seems odd since on db2 NOT EXISTS and LEFT JOIN both show same explain
 
 
1 hour later…
11:02 PM
@billynoah I've often heard that in MySQL, the LEFT JOIN+NOT NULL method of implementing an anti-join is typically more efficient than either NOT EXISTS or NOT IN. Although I should add that the last time I heard it, version 8.0 wasn't out yet, so maybe that's no longer true now.
 

« first day (3437 days earlier)      last day (1417 days later) »