Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL Server
In SQL server, i want to creat a Table Valued parameter.In my Table Valued parameters are EmpID,RecData,insurID and also one Table Valued Parameters.
In sql server is it possible? can i create TVP inside another TVP?
please help me.
Posted 11-Apr-13 19:58pm
Edited 11-Apr-13 20:15pm
v5
Comments
Mehdi Gholam at 12-Apr-13 1:09am
   
What is TVP?
Prasad Khandekar at 12-Apr-13 1:29am
   
Nope. best way is to create two tables and set a foreign key between them. You can then use JOIN to read data from these tables. I presume that you have one to many relation between these two so called TVP.
renjimaramanan mr at 12-Apr-13 1:34am
   
thanks
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Are you talking about primary and foreign keys?
 
See this: Primary and Foreign Key Constraints[^]
Create Foreign Key Relationships[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 5,170
1 DamithSL 4,357
2 Maciej Los 3,750
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,851


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 12 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100