Viewing 15 posts - 14,941 through 14,955 (of 15,381 total)
You can just declare a variable of your type and then run some inserts to populate it.
declare @myTable myTableType
insert @myTable
select...[whatever data you need to make your type]
select * from @myTable
March 8, 2011 at 7:43 am
Steve Jones - SSC Editor (3/7/2011)
Sean Lange (3/7/2011)
March 7, 2011 at 3:03 pm
Lowell (3/7/2011)
March 7, 2011 at 1:30 pm
Or join to the table.
Select ProjectID, ProjectName
from tabProject p
join tabProjectID pid on p.ProjectID = pid.ProjectID
March 7, 2011 at 1:23 pm
Thanks. Admittedly not the way i would write it if it wasn't a one time thing. Appending strings and such. UGH!!! Hope this helps.
March 7, 2011 at 12:58 pm
Since this is .net and you sending this data from views I will assume your are using a DataTable to hold the data? You could debug the code and look...
March 7, 2011 at 12:50 pm
What about your wsdl file? That has everything in there.
March 7, 2011 at 12:34 pm
Another point about maintaining a system with encrypted stored procedures. If you do not keep the original script in source control you run the risk of not knowing what the...
March 7, 2011 at 12:31 pm
Are you doing an update from and the join can have multiple returns? If that is the case then you need to find a way to isolate the values you...
March 7, 2011 at 12:20 pm
Same deal. If you try to drop a temp table that doesn't exist it will throw an exception. If you drop an existing temp table it will work fine.
March 7, 2011 at 12:19 pm
SELECT dbo.O3.[s.no] AS [O3_Sn.NO], dbo.O5.[s.no] AS [O5_Sn.NO], dbo.O3.O3, dbo.O5.O5,
case when dbo.O3.[s.no] > dbo.O5.[s.no] then 'true' else 'false' end as ComparisonColumn
FROM ...
March 7, 2011 at 12:00 pm
I think you are asking if you have to wrap the create table with an exists check? You do not have to, but it will throw an exception if the...
March 7, 2011 at 11:54 am
Jeff - here is my proof of concept. I spent a little time to clean it up so that somebody else might be able to understand.
The sql file in...
March 7, 2011 at 9:36 am
Isn't that what Friday afternoons are for?
Yes, but I try my best not to limit to just Friday's.
March 7, 2011 at 9:29 am
Jeff - I will try to get it cleaned up a little bit and post it either today or tomorrow.
March 7, 2011 at 8:22 am
Viewing 15 posts - 14,941 through 14,955 (of 15,381 total)