I want sql querys in such away that when we enter date it should display name of week

Is there any inbuilt function please give me query for that
jitendra

SELECT datename(WEEKDAY, getdate())
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • How can I read the last cell of a JTable that a user Enters data

    I have a one column JTable with several rows that a user enters data to. Upon entering the last data, the user clicks a button to read all the data from the rows in the JTable and puts them in an arraylist. If the user does not click enter or navigates away from the last cell, then after clicking the button it does not read the last cell entered. Since the user is clicking on a button to indicate he is done entering data on the table, does he also have to hit the enter key to indicate he is done entering the data?
    The code below is my tablemodelListener:
    public class InteractiveTableModelListener implements TableModelListener {
    public void tableChanged(TableModelEvent evt) {
    if (evt.getType() == TableModelEvent.UPDATE) {
    int row = evt.getFirstRow();
    System.out.println("Update row:"+" "+row);
    jTable1.setRowSelectionInterval(row, row);
    }

    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.
    In the future, Swing related questions should be posted in the Swing fourm. (This question has been asked and answered dozens of times).
    But there is not need to repost because [Table Stop Editing|http://www.camick.com/java/blog.html?name=table-stop-editing] explains whats happening and give a couple of solutions.

  • Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Doesn't do that for me. Try resetting the phone

  • Why does imail on my iMac keep asking for passwords, that when I enter the correct one it does not recognise, but Yahoo does, its driving me nuts!!!!

    What is going on at Apple, mail keeps asking for a password, that when I enter, it ignores, my imac is telling me it cannot talk to the Yahoo server, but I can get through every time on Safari. This is driving me nuts!!!

    you are lucky i will say,
    i got problems with email, update,id,keyboard mistyping, wifi, they said they will send me one they never did, and don't reply anymore, after 55 days witha  3 years warranty. good luck. i swear it is true.

  • I want to download from App Store but when I enter my billing info cause I don't want to put my card on there so I press none and enter my details then press next it don't do anything

    I want to download from App Store but when I enter my billing info cause I don't want to put my card on there so I press none and enter my details then press next it don't do anything

    http://support.apple.com/kb/HT2534

  • HT4623 I am using iPhone 5 by Cricket and it is international unlock and i tried that when i entered the sim first time it gives network but when i take out the sim and entered the sim again it doesnt give network

      I am using iPhone 5 by Cricket and it is international unlock and i tried that when i entered the sim first time it gives network but when i take out the sim and entered the sim again it doesnt give network and keep searching why ?? Is this problem can be resolve

    Don't know where you got that idea, all US Cricket iPhones are carrier locked, with NO way to get them officially unlocked, as Cricket DOES NOT offer official unlocking for the iPhone.

  • Created form in Livecycle Designer 8, send to 2nd party to complete some fields, want to lock those fields so that when sent to 3rd party to complete cannot edit

    I am a newby to this product and have created a form from a PDF.  I used Adobe Livecycle Designer to place text fields in form.  I saved, then enabled user rights.  I sent to 2nd party to open in Adobe reader.  This person needs to populate some of the fields.  Once this is done the 2nd person is to email to 3rd person who will complete the outstanding fields and return the form to the second person.
    How do I stop the 3rd person from editing the text the second person put in the form?
    I want the second person to receive the complete form back not just the responses put in the text fields?  Does this happen automatically or do you have to tell it send complete form.
    Thanks from Sandra in Australia

    How do you save the file? Do you directly send it via mail with a button? (If the question is silly I'm sorry, because I have no lincenses... so I am completly unaware of the choices you have.)
    You need to be able to save a file Reader Extension licenses I think...
    Probably you should ask for the fake E-Mailbutton, to be able to send it to different people one after the other...
    Make an invisible Decimalfield.
    The preSave/preSubmit field javascript...:
    this.rawValue = this.rawValue + 1
    if (this.rawValue > 0)
    {Decimalfield1.access="readOnly";}
    if (this.rawValue > 1)
    {Decimalfield2.access = "readOnly"}
    will lock decimalfield1 after the first save/submit and decimalfield2 after the second. Normally that should do the job.
    PS: Another way to save the document and lock ALL fields, you don't have to buy additional licenses is print it as pdf.

  • Iput under settings that I want google as my homepage, and that when firefox starts up it will show the home page but whenever I open up a new tab in firefox its always yahoo. Could you help me?

    Yes, I looked in settings and made sure the homepage is google.com and that it says open up homepage when fire fox starts. But for some reason whenever i open a new tab yahoo keeps coming up.

    Try correction for '''Corrupt localstore.rdf''' - MozillaZine Knowledge Base
    http://kb.mozillazine.org/Corrupt_localstore.rdf

  • I want to find my ipad mini, but when i enter with my apple id it says that its not registered, how can i find it if i think its missing?

    Hi, I need help locating my ipad mini, I used find my phone, but when i log in to icloud, it says to be not registered.
    because i dont know where it is i cant configure it.
    and im wondering if with the info on the box i might be able to find it, or any other way?

    You can track your iPad if you have enabled Find My iPad.
    Did you enable Find My iPad?

  • REG : restrict in a way that user has to enter data from f4 help

    hello,
    i have problem that i have to restrict the user in a such a way that he can enter data that is in F4 help.
    or it is blank .
    i am using it in DIALOG PROGRAMMING. it i put attribute as input NOT POSSIBLE itwill become gray but my user doesn't want it.so how can i restrict. them to write data in it.

    Hi Prathap,
           As you said one way could be to make it a Drop down...but if values are more than 10, it is definitely going to be the worst UI element user has to face..
       Other way is to make the field input disabled. Please note that the F4 still works in these cases EXCEPT that it cannot copy value when user selects it in F4. This can be addressed by handling the F4 rather than leaving it to dynpro framework.
       Use
    PROCESS ON VALUE-REQUEST.
            field GV_TEST_VAR MODULE  get_value_on_F4.
    This will trigger the module get_value_on_f4 when user chooses F4 on the field( where he cannot Enter Manually). Now you can even put a simple screen showing values of the length you desire, Get it back after user selects and PUSH the value into the variable.So User cannot Enter , F4 is available also with values shown as long as you want,,,
    Hope this helps.

  • How to enter data manually in SQL server mgmt studio 2012

    On a new table,  I right click and select "Edit Top 200 rows".  It looks like I can enter data here but
    I dont see a 'commit' button anywhere.  If I click outside the cell it generates an error that I have not committed the data.
    I just want to enter some picklist data and don't want to script this.  How can I just enter data via the gui?
    Thanks

    Please fill the data row by row. When you enter the data in first row then press enter. Then you should move to next row.
    --> Error Message: String or binary data would be truncated
    Error message says that, for some column you have let's say varchar(10) but you are entering data with >10 length
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • How to guarantee that all the inserted data entries are shipped to the...

    How to guarantee that all the inserted data entries are shipped to the correct Coherence caches?
    I successfully created the table Employees, Address and Phone tables and their conresponding Java Classes. I also finished all the JPA and persistence works. Any updated data can persist to the corresponding database tables. Now I want to create the corresponding Coherence caches for these java objects. I want to know how to guarantee that all the inserted data entries are shipped to the correct Coherence caches? For example, guarantee all the employee data entries are added to the Employees caches and all the address data entries are shipped to the Address caches (do not ship the address data entries to the Phone or Employees caches)?
    Thank you

    qkc wrote:
    How to guarantee that all the inserted data entries are shipped to the correct Coherence caches?
    I successfully created the table Employees, Address and Phone tables and their conresponding Java Classes. I also finished all the JPA and persistence works. Any updated data can persist to the corresponding database tables. Now I want to create the corresponding Coherence caches for these java objects. I want to know how to guarantee that all the inserted data entries are shipped to the correct Coherence caches? For example, guarantee all the employee data entries are added to the Employees caches and all the address data entries are shipped to the Address caches (do not ship the address data entries to the Phone or Employees caches)?
    Thank youWhat persistence architecture are you using?
    - Cache stores with JPA/Toplink cache stores?
    - JPA implementation with Coherence used as a cache provider for the JPA engine?
    - TopLink grid?
    - anything else?
    Until you provide this bit of info, don't expect a meaningful answer...
    Best regards,
    Robert

  • TS1702 Cannot install apps at all in app store, even free. iPhone 4 says there is a billing issue and wants my security code which when I enter it, it claims it's invalid...

    Cannot install apps at all in app store. iPhone 4 says there is a billing issue and wants my  credit card secruity code which when I enter, it claims it's an invalid code...

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorizations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/

  • Add a field in selection screen and enter data in that field .......

    Hi,
    I want to add a field in the seletion screen and when the user enters data , it should store in the data base table, the data base table is MKPF-BKTXT, please can any one let me know how to do this... very urgent...

    Hi
    Try to use EXIT_SAPMM07M_001, it's to update the item (not header) text, but you can try to use it:
    FIELD-SYMBOLS: <BKTXT> TYPE MKPF-BKTXT.
    ASSIGN ('(SAPMM07M)MKPF-BKTXT') TO <BKTXT>.
    IF SY-SUBRC = 0.
      <BKTXT> = <.....>.
    ENDIF.
    Max

  • I want to write a java program that can add a user to a role or sub role to the Profile Database in iPlanet Portal Server 3.0. Does anyone has any idea or a sample program do such thing. Thanks, Tommy

    I want to write a java program that can add a user to a role or sub role to the Profile Database in iPlanet Portal Server 3.0. Does anyone has any idea or a sample program do such thing? Thanks, Tommy

    // create the user profile, get the handle back,
    // and set the membership profile attributes.
    ProfileAdmin newProfile = null;
    try {
    // the users profile name is the domain      
    // he belongs to plus their userName
    // you will request.domain if your doing this from a servlet, domain_name is the domain_name the user belongs too
    String profileName = domain_name + "/" + user;
         if (debug.messageEnabled()) {
    debug.message("creating profile for " + profileName);
    // create the user profile object
    newProfile = ProfileManager.createProfile(
    getSession(), profileName ,Profile.USER);
    UserProfile userProfile = (UserProfile)newProfile;
         // set the role the user is a member of. Default is to set
         // the users to the default role of the domain they surfed to
         StringBuffer roleName = new StringBuffer(64);
    // request.domain instead of domain_name if your doing this from a servlet ..
    Profile dp = getDomainProfile(domain_name);
    roleName.append(dp.getAttributeString("iwtAuth-defaultRole"));
         if (debug.messageEnabled()) {
    debug.message("setting role for " + user + " = " + roleName);
    userProfile.setRole(roleName.toString());
    newProfile.store(false);
    } catch (ProfileException pe) {
         debug.error("profile exception occured: ",pe);
    return;
    } catch (ProfileException pe) {
         debug.error("login exception occured: ",le);
    return;
    HTH ..

Maybe you are looking for

  • Error while raising a invoice using VF01

    Hi, I am getting an error while raising a invoice using VF01. Error as follows RV_MESSAGE_UPDATE Update was terminated System ID....   TIP Client.......   300 User.....   user1 Transaction..   VF01 Update key...   E66E6454075548D8922BAC091E81F0CB Gen

  • FI ERROR Gb001. Internal program error process_leaf 2 value 12

    there is some sort of validation and substitution that is used by FI consultant. After that whenever i enter amount in FG60 and press enter the error comes.Please share the solution. Affected transaction - FB60 Message code - GB001

  • Importing audiobooks from CD

    I'm trying to help my daughter to import a couple of audiobooks from CD into iTunes.  I'm used to downloaded audiobooks (mainly from Audible) where an unabridged reading is stored in a small of files (usually from 1-3), each of which is broken up int

  • Get photos from camera: custom folder setting?

    When I use Bridge to get photos from my camera, can I tell it to put them in specific folders according to the date the photo was taken? For instance, instead of telling Bridge to download photos with a filename mask like YYYY-MM-DD could I tell it t

  • Received duplicate and sometimes triplicate e-mails

    This problem started three days ago. It will show in my dock that I have 2 new messages. I check them and then I see that they are duplicates of the same received mail. I then go to delete them and a couple minutes later I will get the same mail agai