.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

What are three SQL keywords used to change or set someone's permissions?

Posted By :Ghanashyam Nayak     Posted Date :December 23, 2010    Points :15   Category :Sql Server 
GRANT, DENY, and REVOKE.

You can also find related Interview Question to What are three SQL keywords used to change or set someone's permissions?  below: 

How can we change priority and what the levels of priority are provided by .NET ?

  
Thread Priority can be changed by using Threadname.Priority = ThreadPriority.Highest. In the sample provided look out for code where the second thread is ran with a high priority.
Following are different levels of Priority provided by .NET :-
. ThreadPriority.Highest
. ThreadPriority.AboveNormal
. ThreadPriority.Normal
. ThreadPriority.BelowNormal
. ThreadPriority.Lowest (More...)

Does SessionID change with every request in the asp.net 2.0 application?

  
Answer:
For any web programmer, its obvious to think and believe that SessionId remains same through out the user session and it was right till asp.net1.1. But in asp.net2.0, this behavior has changed. In the asp.net application new sessionid is returned with the response to every request until session objects are not used.

According to MSDN the reason/solution is:

"When using cookie-based session state, ASP.NET does not allocate storage for session data until the Session object is used. As a result, a new session ID is generated for each page request until the session object is accessed. If your application requires a static session ID for the entire session, you can either implement the Session_Start method in the application's Global.asax file and store data in the Session object to fix the session ID, or you can use code in another part of your application to explicitly store data in the Session object."


Enjoy. (More...)

How can you set minimum permissions for C# through code?

  
using System.Security.Permissions;
[assembly:FileDialogPermissionAttribute(SecurityAction.RequestMinimum, Unrestricted=true)] (More...)

Are the actual permissions for the application defined at run-time or compile-time?

  
The CLR computes actual permissions at runtime based on code group membership and the calling chain of the code. (More...)

Can you change the value of a variable while debugging a C# application?

  
Yes, if you are debugging via Visual Studio.NET, just go to Immediate window. (More...)

What is the CIL representation of implicit and explicit keywords in C#?

  
The CIL representation is op_Implicit and op_Explicit respectively. (More...)

How can we change the default port?

  
From the Network Utility TCP/IP properties -> Port number.both on client and the server. (More...)

Can you change the value of a variable while debugging a C# application?

  
Yes, if you are debugging via Visual Studio.NET, just go to Immediate window. (More...)

How to change style on an element?

  
Between CSS and javascript is a weird symmetry. CSS style rules are layed on top of the DOM. The CSS property names like "font-weight" are transliterated into "myElement.style.fontWeight". The class of an element can be swapped out. For example:
document.getElementById("myText").style.color = "green";
document.getElementById("myText").style.fontSize = "20";
-or-
document.getElementById("myText").className = "regular"; (More...)

How to change the default page of a Silverlight application?

  
In a simple way we can set the default page, what we have to do is to change the default page of a silverlight application, we have to set the RootVisual property inside the Application_Startup event of the App.xaml file.


private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MainPage();
}
(More...)

How you will Change application to full screen Mode in SilverLight?

  
Application.Current.Host.Content.IsFullScreen=true; (More...)

How to Change the BackGround Color of a Button dynamically in WPF?

  
System.Windows.Controls.Button b = new System.Windows.Controls.Button();

b.Content = "OK";

b.Background = System.Windows.Media.Brushes.Red;
(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend