Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Dot Net Technologies Interviews:.Net Architecture.Net Database.Net Deployment.NET web servicesADO.NETADO.NET 2.0ASP ProgrammingASP.NetASP.NET 2.0ASP.NET CachingASP.Net MVCBizTalkC# (Sharp) Programming LanguageCOM+Crystal ReportsDataGrid (Grid view)Dot NetDot Net AssemblyDot Net Code SecurityDot NET crystal reportsDot Net FrameworkDot Net RemotingDot Net WindowsFormsEntity FrameworkMicrosoft .Net MobileMicrosoft BasicsMicrosoft.NETMicrosoft.NET 2.0Mixed MicrosoftMono FrameworkMOSSMSFMTSReporting ServicesSenior .Net DeveloperVB .NetVB .Net DeveloperVB.NET FrameworkWCF (Windows Communication Foundation)WCF Data ServicesWeb Forms
Copyright © 2018. All Rights Reserved
DataGrid (Grid view) Interview Question:
How do I name the tabs when I run a script?
Submitted by: AdministratorWhen you run a script in the MOE using F5, the output of the script is displayed at the bottom of the screen. Each command creates a separate tab for its results, as well as being included in the main script output tab. These tabs are simply named 'Grid n' where n is an incrementing number starting at 1. If you run a script with 5 SELECT statements, you get 'Grid 1' though 'Grid 5'.
A question on the list from Roger Simoneau, asked how we could programatically rename the tabs from within the script. Both Erwin Rollauer and Ed Klinger (TeamT) supplied answers.
If you use the TTITLE directive before the SELECT statement, the tab will be named using the data from the TTITLE directive, as follows :
TTITLE today
SELECT sysdate FROM dual;
The tab for this statement will have the title 'today' exactly as entered.
If you need to use more than one word for the tab name, you must wrap the words in quotes, single ( ' ) or double ( " ) work equally as well.
TTITLE "today is roughly around ..."
SELECT sysdate FROM dual;
Try it and see. I wonder if TTITLE actually stands for 'Tab Title'? LOL.
Submitted by: Administrator
A question on the list from Roger Simoneau, asked how we could programatically rename the tabs from within the script. Both Erwin Rollauer and Ed Klinger (TeamT) supplied answers.
If you use the TTITLE directive before the SELECT statement, the tab will be named using the data from the TTITLE directive, as follows :
TTITLE today
SELECT sysdate FROM dual;
The tab for this statement will have the title 'today' exactly as entered.
If you need to use more than one word for the tab name, you must wrap the words in quotes, single ( ' ) or double ( " ) work equally as well.
TTITLE "today is roughly around ..."
SELECT sysdate FROM dual;
Try it and see. I wonder if TTITLE actually stands for 'Tab Title'? LOL.
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.