I want query to me refreshed autoamatically?
Hi,
I have few queries and I want them to be refreshed automatically every firday night.
is it possible? if so how?
Regards,
Vijay
do u please let me know how to go about it?
Regards,
Vijay
Similar Messages
-
In C# is there a way of refreshing query in EXCEL (REFRESH ALL)
Hi All,
Need C# code in SSIS Sript task which should refresh all excel data which extracts from a table using Microsoft query.
Can anyone help at all ?
Thanks
Sri.TummalaHi All,
Found the code to refresh excel data the above code is saving before refrshing so I added application wait for 20 seconds so that it refrshes first than saves it.
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
using Microsoft.Office.Interop.Excel;
namespace ST_53932a75e92c44f086535fc017a56e6a.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
The execution engine calls this method when the task executes.
To access the object model, use the Dts property. Connections, variables, events,
and logging features are available as members of the Dts property as shown in the following examples.
To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
To post a log entry, call Dts.Log("This is my log text", 999, null);
To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
To use the connections collection use something like the following:
ConnectionManager cm = Dts.Connections.Add("OLEDB");
cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
To open Help, press F1.
public void Main()
// TODO: Add your code here
ExcelRefresh(@"C:\Documents and Settings\ST84879\Desktop\ROBERT_DATA_SET\TEST.xls");
Dts.TaskResult = (int)ScriptResults.Success;
private void ExcelRefresh(string Filename)
object NullValue = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.ApplicationClass();
excelApp.DisplayAlerts = false;
Microsoft.Office.Interop.Excel.Workbook Workbook = excelApp.Workbooks.Open(
Filename, NullValue, NullValue, NullValue, NullValue,
NullValue, NullValue, NullValue, NullValue, NullValue,
NullValue, NullValue, NullValue, NullValue, NullValue);
Workbook.RefreshAll();
System.Threading.Thread.Sleep(20000);
Workbook.Save();
Workbook.Close(false, Filename, null);
excelApp.Quit();
Workbook = null;
System.Runtime.InteropServices.Marshal.ReleaseComObject(excelApp);
Thanks All
Sri.Tummala -
Want jtable to be refreshed...on change of the textfield change..
The code is below and question follows the code :
import java.sql.*;
import javax.swing.border.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import java.io.*;
import java.util.*;
import javax.swing.event.*;
public class sample extends JFrame
JTable tableFindsymbol;
JFrame FindSymbolFrame;
JTextField symbolText = new JTextField(35);
private String getsymbolTextfieldtext;
private int columns;
Vector columnNames = new Vector();
Vector data = new Vector();
private String query;
public sample()
FindSymbolFrame = new JFrame("sample");
FindSymbolFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Container myPane = FindSymbolFrame.getContentPane();
myPane.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
setMyConstraints(c,0,0,GridBagConstraints.CENTER);myPane.add(getFieldPanel(),c);
setMyConstraints(c,0,1,GridBagConstraints.CENTER);myPane.add(getTable(),c);
FindSymbolFrame.pack();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = FindSymbolFrame.getSize();
FindSymbolFrame.setLocation(new Point((screenSize.width - frameSize.width) / 2 , (screenSize.height - frameSize.width) / 2));
FindSymbolFrame.setVisible(true);
public JPanel getFieldPanel()
JPanel p = new JPanel(new GridBagLayout());
p.setBorder(BorderFactory.createTitledBorder("Enter Details"));
GridBagConstraints c = new GridBagConstraints();
setMyConstraints(c,0,0,GridBagConstraints.CENTER);p.add(symbolText,c);
symbolText.addKeyListener(listener);
return p;
KeyListener listener = new KeyListener()
public void keyPressed(KeyEvent e) {}
public void keyReleased(KeyEvent e)
getsymbolTextfieldtext = symbolText.getText();
getTable();
public void keyTyped(KeyEvent e){}
public JPanel getTable()
try{
query = "SELECT SYMBOL, CO_NAME FROM CO_DB_WITH_NAME where CO_NAME LIKE '"+ getsymbolTextfieldtext +"'";
JOptionPane.showMessageDialog(null,query);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:sdb","scott","tiger");
final Statement st = con.createStatement();
ResultSet rs = st.executeQuery(query);
ResultSetMetaData md = rs.getMetaData();
int columns = md.getColumnCount();
for (int i = 1; i <= columns; i++)
columnNames.addElement( md.getColumnName(i) );
while(rs.next())
Vector row = new Vector(columns);
for (int i = 1; i <= columns; i++)
row.addElement( rs.getObject(i));
data.addElement( row );
rs.close();
}catch(Exception e)
System.out.println( e );
JPanel tablePane = new JPanel(new GridBagLayout());
DefaultTableModel model = new DefaultTableModel(data,columnNames);
tableFindsymbol = new JTable(model);
tablePane.add(tableFindsymbol);
JScrollPane scrollPane = new JScrollPane(tableFindsymbol);
getContentPane().add(scrollPane);
tablePane.add(getContentPane());
tableFindsymbol.setRowSelectionAllowed(true);
tableFindsymbol.setColumnSelectionAllowed(false);
tablePane.setVisible(true);
return tablePane;
private void setMyConstraints(GridBagConstraints c, int gridx, int gridy, int anchor)
c.gridx = gridx;
c.gridy = gridy;
c.anchor = anchor;
public static void main(String[] args)
sample fsymf=new sample();
}what i want to do is: make the jtable get updated as soon the text in the text field changes..
how do i call the jtable panel so it updates the table or any jtable update method
Thanks for reply in advance..Quit multi-posting questions.
You where already given the answer to this question in your last posting:
[http://forum.java.sun.com/thread.jspa?threadID=5270240]
Also, in the future don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting. -
VO query not getting refreshed
Hi,
I have a Search Page and a Create Page having 5 fields. The VO used is same for both pages.
Search Page allows to query for all 5 fields and displays the results properly. After performing search on particular field, i go to create page and insert a new record. The record gets inserted properly and the control is transferred back to search page using following code:
pageContext.forwardImmediately("OA.jsp?page=/xxcust/oracle/apps/fnd/fd/admin/webui/xxcustInstMasterSearchPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
The AM is retained as a create confirm message has to be displayed.
In the processRequest method of search page, all the fields of it are cleared and the vo is executed using the following code:
OAViewObject voInstMaster = (OAViewObject)am.findViewObject("xxcustInstMasterVO1");
voInstMaster.clearCache();
voInstMaster.setWhereClause(null);
voInstMaster.setWhereClauseParams(null);
voInstMaster.executeQuery();
But still the search Page displays the previously conducted search results.
I want it to show all the records. Pls suggest some workaround.
Thanks in advance,
MitikshaI have not used the above mentioned code.
The scenario is like this:
First the Search Page gets displayed, showing all the records. I search for a particular record. It displays appropriate results. Now i click on "Create" button which is there on Search Page. The Search Page controller forwards to the Create Page. On click of "Save" button on Create Page the record gets created and page is redirected to the Search Page. Now this Search Page shows me result of the previously conducted search .
What I want is when the Create Page redirects it to Search Page, the Search page should display all the records as it displays when visited for first time.
In the processRequest() method of Search Page controller, i have cleared the VO cache, set its where clause and where params to null and then execute its query. But it does not work. When i go through the log messages the search query shows me the bind parameter of previously conducted search despite of clearing VO cache and setting its where clause as well as whereClauseParams to null.
Any suggestions....?
Thanks,
Mitiksha -
How to force Work Item Query Policy to refresh its cached query results?
I have enabled the Work Item Query Policy on my TFS project. It works as expected, except when using Visual Studio 2013 with the following sequence of steps:
User selects Check in Pending Changes from the Source Control Explorer
User enters in the ID of the work item to be associated to the changeset
User clicks the Check In button
Work Item Query Policy displays message ' Work item ##### was not found in the results of stored query...'
User realizes his mistake, and modifies (and saves) the work item so that it is returned in in the query result set
User clicks the Check In button again expecting the TFS policy to accept the association
Work Item Query Policy still displays message ' Work item ##### was not found in the results of stored query...'
Removing the Work Item and re-associating it does not make a difference. The only workaround that I have found is to close Visual Studio and reopen it. Does any one have a better solution than this?Our setup is different from the one you are using:
- User is using VS 2013 Update 4.
- We are running TFS 2010 SP1
The test case that you described is different from the one that is causing my problem (that scenario works fine for me as well). I am trying to associate the check in to the same work item both times; whereas, you are associating it to a different
work item the second time. I can consistently reproduce the error using the following steps:
1) Create a query that returns All Bugs in Active state, and set it as the query for the Work Item Query Policy
2) Create and save a new Bug
3) Run the query to confirm that the new bug does not appear in the result set
4) Checkout a file, modify it, save it
5) Check in the file and associate it to the bug from step 2)
- the Work Item Query Policy will issue an error message saying that the work item cannot be found in the associated query
6) Change the state of the bug to Active, and save
7) Refresh the query to confirm that the bug now appears in the result set
8) Check in the file again
- error message from step 5) will not go away -
0BWTC_C02 - Viewing number of query executions and refreshes
Hi,
I having been testing some queries I created for infocube 0BWTC_C02. Is there any way to limit the key figure 0TCTNAVCTR to only show navigations that were query refreshes (e.g. ignoring navigations such as removing/adding a drilldown, results row, ect.)? Do any of the available characteristics show what type of navigation was being performed, so that I could restrict the query to only look at certain types of navigations?
Thanks,
AndyHi Pcrao,
I am using the BW statistics infocube 0BWTC_C02.
But as far as I see, the key figure 0TCTNAVCTR( number of navigation steps)now only includes query execution, but also includes all other navigation steps like drill down etc.
Can we do some restriction on navigation type etc to find just the number times query execution takes place?
Thanks,
James -
Insert Media if you want to reinstall or refresh windows
If I want to refresh my pc, I always got this message. This happened after I upgrade to Windows 8.1. I had Windows 8 preinstall on my laptop. How can I refresh my PC?
Hi,
Sometimes, we will encounter this issue if we don't have a recovery partition, you can use a create a custom recovery image, ans use it to refresh your Windows 8.1.
How to Create a Custom Recovery Image to Use to Refresh Windows 8 and 8.1
http://www.eightforums.com/tutorials/3610-refresh-windows-8-create-use-custom-recovery-image.html
(Please note that it will change some files and settings, depending on the time you create the image)
How to refresh, reset, or restore your PC
http://windows.microsoft.com/en-IN/windows-8/restore-refresh-reset-pc
NOTE
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
Microsoft does not control these sites and has not tested any software or information found on these sites.
Yolanda Zhu
TechNet Community Support -
LOV in Query Panel not refreshing
Following is the requirement ---
There is a search page which binds to a particular person say XYZ.
Author LOV is there in the query panel which contains a list of person names who have written a note for XYZ.
Now, the LOV field should refresh when we create or delete a note.
Implementation -- I have a VVO which has person id, authorid and authorName and its been ensured that personId and authorId are unique.
I am using this VVO as a view accessor and then fetching in the list of authors for a particular person in the query panel.
But, I am unable to refresh this drop down after creation and deletion of a note.
Steps taken to achieve this :
Row Level Bind Values for the view accessors have been made true.
Refreshing the VO iterator,view criteria used in the query panel and the query panel after creation and deletion of a note.
Any suggestions to resolve the issue would be of a great help.
Thanks,
ProjjalDo you see the same behaviour in the AM Tester , if yes then just setting the right ppr's of the delete button on the LOV should help.
Else try to re-execute the ViewAccessor programmatically. -
Update to power query does not refresh the pivot table
Hello all,
whenever i make a change to power query dataset and do a refresh, the data will not be refreshed on the pivot table build on the power query dataset.
Is there anything which i missed while updating the powerquery?
Thanks
SatyaI have created the Powerquery dataset and loaded it into Data model. Then i have created the pivot table using the external connection.
After making changes to dataset and then loaded the dataset to Data model. After these changes, once I click on the refresh pivot table or refresh all from data tab nothing changes on the pivot tables.
Thanks
Satya -
I want print, forward/back, refresh, history,favorites in my toolbar
i have mozilla firefox and the toolbar which i guess is yahoo sucks
and i want to change it to meet my needs, not a bunch of stupid apps??
i need print,forward/back,refresh,history, favorites for starters
how do i get this??By default Firefox will display back/forward and reload icons, plus a few more. If they are missing see the [[back and forward or other toolbar items are missing]].
The [[how to customize the toolbar]] article may also be of use to you. -
I want query in following format
hi,
i have on table 'test'..
table :- test
name salary
aaa,rdt 500
dddd, fgh 600
yyyyy,dfg 7000
i want 'name' column data in following format..(I want data before ',')
name
aaa
dddd
yyyyy
thanks,
Ravindra MalwalRegular expressions can be quite heavy on the CPU processing, which is noticable if you're processing a lot of data.
For such a simple requirement, you'd probably be better just using the standard string functions... e.g.
SQL> ed
Wrote file afiedt.buf
1 with t as (select 'aaa,rdt' as name, 500 as salary from dual union all
2 select 'dddd, fgh', 600 from dual union all
3 select 'yyyyy,dfg', 7000 from dual union all
4 select 'xxxx', 2500 from dual)
5 --
6 -- end of test data
7 --
8 select substr(name,1,instr(name||',',',')-1) as name
9 ,salary
10* from t
SQL> /
NAME SALARY
aaa 500
dddd 600
yyyyy 7000
xxxx 2500 -
Query on auto-refreshing frames / linked .pdf docs on link
All,
I'm in the process of building a website on an intranet which, heavily uses content from a .pdf document. I'm using a frame-structured website (two Vertial frames), with the left-hand side frame used as a nav bar and the pdf content displayed on the right. I've been able to link the links on the left to bring up and display the .pdf doc on the right-hand frame, however after the first link has been clicked the clicking of further frames does not either seem to refresh the doc or change the position to the relevant .pdf bookmark.
My questions are therefore as follows. Does anyone know how to:-
A) Add a html command onto each link which will force the pdf document to reload?
B) Force a refresh of the right-hand side content frame every time a link has been clicked on the left?
C) Alter the .PDF document so that it will allow the moment to the correct bookmark/destination when called by a link selection in the left-hand nav frame?
D) Save the .PDF into an alternate working format which may bypass any potential problems with moving to a requested bookmark in an already-open doc?
E) Force the opening of the .PDF in the browser, rather than in an opened adobe .PDF viewer?
Sorry guys I'm not the most technical person in the world, but would certainly appreciate any help anyone can offer!
AlYou should keep it simple and best practice. Keep lag enabled even if you are only going to use one port on the wlc. When you disable lag, then that is when the configuration becomes tricky and that's why it's not supported.
Sent from Cisco Technical Support iPhone App -
I have a named query that has one parameter against the HR database table Countries and the parameter is the CountryID. I then have a page that shows a edit form based on the named query. I use a bean to pass the value to the parameter and the bean is updated from an action listner. The first time I call the page the selected record is correct, then from then on successive calls to that page with changes to the bean value still shows the same record.
try doing an execute-query action on entry of the page.
-
I want Query from QueryDataSet by SQL string, Is it possible ??
if the sql string is :
"select * from QueryDataset1 " and store the results in another QueryDataSetRR
is it possible or not ?
What ara the alternatves of store the retrived data from database and store it in (??) instead querdataset1 and use these data again using SQL string ??
Regards,Well, most SQL servers allow some kind of temporary table to be generated, and you can always load a table from the results of a select
INSERT results(f1, f2) SELECT f1, f2 FROM maindata WHERE .....
But most database systems also allow a subquery which allows you, amongst other things, to further refine a SELECT by taking FROM from a subquery rather than a table. -
Hi i want query in pl/sql please help me in that
i have two tables mbr and loyalty.i have to compare these two tables with primary key and have to get matching records in two tables.and then i have keep all the matching records in one temp table.and then deleting mbr table, then updating all temp table records in mbr.i.e is updating of records from loyalty to mbr table.
i think i was clear with my requirementso you're saying...
1. loyalty inner join mbr -> temp table
2. delete mbr where matching records? or delete all of mbr?
3. update mbr where there were matching records? (but have been deleted by step 2!)
if i understand your requirements correctly you can jump straight to step 3 without this whole temp table business: do an update with a corelated subquery.
Maybe you are looking for
-
I have tried, unsuccessfully, to upgrade from 3.6.28 but have been unable to do so. A pop up shows up telling me that I should and offers a line to click on to go ahead and do it. I followed all the instructions and after dragging the Firefox logo to
-
Disable columns in a tabular form on select list
I am trying to void out or disable certain columns based on the option value selected from the select list. I have done this on a form with regualr page items. However, I am now trying to accomplish the same on a tabular form. I have tried the follow
-
My address book application will not allow me to open it.
My icon is blue rather than tan. I cannot delete or change any addresses in the address book.
-
Visual Studio 2008 using Crystal Reports 2008
I'm trying to pass parameters to a Crystal Reports 2008 rpt file but keep getting a runtime message saying "Missing Parameter Values". Has anyone experienced this problem? Does anyone have a snippet of code where values are being passed from C#.Net t
-
Variable personalization error stops further processing
Hello, I am having problem with variable personalization, we are on BI 7.0 SP 12 with latest frontend GUI. The steps followed are : 1. execute a query in BEx analyzer 2. In the variable screen, try to personalize by clicking personalization button on