I need to implement the following scenario in a REST service implemented in WCF:
the user submits a binary file and a set of parameters
the server consumes the file, does some clever work and generates a binary output file
the user retrieves that binary result file
and all that is done in a single operation from the client perspective.
It's pretty easy in a non-REST service. How do I do that in a REST service? Where do I get started?
I have two queries that I have to run, I cannon join them But their resultant tables have the same structrure.
For example I have
select * from products where producttype=magazine
select * from products where producttype = book
I have to combine the result of these two queries, and then output it as one single result. I have to do this inside a stored procedure.
PS These are just examples I provided, i have a complex table structure. The main thing is I cannot join them.
I have two tables like Temp1 and Temp2
The Table Temp1 have id and Col1 fields and
The Table Temp2 have id and Col2 fields
I need to update the two table fields Col1 and Col2 using single query in SQL.
Can anyone help me??????
Using C# and WPF under .net (rather than WindowsForms or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some mythical thing called a mutex, rarely can I find someone that bothers to stop and explain what one of these are.
The code needs to also inform the already running instance that the user tried to start a second one, and maybe also pass any command line arguments if any existed.
I have a simple query over a table, which returns results like the following:
id id_type id_ref
2702 5 31
2702 16 14
2702 17 3
2702 40 1
2702 26 4
And I would like to merge the results into a single row, for instance:
id concatenation
2702 5,16,17,40,26:31,14,3,1,4
Is there any way to do this within a trigger?
NB: I know I can use a cursor, but I would really prefer not to unless there is no better way.
I'm using MiGLayout and being the freak i am, i was thinking if it's possible to create a single instance of the layout and use it for all my panels? Just curious...
Is it possible to apply the Replication mechanism on single MySQL server?
I want to replicate the changes done in test db to Main db in the same server, so can i use this Replication mechanism on same server?
I want to play multiple songs with single object of AVAudioplayer, I put songs List in scrollview, when user tap on list player view is open but when user go back for other song player play both songs simanteniosly . what I Can do to fix this?
I have kind of got used to it now but in the past if i had to work on a piece of code someone else had written with the brackets placed in this way I would have to go through and change it all. Why would anybody do this, I can't think of a single advantage but lots of disadvantages.
I started a small application in my personal svn repository. It's gained enough interest that it is worth moving development to a shared group repository. Can the app (only a single file) including it's history be migrated to the group repository?
How to (try)parse a single String to DateTime in "DD/MM/YYYY" format? (VB.Net)
For example: I use input string "30/12/1999" (30 December 1999), how to (try)parse it to DateTime?
The Python documentation specifies that is is legal to omit the parentheses if a function only takes a single parameter, but
myfunction "Hello!"
generates a syntax error. So, what's the deal?
(I'm using Python 3.1)
I'd like to censor some words in a string by replacing each character in the word with a "*". Basically I would want to do
String s = "lorem ipsum dolor sit";
s = s.replaceAll("ipsum|sit", $0.length() number of *));
so that the resulting s equals "lorem ***** dolor ***".
I know how to do this with repeated replaceAll invokations, but I'm wondering, is this possible to do with a single replaceAll?
Can "Distinct" key Word be used twice in a single Select Query? like wise:
select DISTINCT(trackid), DISTINCT(table_name) from jos_audittrail where live = 0 AND operation = UPDATE
Thanks
I need to waste a single ink channel on my epson printer, anyone know how to do it?
I mean, there is no documented way to do that, but I could program a software that could do that, send RAW commands, or special colors.
I searched for some documentation, no luck.
i have this:
Application.Run ("'L:\database\lcmsmacro\macro1.xlsm'!macro_name")
why should i use the single quotes? does it not recognize the backslash?
Hello Guys,
I want to know if we can display multiple activities in a single activity using ActivityGroup.
Can anyone please help me out with this ?
Thanks in advance.
Regards,
Serenity.
Hi, I have user defined string (html formated string to be saved and used in web) and need to find a way to replace each white space which is right after a single letter by .
For example "this is a string" should become "this is a string",
"bla bla b l abla b la blabla" should become "bla bla b l abla b la blabla" ...etc...
Hey,
I'm trying to get this function to get the following output with the listed input, the "..." is where I'm not sure what to write:
void Question8(void)
{
char sentence[100];
int grade;
scanf(….);
printf("%s %d", sentence, grade);
}
Input:
My CS Grade is 1000
Output:
My CS Grade is 100
However, the kicker is that I need the scanf to read a c-string and then an int with a single scanf command, is this even possible?