Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9223201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:01:13+00:00 2026-06-18T04:01:13+00:00

Code create table ExampleTable ( Name varchar(500) CultureCode(5) ) insert into ExampleTable values(‘Dit is

  • 0

Code

create table ExampleTable
(
    Name varchar(500)
    CultureCode(5)
)

insert into ExampleTable values('Dit is een test', 'nl-NL')
insert into ExampleTable values('This is a test', 'en-GB')
insert into ExampleTable values('Ceci est un test', 'fr-FR')
insert into ExampleTable values('Dies ist ein Test', 'de-DE')

create procedure GetNameByCultures
(
@CultureCodes varchar(250)
)
as 
begin
//Get ExampleTable items according to the culture codes stated in @CultureCodes
end

-Example:

CREATE TYPE StringListType AS TABLE
(
    [str] varchar(5) NULL
)

I am using MS SQL 2012 V11.0.2100.60

Situation

I’m trying to find the best way (Performance wise) to extract the labels.
Methods I have thought of, but not yet tested are:

  • Creating a user defined table type as shown in the above.

Upside: I know it has almost no performance on the database.

Downside: I have to add another parameter to the stored procedure.

  • Creating a function which splits a string by the char: ‘,’

Downside: I know using “Right”, “Left”, “Like” and other varchar converting / editing properties are slow in SQL

UpSide: I can keep the processing in the database.

In the current situation i’m only sending one culturecode inside a user defined table type.
So it’s impossible to add the culturecode in this UDTT as you can’t add a UDTT to a UDTT.
My only option would be to add another parameter to the stored procedure which shouldn’t be to much of a issue… but we like to keep it to only one.

Does anyone happen to know another (better?) method or should I go with one of these?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:01:14+00:00Added an answer on June 18, 2026 at 4:01 am

    Table valued parameters are the best way as you’re using 2008 onwards. (See MSDN).

    I would thoroughly recommend you read SQL Server MVP Erland Sommarskog’s very comprehensive articles on the different methods available, with analysis and performance details.

    • Article dedicated to Table valued parameters
    • Article dedicated to Some of the alternatives for SQL 2005 (XML, string splitting, etc.)
    • General article page, with links to the above, performance tests and SQL Server 2000 alternatives
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code: create table coltype (coltype varchar(5)); insert into coltype values ('typ1'); create table colsubtype
I have the following test-code: CREATE TABLE #Foo (Foo int) INSERT INTO #Foo SELECT
Here is the SQL: CREATE TABLE dbo.TmpFeesToRules1(Name varchar, LookupId int) INSERT INTO dbo.TmpFeesToRules1(Name, LookupId)
I am trying this code CREATE TABLE #t ( nam Varchar(100) ) INSERT INTO
I have a code: CREATE TABLE IF NOT EXISTS Person ( name varchar(24) ...
I have the following example code: create table Details( name varchar(20), age int, weight
I have to create a table and insert values into the tables. The tables
Suppose I have a table like: create table { id numeric(5,3), code varchar(10) }
I'll start off by showing the code: create table products ('name' text primary key,
When using the following code: CREATE TABLE stats ( username varchar(12), starting text, ending

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.