Viewing 15 posts - 1 through 15 (of 18 total)
I ended up writing a Scalar Function that take the ProductItemID and returns the full name.
CREATE FUNCTION [dbo].[GetProductItemFullName]
(
@ProductItemsID INT
)
RETURNS VARCHAR(255)
AS
BEGIN
DECLARE @Result VARCHAR(255)
DECLARE @ProductUnitType VARCHAR(255)
SELECT @Result = ProductItems.ProductItemName + ' '...
January 24, 2012 at 3:51 pm
Also i would like to mention i am not a fluent in T-SQL i am doing everything for some projects front and back, and while i can somewhat stumble my...
October 19, 2011 at 11:28 am
Your actually right with not needing 2 of the tables, but its not affecting the data. I am still going to pull back only leads where the campaignID matches, so...
October 19, 2011 at 11:15 am
Arithmetic overflow error converting int to data type numeric.
October 14, 2011 at 3:47 pm
It is not happy with this line
SELECT @LeadsinCampaign = COUNT(dbo.Leads.LeadID) AS CountOfLeads
Multi-Part Identifier (dbo.Leads.LeadID) could not be bound
Incorrect syntax near AS
October 14, 2011 at 3:41 pm
And for final reference because people may Google this one day. I used table variables and they were way easier to think about and work with.
Plus as an added bonus...
August 18, 2011 at 2:45 pm
That is no problem good luck with rewriting your application. I am slowly gaining traction at this, some days in bounds some weeks are a crawl.
That is just how it...
August 17, 2011 at 8:46 am
"Don't over think this" I think i have that problem every day, i guess it would be best to return both data sets in 2 sprocs and handle displaying...
August 17, 2011 at 8:31 am
Since returning these to separate sets of data is required for one report i was really trying to keep it all contained in one stored procedure. Since the amount of...
August 17, 2011 at 7:48 am
I wasn't clear enough i am sorry. I need it all to go on one row. I guess i could use 3 temp tables, and the results of the 2...
August 16, 2011 at 4:23 pm
@sean yeah its two different timestamps in the database that will in turn return 2 different results because patients may not necessarily have had orders create in the...
August 16, 2011 at 3:18 pm
I am sorry let me go back to my specs before i waste anymore of anyone's time.
August 16, 2011 at 3:08 pm
For future reference for people who come across this down the line the following sproc on the Database side handled everything i need it to handle
In .NET i have a...
June 15, 2011 at 3:16 pm
See below for a final example of how i accomplish my tasks
June 15, 2011 at 2:41 pm
Thanks eddie '../@ID' was what wasnt clicking, thanks so much.
June 9, 2011 at 1:56 pm
Viewing 15 posts - 1 through 15 (of 18 total)