I am typing a WCF Expression but I don't find a way in Linqpad to get the SQL Query.
For example I typed a expression Customer.Take (100) and Execute the expression.
After that I can see the tabs: "Results", "lambda", "Request Log" and "IL" below the expression text window but no SQL tab.
When I go to the "Request Log" tab I can see the URL
https://<url>/Customer()?$top=100.
I also see a "Analyze SQL" option on the right.
I select "Open as SQL Query in New tab" but I get the same URL displayed on the new tab and no SQL.
Is this supported in Linqpad or do I have to find another way to capture the SQL query that resulted from executing the WCF request?
Is this supported in linqpad?
If not supported do you have any other suggestions. Are there any other tools that support this functionality?
Thanks.
WCF Data Services queries do not translate to SQL; they translate to web requests. That's why the SQL tab disappears and a "Request Log" tab appears.
Edit: see also: http://forum.linqpad.net/discussion/comment/1278#Comment_1278
Related
I'm new to programming and just learning the basics of C# and SQL in Visual Studio Code, so this might be a piece of cake for the pros here :)
I was trying to create and edit a table, but I'm unable to see the results section, I only see the messages part. Tried the suggested ctrl+alt+r but nothing pops up. Just wondering then if it's similar to Visual Studio that has the option to 'Show Table Data' and edit the table.
The results section appears as follows:
and the screenshot from VS (just for reference):
You can use this mssql extension by Microsoft.
Expand the database and right click to the table and choose "Select TOP 1000". Then you should be able to see the results like the image below.
query results
How Can I "set server output" on in Jetbrains DataGrip IDE? I am able to do this in SQL Developer and run the SQL script successfully. The same script I try to run in DataGrip and it gives error. I know its the "set server output on" that is not working because I had to configure SQL Developer for it to work. Any advice would be appreciated. Thanks.
According to the documentation:
For Oracle, you can enable or disable showing the contents of the DBMS_OUTPUT buffer in the output pane. To do that, use on the toolbar of the Database Console tool window (Ctrl+F8).
They also show an image of the window with the button enabled;
Update: 2019
The icon to enable the output looks like:
On MacOS it can be enabled with Command+F8.
Server output is client side functionality that not all clients support. SQL*Plus and SQL Developer do, but it's not a given that any other client will.
The SQL*Plus client command set serveroutput on essentially calls the DBMS_OUTPUT.enable() stored procedure on your behalf. Additionally it signals to the client that is should inspect the DBMS_OUTPUT.get_lines() procedure for cached output after each code block is executed.
If DataGrip doesn't do this already, you may be able to manually code the calls to DBMS_OUTPUT.enable() and DBMS_OUTPUT.get_lines() as needed.
For version 2021.1 right click on the console list in the service window and there should be a enable DBMS_OUTPUT when you right click.
Good day guys,
I just want to know if the search in a pop-up LOV in ORACLE ApEx 5 does a "query search" directly to the database or does it search in the results shown in the pop-up?TIA
It performs a database query. You can verify this by using the browser's Inspect tool, Network tab and see the server request and response.
After using other GUI tools for databases like oracle sql developer, plsql editor, etc, I am not quite comfortable with sql server management studio, so I want to ask:
Is there any better client tools for sql server?
In management studio, if I've already opened edit window, how to refresh the data in the window?
This question answers this part.
All you have to do is click on the "Execute SQL" [!] button up in the toolbar and it will refresh the data.
Check out this old (but still pretty good) SO post
If by "edit window" you mean a query window, you can simply re-execute the query (highlight the query you want to re-run, then hit F5) and it will refresh with updated data. If by "edit window" you mean the "Edit table" view then I am unaware of an easy way to do it.
How to log, trace or get queries that an application send to Microsoft SQL Server 2008 thru ODBC driver (without modifying application...)
Maybe it can be done with SQL Server itself or ODBC has some query logging?
#davispuh, you can use the SQL Profiler to trace SQL statements.
you can also use the ODBC Tracing.
To Create a Trace using SQL-Profiler:
On the File menu of SQL-Profiler, click New Trace, and connect to an
instance of SQL Server. The Trace Properties dialog box appears.
In the Trace name box, type a name for the trace.
In the Use the template list, select a trace template on which to
base the trace, or select Blank if you do not want to use a template.
If you do not use a template you can hit the Show all Events checbox and choose which events you would like to trace, there you can choose if errors, logins etc are traced. For more information take alook at: Specify Events and Data Columns for a Trace File (SQL Server Profiler) for Example you have a category there Errors and Warnings which include special Error events.
For more information see the documentation
If you need to do this for ODBC you can check the following two topics:
Profile Driver Performance Data (ODBC)
Log Long-Running Queries (ODBC)
Hope this helps.