Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi All.I would like to modify my SP that first row will blank when it populate combobox:
create procedure sp_TestasSELECTt.Test_Id,LName+', 'FName as Name,1 as usedFROM dbo.v_Employee tleft outer join dbo.Orders oon t.Test_id = o.Order_Id
Thaks.
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts
Posted - 2008-01-31 : 16:59:30
You should use your client code to do presentation stuff like that. You can insert items into a combo box with your vb/c#/ javascript / whateverIf you really wanted to do it with SQL, and it's a hack I nobody is going to recommend it, you could do a UNION i.e.SELECT 0 AS Test_id, '' as Name, 1 as UsedUNIONSELECTt.Test_Id,LName+', 'FName as Name,1 as usedFROM dbo.v_Employee tleft outer join dbo.Orders oon t.Test_id = o.Order_IdDamian"A foolish consistency is the hobgoblin of little minds." - Emerson