What type of data I must use in the column (SQL)?

Hi Guys,
I have a little bit problem with this value (2_1232_123). I don´t know what type of value can be. This value is the result of the concatenation of three integer and "_".
The code I have is:
While readerCodeAccount.Read
Code_Account = readerCodeAccount.Item(0)
End While
Try
IDTextBox.Text = Code_Company & "-" & Code_Account

varchar(20) 
But  why storing it in the database if you can generate the concatenation on the fly in the SELECT statement
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • What type of Data target is used when the safety interval is used?

    Hi ,
    what type of Data target is used when the safety interval is used in generic delta in datasource?DSO or cube  or cube?
    Pls explain me ?
    Thanks,
    Nimai

    It's up to your reporting requirement to go for dso or cube..
    I prefer to having staging with DSO and then further reporting on Cube ..
    It's always easier to manage when you have any changes to the cube .. you need not to extract data from R/3 .. if you have dso you can extract directly to cube
    Another thing is -for any reason some of your records got corrupted so you can have full loads to dso which has the overwrite functionality...  and sends delta records to cube. even in cube you can do selective deletion but we have to very careful to avoid double records in next loads
    Edited by: Srinivas on Jul 29, 2010 8:23 PM

  • Has apple made public what type of LED technology is used w/ the 09 17 MBP?

    Is this info public yet? I have called support and sales several time and they are completely unaware.
    I am hoping it's not inferior, old technology. Dell has just release an RGB display which is beautiful. With the premium price we pay, we would hope no corners have been cut.

    The Dell Displays are also LED back-lit displays (read the specs closely) and the technology is the same as Apple's (it even appears to be made by the same fabricator). Dell has indicated that by next year they will move completely to LED back-lit units ([press release here|http://www.dell.com/content/topics/global.aspx/corp/pressoffice/en/2008/20 0809_24_rr000?c=us&l=en&s=corp]).
    Conventional LED technology doesn't permit packaging as small a display pixel (or sub-pixel) so a "true LED" display using conventional LED technology doesn't exist. Instead, so-called organic LED displays are being developed. You don't see these on laptops quite yet as the price is still high ($2000 for an 11" display), but in the next 2-3 years you should start seeing these types of displays coming down in price to the point where they may be practical to replace LCD displays. The OLED displays are more power-efficient, have higher contrast (million-to-1), thinner, scale better (the cost is linear with respect to the diagonal measure, as opposed to exponential with conventional LCD) and they can be made both flexible and transparent. [Here's an example|http://www.reghardware.co.uk/2009/01/09/cesvideo_samsung_see_thruoled>
    I think the OP was asking what sort of LCD panel was being used. Higher-end Macs use H-IPS or S-IPS panels, and the lower-end ones use MVA or PVA panels (except for the MacBooks, which use TN panels). Dell uses mostly TN panels, but also sells S-IPS panels and MVA ones. Almost all Dell notebooks use TN panels, but some use PVA panels. The Dell 2209WA WFP is an example of one of their S-IPS units, and it's a good deal.

  • What type of monitors can I use with the Mac Mini?

    Hello,
    I was thinking on purchasing a Mac Mini. I was not sure if the monitor I have at work with function with the Mac Mini. It is a: 20" ViewSonic Professional Series P815...
    Does anyone know if this monitor will work with any Mac Mini? Is there an adapter for it?
    Thanks.

    It would be fine for them all - all minis have come with DVI video connectors and adapters to convert that to VGA, so aside from the possibility that the Viewsonic might suffer the greyish or dull screen problem that affected a small(ish) proportion of displays with the first generation mini, it should connect up using the adapter just fine, and be correctly recognized by the system.

  • What type of partition should I use? Range or Hash or ..?

    Hi,
    I am on Oracle 8.1.7.4 .
    I have a table with 10 million rows and looks like its a good candidate for partitioning.
    There is a varchar2 column and the data is evenly distributed on the string value. If I want to partition the table on that string value what type of partitioning can I use. How can I give the range, if I use range partition, on the string value ?
    Can/Should I use hash partitioning?
    I know that there is a list partitioning in O9i, but I am on 8i.
    Please help.
    Regards

    <quote>
    I have a table with 10 million rows and looks like its a good candidate for partitioning.
    </quote>
    Table volume, in itself, is not enough to warrant partitioning … hope you have some other reasons.
    <quote>
    … but would like to partition the table on the mentioned varchar2 column, so that queries would be efficiant.
    </quote>
    Since you don’t mention the actual query or class of queries, maybe it is worth mentioning that partitioning could speed up some queries but also can slow down a lot more other queries.
    <quote>
    So, how can i re-create the table partitioned on a varchar2 column
    </quote>
    No different than numbers or dates?
    create table tp
    ( str   varchar2(10)  not null
    ,fill  char(20)      not null
    partition by range(str)
    ( partition p1 values less than ('F')
    ,partition p2 values less than ('L')
    ,partition p3 values less than ('R')
    ,partition p4 values less than (maxvalue)
    insert into tp
    select substr(object_name,1,10), lpad('x',20,'x')
    from user_objects
    flip@FLOP> select * from tp partition (p2);
    STR        FILL
    F1         xxxxxxxxxxxxxxxxxxxx
    GENERATE_R xxxxxxxxxxxxxxxxxxxx
    IPSDEV.US. xxxxxxxxxxxxxxxxxxxxThe link to Tom’s article is fine … it just happens to be one of the few threads he’s not mentioning that partitioning is not the magic fast=true mechanism … look for some other articles on partitioning and you’ll quickly discover his views on this subject.
    There may be a case for partitioning … but you haven’t presented any reasonable justification for it … so, why bother?

  • Creating table without creating domain n dataelement(what type of data is)?

    is it possible to create table without creating domain n dataelement
    for what thoose tables are used for(what type of datait holds?)

    Yes it is possible to create a table without domains and data tables.
    Enter the table name and click on CREATE. On the next screen click on "Predefined types" button. This will gray out the data element column and open the columns data type, length, decimals and text columns for input. You need to specify the data type details in these columns.
    Even though it is possible to create the table in the above fashion I would suggest you create data elements and domains for all the fields.
    -Kiran
    *Please reward useful answers

  • What type of connection should i use?

    Not sure if i should i post this here or web tier api's, but here goes...
    I have a servlet in a tomcat webserver and i want it pass information between it and a standard j2se application running on the same machine.
    I'm not sure what type of connection i should use?
    DataStream?
    Socket?
    HttpConnection?
    Any other recommended method?
    Or if i need a network connection like that at all?
    Thanks for the help

    The most straightforward method would be to use rmi since both are running java. that is the least amount of work on your part in terms of managing connections and data marshalling. any of the other solutions add more burdens in one or both of these areas.

  • How can I find out what type of data is being sent over one of the phones on my plan?

    I have a few phones under a shared family plan.
    I wanted to know what type of data is being sent over them, wether this is VOIP, Streaming Audio or Video.

    I think the only way you can find out is if you look at the device itself.

  • What types of data are entered in the order type?...

    Hello SAP-team!
    What types of data are entered in the order type?
    - Settlement profile
    - Sample order
    - Settlement rule
    - Order category
    - Costing sheet for overhead rates
    ps: thanks to SAP-community!
    Eugene

    Hi,
    What types of data are entered in the order type?
    - Settlement profile- True
    - Sample order -True(by model order)
    - Settlement rule-True
    - Order category-True
    - Costing sheet for overhead rates-False
    Regards
    Sudhakar Reddy

  • What type of pen do you use to take notes on a notetaking app like enotebook

    What type of pen do you use on your ipad for a handwriting app like enotebook?

    You want what's called a stylus. There are a huge variety of styli available; just make sure that the one you get works with iPad (pretty much all of them will say they work with iPad on the packaging). I personally just grabbed the cheapest one at Staples, but you can see a bunch of styli here: http://www.theverge.com/2012/4/10/2925937/best-stylus-ipad-review

  • What type of file can be used with file generator in Motion 4?

    Regarding using the File Generator in Motion 4, what type of file can be used? After clicking the browse button in the inspector tab,
    all files appear greyed out and are not selectable.
    Thanks!
    Richard

    Cool. Thanks GFXZen. I was stumped by TextEdit saving files in rich text format. Here is an article on how to save in plain text from TextEdit:
    http://support.apple.com/kb/TA20406

  • What type of repeater should I use with my new Airport Extreme?

    what type of repeater should I use with my new Airport Extreme? Thanks.

    If you want to repeat both bands of your dual band AirPort Extreme, another AirPort Extreme would meet these requirements.
    If you only need to extend one of the bands that the AriPort Extreme provides, then an Airport Express would do that nicely.

  • I have a new Mac with usb 3.0 ports. What type of cable do I use for an old usb 1 printer

    I have a new IMac with usb 3 ports. What type of cable do I use for conncting on older usb 1 device?

    AFAIK, use the USB 3.0 port to the printer. It should be backward compatible. If not, return the useless computer or get a new printer.

  • Simulator server contains what type of data .

    Please can anybody say the simulator server stores what type of data.

    The simulator actually does not store data at all, just algorithms for generating sample time series data.  Time series data is what you would retrieve from a historian or OPC data source.
    Each time you run a Tag Query and retrieve data from the Simulator you get a freshly generated data set according to the algorithm.  This can be somewhat limiting since you will not have a static "history".
    Regards,
    Mike

  • Data Connection Library used in the workbook is not in a trusted location.

    I got a requirement to display excel charts with data source as SharePoint list.
    Here are the steps which I am following:
    Exported SharePoint list to excel sheet and exported connection file to local drive.
    Uploaded to data connection library.
    Created a new excel file and consumed data from connection file which was stored in data connection library.
    Published the excel sheet to document library with publish options as Chart and Pivot Table.
    Able to see Excel Chart and Pivot table from the browser.
    Getting Error when I try to refresh the excel sheet to get updated data from SharePoint list.
    I added data connection library details to Trusted Data Connection & Trusted File locations still I am getting error. That .odc file is not in Trusted Location.
    "The Data Connection File used in the workbook is not in a trusted location. The following connections
    failed to refresh:"
    Please help me on this and suggest if there is any other approach to fulfill this requirement.

    Hi Pratik,
    Thanks for your input.
    I created a new document library and data connection library and tried the steps mentioned below:
    Configuration
    Enable Claims to Windows Token Service
    The first step, check the status of the Claims to Windows Token Service on SharePoint.
    Use the following instructions to check and enable the Claims to Windows Token Service.
    In Central Administration, in System Settings, click Manage services on server.
    Select Claims to Windows Token Service, and then click Start.
    Verify the service is also running in the Services console:
    In Administrative Tools, click Services.
    Start the Claims to Windows Token Service if it is not running.
    Create a New Secure Store Application
    Create a New Secure Store Target Application and set the credential.
    This credential will be used by SharePoint to access the database. The account set into this step need to have access to the database or SSAS cube/tabular databases.
    Use the following instructions to create and set credential.
    In Central Administration, in Application Management, click Manage service applications.
    Click Secure Store Services, and then click New.
    Target Application Settings:
    Tagert Application ID: ExcelServicesSSS
    Display Name: Excel
    Service Secure Store App
    Contact e-mail: [email protected]
    Target Application Type: Individual
    Target Application Page URL: None
    Click Next.
    Click Next again.
    Target Application Administrators: contoso\administrator
    (Type the user account that will administrate the Secure Store Application.
    Click OK.
    Select Target Application ID ExcelServicesSSS, and then click Set Credential.
    Type Credential Owner, Windows User Name and Password.
    Configure Excel Services
    Add the Application Id created in the previous step to the Excel Services and configure the Trusted Data Connection Library.
    Use the following instructions to add the Application ID.
    In Central Administration, in Application Management, click Manage service applications.
    Click Excel Services Application, and then click Global Settings.
    On External Data, Application ID type ExcelServicesSSS.
    Click OK.
    Click Trusted Data Connection Libraries.
    Click Add Trusted Data Connection Library.
    Address: http://<sharepoint_site>/ (Enter
    the Data Connection Address)
    Click OK.
    But no luck in resolving the issue. Anyhelp would be really thankful.
    Please clarify whether can we pull data from sharepoint list to excel services to display charts?
    Regards,
    N.Srinivas

Maybe you are looking for

  • I just upgraded to iTunes 10.2.2.12 and my Apple TV will no longer load my shared library.

    On Windows 7.  It was working fine right up to the point of the upgrade to iTunes 10.2.2.12.  Once I upgraded and restarted my home computer, the Apple TV (Gen2) does still see the share name of my main home computer hosting the iTunes shared library

  • Evaluating Calculated members in Sub Cube space

    Hello all, I have a question about evaluating calculated members against sub queries. For an example take a look into the following MDX query; with member [Product].[Category].[All Categories] as sum({[Product].[Category].&[1], [Product].[Category].&

  • Add a new column to Cross tab.

    Hi all, I have a rtf template Where I have a cross tab, Product Code as row header and Month as column header(Jan,Feb,......Dec) and Quantity as measure. I need to add Product name right beside the Product code column.. I am not sure how I do this in

  • Monitoring coherence with 12c

    it's asks to enter host, jmx port and service name. I see -Dgud.component-name=OEM is running with all this home=/opt/ringcentral/gud/1.3.2 -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -XX:+DisableExplicitGC -Dtangosol.coherence.

  • Problems Scripting a NumericField event...

    Hello, I do have a problem scripting an event for my numericField - I want the numericField to hide another object if the user enters 0 in the numeric field. Unfortunately this script does not work correctly - and I do not know why and need assistanc