Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 tables in same database and each table has 30 columns and i want 8 column from one and 4 from another to do search?

product
SQL
product_ID          int                not null
Can_proj_code     nchar(10)
Project_name       nvarchar(150)
RU                 nvarchar(50)
BU                  nvarchar(25)
MOA                 nvarchar(50)
Indiaction           nvarchar(50)
Phase                 nvarchar(50)
PGRD_Status            nvarchar(50)

ProjSummPubl_Team
SQL
Product_ID          int         not null
Role_Name          nvarchar(50)
Assoc_NameLFM           nvarchar(100)
Assoc_NameLFM_HTML    nvarchar(150)

these are the table and i want to do search from these columns and when somebody put any of the data from these fields it will show in grid view
i am using wcf, stored procedure and silverlight4 VS 2010

i want stored procedure for search that can search with all columns from all columns from both tables. and show in grid view combined all 11 columns
[Edit] shouting is rude[/Edit]
Posted
Updated 26-Sep-10 18:55pm
v4

1 solution

Either create a database view with the columns you desire or do a join in the stored proc.

What is it you need help with?
 
Share this answer
 
Comments
yashdeepsahni 26-Sep-10 18:09pm    
i want stored procedure for search that can search with all columns from all columns from both tables. and show in grid view combined all 11 columns
[no name] 26-Sep-10 18:36pm    
And what have you tried so far? No one is going to write it for you; however, we will assist if you show some effort

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900