Need guidelines on deciding over varchar or nvarchar

Hi All,
I need to know following information regarding sorting.
1. Is linguisting sorting possible for char, varchar columns ? Or it is only available for nchar, nvarchar columns ?
2. Performance wise which would be better (with the constraint that my database character set is already utf-8) - char, varchar columns or nchar, nvarchar columns ?
3. I have some database colums, of varchar datatype, which presently store iso-8859-1 characters. In future they are going to store asian characters also. My database character set presently is utf-8. In this situation will it be better to change the datatype of these columns to nvarchar or increasing the length of the columns by 3/4 times should be better choice ?
Any input/pointer would be highly appreciated.
Regards,
Sourav

Hello,
Before I forget you should take a look at the whitepapers on Globalization home page at:
http://www.oracle.com/technology/tech/globalization/index.html
Linguistic sorting is supported for varchar and char columns. Performance wise you may do better migrating your columns to your UTF8 database versus using extra NCHAR columns. You can expand the column sizes as needed to store Asian data as you said by a factor of 3 or 4, or you can use character length semantics. Should you decide to use character length semantics I would advice to do it for the entire database and not just select columns. You can read more about character length semantics in the Globalization Suport Guide.

Similar Messages

  • I need help on deciding a New gaming computer!

    I need help on deciding which pc would be best for running valve games from bestbuy...I dont care whether a laptop or a pc i just want to play tf2 with smooth gameplay.  my price range is 1200 and less

    For Team Fortress 2, the requirements to run it on Steam are:
    1.7 GHz Processor
    512 RAM
    DX8 Video card
    Recommended is
    3 GHz Processor
    1 Gig RAM
    DX9 Video Card
    So, you could easily buy a desktop PC for around $400 to $500
    Here's some to look at:
    http://www.bestbuy.com/site/olspage.jsp?id=pcmprd107500050000&skuId=9999107600050000&type=product&ch...
    http://www.bestbuy.com/site/olspage.jsp?id=pcmprd107500050001&skuId=9999107600050001&type=product&ch...
    http://www.bestbuy.com/site/olspage.jsp?skuId=9156478&type=product&id=1218038551741
    I would recommend a desktop for gaming over a laptop because you'll have the ability to upgrade the video card down the road (all of these PC's have a PCI Express slot available) and more importantly, better heat dissipation (plus you can usually add additional case fans if necessary).  Plus, the cost is half that of a laptop.  But if you need it to be portable, then you'll have to look at the laptops, and if you do that, consider a laptop chiller to keep it cool.
    Also, look at the AMD processor systems.  Most systems in the lower price range incorporate onboard graphic solutions.  Most games want either an ATI or Nvidia solution for 3D graphics, pixel shading, etc.  The Intel Graphics Solution won't run those games at all.  Also, I would avoid any mini-case desktop PCs (slimlines), because they tend to run hotter inside, some graphic cards will not fit inside them, and some have non-standard size components (such as the motherboard, power supply, etc.
    IMHO - I would spend what is necessary to run the games you want at a comfortable margin and save the extra money for down the road upgrades or a replacement system when you encounter a game you really want to play that won't run on your system. 
    Hope the info helps.... Good luck with your purchase!

  • How to connect an apple tv to an enterprise network with a username and a password?   I need to use it over my university's wifi. theres no option to enter username and password. how to connect the apple tv to such enterprise network?

    How to connect an apple tv to an enterprise network with a username and a password?
    I need to use it over my university's wifi. theres no option to enter username and password. how to connect the apple tv to such enterprise network?

    Contact the University's IT dept, they may be able to set something up on the network to allow the ATV to connect without the need for a user name/password.

  • I updated my ipad from IOS 5 to IOS 8. All games and apps that I downloaded was deleted. What can I do to return them back, even after downloading one of the games He deleded all the steps I went through and I need to start all over  again

    I updated my ipad 2from IOS 5 to IOS 8. All games and apps that I downloaded was deleted. What can I do to return them back, even after downloading one of the games He deleded all the steps I went through and I need to start all over  again

    iCloud: Restore or set up your iOS device from iCloud
    Or from iTunes  http://www.iphonefaq.org/archives/971992

  • What is the best charging cable for the iPad Air (that is not made by Apple)? I need a long cable (over 6ft or more). I also need the cable to be of high quality and the cord part of the cable to be made of strong material.

    What is the best charging cable for the iPad Air (that is not made by Apple)? I need a long cable (over 6ft or more). I also need the cable to be of high quality and the cord part of the cable to be made of strong material. Apple does not make one this long. Is there a cable out there that is sturdy like this and is safe to use?

    yes, but I'm trying to use my iPad to type notes (using pages) and I have the smart case which I use as a stand. I need a cable long enough to fit through the back of my desk and the charging brick for the iPad won't fit behind the desk. I have to put it on the floor and then the apple cables aren't long enough to reach.

  • I need help to decide which macbook pro is best for photo editing, editing movies and doing all the rest too like excel, word etc. 13"

    I need help to decide which macbook pro is best for photo editing, editing movies and doing all the rest too like  microsoft office products ...excel, word etc.  I am new to the apple world and have liked the idea of the MAC Book Pro 13" but really dont know if this is good enough or if the computer will soon crash?
    13-inch: 2.6GHz
    with Retina display
    Specifications
    2.6GHz dual-core Intel Core i5
    Turbo Boost up to 3.1GHz
    8GB 1600MHz memory
    512GB PCIe-based flash storage1
    Intel Iris Graphics
    Built-in battery (9 hours)2

    That's a fine machine and, with 8GB of RAM and 512GB flash storage should serve you well for light video/photo editing as well as for 'normal' usage. And it should last you for years to come.
    Good luck in making your decision!!
    Clinton

  • Bought an iPad. I put in wrong email as Id. I tried erase but can't get in to my account. I need to completely start over. All I see is instructions to change my password.

    I'm trying to start over. Typed wrong id ( not my email). Now I have a new id but can't change my iCloud account. I need to just start over from scratch but it won't let me do so. When it sends verification it is sending it to a nonexistent email.

    Sggest you setup as new and make sure you get the Apple ID correct. Use new Apple ID.
    Settings>General>Reset>Erase all content and settings

  • Hi, I had recently purchased ipad3 and but obviously have been having issues with heating up and some minor issues with video playback etc. Apple has agreed to replace my device. I need help in deciding whether i should get a new ipad3 or opt for ipad2.

    Hi, I had recently purchased ipad3 and but obviously have been having issues with heating up and some minor issues with video playback etc. Apple has agreed to replace my device. I need help in deciding whether i should get a new ipad3 or opt for ipad2. Seller is willing to replace it with ipad2 as well..
    Have also heard that the ipad3 revamped version is around along with the mini pad rumor..too much information - lot's of confusion pls help

    Lindsay,
    Your iBookG4 is still a pretty awesome Mac. Like already said, it has the power to run Leopard, but it depends if you have an internal DVD drive.
    Then I suppose you have to add up the cost of the OS, perhaps another 512MB RAM, iLife 08 and replacements for any favourite apps that you currently use (Leopard breaks a lot of stuff, but Intel breaks even more). Compare it to the cost of a new MacBook, which wil have all of that included and be 3-4x faster too.
    It also depends on what you want to achieve with your iBook. My PMG4 still cuts it today, I still use it in preference to my new Mac Pro, It's about the same age as your iBook, and I'll only stop using it when it becomes "painfully" slow. My 1 year old son currently uses the Mac Pro (parts for a Mac Pro are easier to replace than those for a PMG4).
    I think your choice is simple, if you can a cheap copy of Tiger, use that, it'll get your iPod Touch up and running. It came in DVD and 4 CD version (by request).
    Leopard will work for you too but a lot of the best eye-candy requires quite a meaty graphics card and you may need a RAM upgrade and replacement software - OS9 Classic is not supported in Leopard.

  • I have a computer lab that is tied to my personal Apple ID, I need to change them over to a different Apple ID (school Apple ID).

    I have a computer lab that is tied to my personal Apple ID, I need to change them over to a different Apple ID (school Apple ID). How do I do it & still keep my old ID? They are all iMacs & some are on Maverick & some are on Yosemite.  Some have Final Cut Pro that has a ID from a teacher that is no longer here.  They all need to be standardized to the school apple ID.

    I hope you have Apple Remote Desktop, otherwise you have a lot of work to do.
    Use Terminal to look for app store receipts…
    sudo find /Applications -path "*Contents/_MASReceipt/receipt" -print | sed 's#.app/Contents/_MASReceipt/receipt#.app#g'
    /Applications/Apple Configurator.app
    /Applications/Install OS X Mavericks.app
    /Applications/iPhoto.app
    or search the entire disk…
    sudo find -x / -path "*Contents/_MASReceipt/receipt" -print | sed 's#.app/Contents/_MASReceipt/receipt#.app#g'
    -x stops find crossing into other disks (via /Volumes).
    Note you will probably need the second version since users may have installed apps in their user accounts (~/Applications is a legitimate place to store them).
    You need to use sudo in an admin account otherwise find will throw a lot of permissions denied errors (harmless, but you may miss apps in restricted directories).
    You probably can arrange those apps into a report for making a script to 'rm -rf' those apps. I don't know how you can read the original owner - it would be good to avoid deleting apps that don't belong to an incorrect account, since you will need to reinstall them.
    Apple do have a volume licensing program, I'm not sure how good it is. It wasn't available here when I needed it.
    If you don't have ARD setup, make a script & carry it around on USB, login as admin, enter admin password to run script, & wait for deletion to complete…

  • I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )

    Hello
    I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )
    I have a script where I copy from my local server ( server1) to the remote server ( server2 ), but I can´t not make script that will copy from the remote server to my local by my session. From server2 to server1
    Script is as below ...:-)
    HELP : ....
    winrm s winrm/config/client '@{TrustedHosts="SERVER2"}'
        $Source = "D:\test\ok.log"
        $Destination = "D:\test\ok.log"
        $session = New-PSSession -ComputerName SERVER2
    Set-StrictMode -Version Latest
    ## Get the source file, and then get its content
    $sourcePath = (Resolve-Path $source).Path
    $sourceBytes = [IO.File]::ReadAllBytes($sourcePath)
    $streamChunks = @()
    ## Now break it into chunks to stream
    Write-Progress -Activity "Sending $Source" -Status "Preparing file"
    $streamSize = 1MB
    for($position = 0; $position -lt $sourceBytes.Length;
        $position += $streamSize)
        $remaining = $sourceBytes.Length - $position
        $remaining = [Math]::Min($remaining, $streamSize)
        $nextChunk = New-Object byte[] $remaining
        [Array]::Copy($sourcebytes, $position, $nextChunk, 0, $remaining)
        $streamChunks += ,$nextChunk
    $remoteScript = {
        param($destination, $length)
        ## Convert the destination path to a full filesytem path (to support
        ## relative paths)
        $Destination = $executionContext.SessionState.`
            Path.GetUnresolvedProviderPathFromPSPath($Destination)
        ## Create a new array to hold the file content
        $destBytes = New-Object byte[] $length
        $position = 0
        ## Go through the input, and fill in the new array of file content
        foreach($chunk in $input)
            Write-Progress -Activity "Writing $Destination" `
                -Status "Sending file" `
                -PercentComplete ($position / $length * 100)
            [GC]::Collect()
            [Array]::Copy($chunk, 0, $destBytes, $position, $chunk.Length)
            $position += $chunk.Length
        ## Write the content to the new file
        [IO.File]::WriteAllBytes($destination, $destBytes)
        ## Show the result
        Get-Item $destination
        [GC]::Collect()
    ## Stream the chunks into the remote script
    $streamChunks | Invoke-Command -Session $session $remoteScript `
        -ArgumentList $destination,$sourceBytes.Length
        Remove-PSSession -Session $session

    But have will the script look,  if i need to copy from
    From server2 to server1.
    My script copy from server1 to server2 and working, but I need server2
    to server1.

  • I've switched to a new laptop and need to start all over installing everything

    I've got to find the place to start all over with CC on an already existing account. I've switched to a new laptop and need to start all over installing everything@

    Cloud License allows 2 activations http://www.adobe.com/legal/licenses-terms.html
    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
    -Windows or Mac does not matter... 2 on the same operating system, or 1 on each

  • Do i need to reinstall yosemity over  the bata version?

    Do i need to reinstall Yosemite over  the Bata version?

    Hi drivemaster,
    You don't need to, but I would. Just go to the App Store and download/install Yosemite over your beta release.

  • Need help in retrieving a varchar in a web application.

    HI,
    I need a urgent help in selecting a varchar column on to the web application.
    Here are I am using the DB as MSSQL. I can see more than 1000 characters when I open the table in Enterprise Manager, but the same query if I excute in SQL Query Analyser, I see the result with only 256 characters. In the same way my Java application is working. In my DB table I have a column with nvarchar and I want to write to code to get that infomration of 2000characters on to the web page.
    Can any one of you help me out.
    You can reach me at [email protected]
    Thank You
    Neelima

    However, the interesting thing here is that the SQL
    analyzer displays the same 256 charater for the select statement...So you see 1000 using one MS tool and 256 using another tool? And neither of these have anything to do with java.
    Hmmm.....to me that suggests that it has nothing to do with java.
    If it was me I would start looking at my assumptions about where the data is coming from:
    -Is it the same database?
    -Is it the same table?
    -Is it the same row?
    -Is it the same field?
    -Is something modifying it while I am looking at it?

  • Substring over varchar(max) using SSIS

    Hi,
     I´m facing the next issue: our data source provides a table with a column with varchar(max) datatype (it comes from a BLOB oracle column source system). The content of this column it´s actually string (html text generated by an editor) over which we
    need to apply some sort of substring to remove undesired characters (the infamous Byte of Mark -BOM-). Unfortunately neither SSIS functions or T-SQL functions can do a substring on a varchar(max) content, so I imagine that I will need some kind of programatically
    approach creating a custom function. Has anyone done something similar?
    Thanks in advance

    I am thinking you could measure the size of the content, break into chunks and convert into a varchar(8000) temp holder where you can manipulate on text.
    PS: I am not sure how Byte of Mark -BOM chars look like
    Arthur My Blog

  • Need help on deciding which Mac I should buy

    Alright, so I have a very important decision I need to make and I really need help making it.
    My two choices:
    Choice 1: My first choice is that I have $1378 dollars to buy a MacBook. My choice is the MacBook air 13" with 128 GB hard drive, 8 GB Memory, and 1.7 GHz processor.
    Choice 2: My Dad does not want his MacBook Air 11" base model from 2012. He is willing to give it to me. In return, I will give him the $1378 and he will buy himself a $400 laptop from that. Then he will buy me a 500 GB Thunderbolt hard drive and a thunderbolt to hdmi adaptor for the MacBook Air. The remaining money will then go to me.
    Either choice I take, I need a computer fast enought to do serious video editing with Final Cut Pro and Multi-tasking. Also, it needs to last 3 years. Which choice should I take. I have one week to decide. Either way, my dad will pay for my Mac OS X Mavericks Update.

    The processors in the new MacBook Airs are not that much more powerful than the 2012 models, the real difference is in the battery life. When you say your dad has the base model, I'm assuming that is the 4 GB RAM/64 GB SSD version. You would be cutting it close on storage space, but the external Thunderbolt drive would make up for that. 4 GB RAM is also cutting it close, especially for video editing, but I hear the flash storage on the MacBook Airs helps compensate for that.
    If it were me, I would go with option 2, considering you should have a pretty good chunk of change left over once your dad buys his laptop and your Thunderbolt accessories.

Maybe you are looking for

  • Indesign CS4 Crashes When Importing Another Indesign CS4 File

    Help! Every time I try to import an Indesign file into another Indesign file, my Indesign crashes. Also happens when I try to open an existing Indesign file that has files already imported into it. This is a problem because I have existing files I ne

  • Date and time stamp in array

    Hello, I am using Labview 8.0 and I would like to include a date and time stamp each time data is collected and include this as a 5th column in the final array.  I inserted a random number generator instead of devices so it would be easier to underst

  • Famous Blue Screen installing 10g 10.2.0.1 on XP Pro SP2 - need help

    Hi, did anybody encounter the same problem. I tried different install versions (First software and database, then software, next database, then software, then scripts for database). Finally I could indentify the problem zone: It's within the postDBCr

  • Migrating of code from JAXB 1.0 to JAXB 2.0

    Hi, We have used JAXB 1.0.3 for the binding purpose and other stuff. Now we have to migrate to JAXB 2.0. While migrating i am facing the following issues, as we shouldnot use any deprecated method iin the code so need to replace the appropriate Inter

  • Upgrade tp s1ws 6 sp4

    My peer just upgraded an installation of s1ws 6 sp1 to sp4 and get the following error during startup. [11/Apr/2003:13:31:08] catastrophe ( 7687): Server crash detected (signal SIGSEGV) [11/Apr/2003:13:31:08] info ( 7687): Crash occurred in function