Posts

Is there any automated way that will list all dependencies in sql server stored procedures? -

There are approximately 1449 stored procedures in our database. Is there an automated method that will list all dependencies? As we have called C2, S2, S3, S4, S5, CS, S2, S3 in S1 s4 is called in s3 Dependency should look something like s1 - & Gt; S2 - - & gt; S4 - & gt; S3 ---- & gt; S5 In my opinion, you can add all your SP names to a temporary table , Select from . Sysprocedures You can now loop through temp tables and dependencies like DECLARE @ search varchar (255) SET @ search = ' Select 'PROCEDURE_NAME' object_on, o Type. Sys.qql_modules from O-Type_Desk M Inner Join Sys.objects o on m.object_id = o.object_id WHERE m.definition '%' + '%' like search by ORDER 2,1 I do not know whether it will work or not, but you can give it at least one try.

c++ - Not able to set the geometry in QT -

Image
I set the widget to set the coordinates of setGemometry () I am using But when I delete some widget and delete it from the main layout, then it is not fully capable of setting geometry. I am using KeyReleaseEvent () , that is, when I am pressing key D, some widgets should be removed and it should set geometry to a specific location when I first press it The effect is not seen, but the widgets are removed and when I press it for the second time it is set properly. void mywindow :: popupwindow () {If (stack1-> current index () == 0) {stack3-> Hide (); MainLayout-> AddWidget (stack2); Stack2-> Show (); Stack2-> SetFixedSize (400,200); This- & gt; SetGeometry (100,400,900,200); } If (Stack 1-> Current Index () == 1) {stack2-> Hide (); MainLayout-> AddWidget (stack3); Stack3- & gt; Show (); Stack3- & gt; SetFixedSize (400,200); This- & gt; SetGeometry (100,400,900,200); }} Zero mywindow :: deleteWindow () {mainLayout-> RemoveWidget (s...

r - Reducing multi-column xts to single column xts based on provided column indexes -

I have an xts object with multiple columns of the same type. I have an object with another xts object that corresponds to the position of the column in the first object. I would like to generate one-third xts object, in which the value of the column indicated by the respective index in a column is represented. For example: # xts.1: 2003-07-30 17:00:00 0.2015173 0.10159303 0.19244332 0.08138396 2003-08-28 17:00:00 0.1890154 0.06889412 0.12700216 0.04631253 2003-09 - 29 17:00:00 0.1336 947 0.08023267 0.09167604 0.02376319 2003-10-30 16:00:00 0.1713496 0.13324238 0.11427968 0.05946272 # Exts: 2003-07-30 17:00:00 1 2003-08-28 17:00:00 4 2003-09-29 17:00:00 2 2003-10-30 16:00:00 3 # Expected results: 2003-07-30 17:00:00 0.2015173 2003-08-28 17:00:00 0.04631253 2003 -09-29 17:00:00 0.08023267 2003-10-30 16:00:00 0.11427968 I think that this is not something very elementary, but how to do it, If so, this is the only time I have to save. Your data appears monthly, so I strongly ...

c++ - Cppunit for Nucleus RTOS -

In my project, I need to test the unit on my C ++ code using CepuPoint. I problem code real time operating The system is based on "NUCLEUS", do not help me out of the platform window but knowing how to test rtos when using unit cppunit. Create stubs or mock of OS calls and run tests on Windows as you normally would For example, the concept of data size and byte sequence can be a code that works on a platform to fail in the second step, hence it emphasizes portability issues, as well as a static analysis tool Also useful for using. If you target and your test platform shares the shared data size and byte order, then you are in a better position in that respect.

c# - Return image content from controller to view MVC3 -

I allow a controller to control the chart and see it directly to see what I did in the razor & lt; P & gt; & Lt; Img src = "/ test / chart report" /> & Lt; / P & gt; And in the controller I have created an action method such as Public Action Result Chart Report () {var data = new System.Collections.ArrayList { New {X = date time.NEW AddMonths (-2), Y = 200}, New {X = Date Time.Now Adames (-1), y = 300}, new {x = date time.Now, y = 500}}; New system Web. Helps Chart (400, 200, System.Hellers.Chattheme.blue). Add-Titital ("Price inquiry"). DatabintTable (data, "X"). Type ("PNG"); Return tap; } Now I want to pass the model as it is in the form of parameter for the action of the controller from the scene, so I can create a chart without any DB queries . how can I do this . My visual model is built on @model MyApp.ViewModels.SampleModel & lt; P & gt; & Lt; Img src = "/ test / chart report...

How to implement REST functionality to basic grails app -

Image
My question might be quite strange for some people, but I'm new to this technology I created a controller with some functionality (It converts some types of files) but ATM is working in "User Interface" which means that the user needs to paste some code, click on the button and the result is that my owner has an API User who needs Ta will operate without interference (I think it is a cool API). He told me that this API should get a URL with some data, after that my functionality occurs and finally the converted data is returned. There is more image that I want to get: Please give me some advice (for example, if I need a plugin or just simple code, just add some code in the controller or domain class, if you can skip it, it would be good. Conversion from FORMAT1 to FORMAT2 Already done) Sorry for my ignorance, but Grails in my first meeting Areas with a Cheers. Read appeal on mural pictures Very thorough and well documented Or, if you just want a simp...

How to convert keyword argument to named argument in python 2.7? -

1 फ़ाइल: वर्ग प्रोफ़ाइल (वस्तु): def __init __ (स्वयं, नाम, 1st_arg = gst (), 2nd_arg = 1, 3rd_arg = AB.parallel): self.name = name self.gain = 1st_arg (i, ओ, पी) self.channel = 2nd_arg self.mode = 3rd_arg दूसरी फाइल: वर्ग ए: कुछ_फंक्शन (): 1st_arg = gst (i, o, p) # वर्ग जीएसटी कन्स्ट्रक्टर परिणाम = प्रोफ़ाइल (नाम, प्रथम_अर्ग, 2_आर्ग = 1 , 3rd_arg = चरण) # प्रोफ़ाइल वर्ग निर्माता मुझे कोड से ऊपर है, लेकिन मैं "first_arg" को कीवर्ड तर्क से नामांकित तर्क में बदलना चाहता हूं। यहां 2nd_arg और 3rd_arg तर्क स्पष्ट रूप से निर्दिष्ट करते हैं कि उनके मूल्यों को किस प्रकार आवंटित किया जा रहा है, लेकिन 1st_arg में ही नहीं। मुझे यह परिवर्तन चाहिए ताकि यदि कोई तृतीय पक्ष मेरे कोड को देखे तो वह इसे आसानी से समझ जाएगा। यदि आप एक कीवर्ड तर्क (और यह अंतिम कीवर्ड तर्क) में एक स्थितीय तर्क को परिवर्तित करना चाहते हैं, तो बस उसका नाम निर्दिष्ट करें । उदाहरण के लिए, यदि आपके पास निम्न फ़ॉर्म की कॉल है: f (val1, val2, arg3 = val3, arg4 = val4) और आप एक कीवर्ड तर्क के...