Posts

sql server 2008 r2 - SAS SQL Pass Through -

i know gets executed first in sas sql pass thru in code: connect oledb mydb ( %dbconnect( catalog = mydb ) ) ; create table mydb_extract select put(parent,$abc.) parent, put(pfx,z2.) pfx,* connection mydb ( select appointment,parents,children,cats,dogs mydb.dbo.flatrecord appointment between '20150801' , '20150831' , children > 2); disconnect mydb; since ms sql-server doesn't support put function query cause of records processed locally or resultant records dbms? the explicit pass-through query still process , return sas returns (however many records is). then, sas perform put operations on returned rows. so if 10000 rows in table, , 500 rows meet criteria in where , 500 records go sas , put ; sql handle 10000 -> 500. if had written in implicit pass through, it's possible (if not probable) sas might have done of work.

javascript - Why is my function not returning the array? -

this question has answer here: how return response asynchronous call? 24 answers this code: document.getelementbyid('revealuser').onclick = displaydausers function displaydausers(){ pullallusersfromdb(); debugger; } function pullallusersfromdb(){ rootref.child('users').on('value', function(snapshot) { var users_array = []; var users_object = snapshot.val(); object.keys(users_object).map(function(key) { users_array.push(users_object[key]); }); // window.dateapp.allusers = users_array; return users_array }); } html: <input type="submit" id="revealuser" value="reveal user"> i put debugger in see problem not help. when go console , type in users_array uncaught referenceerror: users_array not defined(…) new code (edit): according stackoverflow answers should w...

haskell - How to write Semigroup instance for this data type? -

i'm trying 1 of semigroup exercises in haskell book (chapter 15, "monoid, semigroup") i'm stuck. following given: newtype combine b = combine { uncombine :: (a -> b) } and i'm supposed write semigroup instance combine . and book says must behave following: prelude> let f = combine $ \n -> sum (n + 1) prelude> let g = combine $ \n -> sum (n - 1) prelude> uncombine (f <> g) $ 0 sum {getsum = 0} prelude> uncombine (f <> g) $ 1 sum {getsum = 2} prelude> uncombine (f <> f) $ 1 sum {getsum = 4} prelude> uncombine (g <> f) $ 1 sum {getsum = 2} so first started wrong solution type checks: instance semigroup (combine b) combine f <> combine g = combine f that not expected of course, step in right direction. , thinking following, in pseudocode: instance semigroup (combine b) (combine f) <> (combine g) = combine (something) that something being: f , g appended, whatev...

sql server - Service Broker messages inside a transaction -

i writing stored procedure perform following operations: begin transaction perform tasks use service broker kick-off background process wait response message (with job status) service broker commit or rollback transaction, depending on response message the issue service broker communication not working inside transaction : the message queue has activation enabled, associated stored procedure not executed ( print statements in stored procedure not written errorlog file) receive command times out here's extract of code: -- comment out following line make work begin tran t1 declare @update_msg xml([sb].[service_broker_xxx_schemas]) = ' <request xmlns="xxx"> <table xmlns="xxx"> <fields> xxx </fields> </table> <requested_by>xxx</requested_by> </request>' declare @conversation_handle uniqueidentifier ,@message_body varbinary(max) ,@message_ty...

here api - Traffic Flow Data response description in documentation -

i see examples flow data in documentation , can't find means fields: { "rws": [ { "rw": [ { "fis": [ { "fi": [ { "tmc": { "pc": 6467, "de": "gladenbach", "qd": "+", "le": 12.52997 }, "cf": [ { "sp": 55.2, "cn": 0.73, "ty": "tr", "jf": 0, "su": 55.2, "ff": 52.6 } ] } ] } ], "li": "d01-06464", "de": "l3048", "pbt": "2015-08-20t08:27:45z", "mid": "ff3e7aab-eece-438c-818b-5920e4581330|" }, { "fis": [ { "fi": ...

php - Unexpected: OpenCart Database Truncating After SomeTime -

i've opencart website , have 2 domain example.com , example2.com. first website in running example.com , working fine. when have copied code files , import database example2.com , running same code set , database. after time database truncating. note both domain on same server , i'm using godaddy cpanel hosting. please me figure out problem.

excel - Applying a different formula every nth row -

so have sheet i'd apply formula every 7th row. can't same formula, needs "offset" formula well. for example, first range formula "=(c4+c5)-c3"; second range, "=(c11+c12) - c10"; , on. this have far: sub applyformula() applycf range("c6") applycf range("c13") 'and on, every 7 rows 'is there other way can apply these ranges instead of typing them? 'with offset formula or that. end sub sub applycf(rng range) rng.formula = "=(c4+c5)-c3" 'i'd macro "offset" formula, 'so c13 range "=(c11+c12) - c10" end sub for applycf sub, this: sub applycf(rng range) if rng.count <> 1 exit sub ' in case range more 1 cell dim prevcell range, twoprevcell range, threeprecell range set prevcell = rng.offset(-1, 0) set twoprevcell = rng.offset(-2, 0) set threeprevcell = rng.offset(-3, 0) rng.formula = "=(" & twoprevc...