Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 SQL Procedure help separate the parsd column value
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

G_rose42
Starting Member

India
1 Posts

Posted - 09/13/2014 :  11:21:24  Show Profile  Reply with Quote
I have facing some difficulties to build a SQL Query for my new requirement below is my table I have to list the items and paramlist in the gridview
i have attached image for my table and o/p.

in the table paramlist column contails the likebelow
declare @vari varchar(max)='param=1;param=2;param=3;param=4;...param=20;param=21;'
Table1
itemname paramlist
-------------------------
item1 @vari
item2 @vari

Note: Param length might be vary based on each item (ex:item1 can have param upto 20 and item2 30)

o/p
item param1 param2 param3 param4 …
-------------------------------------------
item1 1 2 3 4 …
item2 11 22 null 44 …



GKRISH
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000