Viewing 15 posts - 106 through 120 (of 127 total)
I'm able to access all non sharepoint databases on the SQL 2005 server, so its something sharepoint related, I'm off to the sharepoint world, which is like trying to find...
June 5, 2009 at 12:52 pm
yeah its all set, but I don't see an [answered] option to "close" it out
March 20, 2009 at 6:45 am
INSANE, I got it somewhat working but its returning me [ 0]'s, but its running and returning me something. thanks for your help.
March 16, 2009 at 12:49 pm
ARG! !
now when I do that, and try to execute the sp, i just get this {Command(s) completed successfully.} and no data is returned.
This thing is driving me...
March 16, 2009 at 12:37 pm
here is the create statement
CREATE PROCEDURE dbo.sp_GetSalesData
@CurrentYear nvarchar(4),
@PrevYear nvarchar(4),
@Month nvarchar(2),
@SalesMan varchar(max)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering...
March 16, 2009 at 11:09 am
yeah, I'll post it in a few. This thing is driving me nuts because I have another proc in another DB and the proc is setup the sameway and works,...
March 16, 2009 at 11:02 am
the variables are being passed from a .net web app, but when the proc is called it looks like this when i ran SQL Profile:
exec sp_GetSalesData @CurrentYear=N'2009',@PrevYear=N'2008',@Salesmonth=2, @SalesPerson='Smith'
March 16, 2009 at 10:45 am
this is the query I'm running: its the sameone from my first post.
Declare @sql nvarchar(MAX)
set @sql = ' SELECT x.SaleYear, ...
March 16, 2009 at 10:39 am
I'm gettiing the same error as I was when I posted.
this thing is driving me nuts, i've changed and tried everything you have recommended and I still get
{' is...
March 16, 2009 at 10:29 am
I can run it with the values hard coded just fine, so could it be the way the data is being passed to the proc, or could it be something...
March 16, 2009 at 9:24 am
I tried that and still get the same error message.
March 16, 2009 at 9:13 am
here is the query and the print statement when I run it:
query:
Declare @sql nvarchar(MAX)
set @sql = ' SELECT x.SaleYear, x.TotalSales
...
March 16, 2009 at 9:04 am
How would I do that?
The data is being passed as such
@Region = NE, SE, NW, SW, MA and so on
@State = 1,2,3,4,5,6,7,8,9,10. . . . .
how could I do it...
February 11, 2009 at 6:26 am
I figured it out, I had to fix my quotes around my parameter.
February 11, 2009 at 6:24 am
I have that working, I'm trying to get it to work within my query that is doing a pivot.
here is my pivot query:
SELECT *
FROM (
'SELECT tblCustomer.CusterName, tblCustomer.Date as TotalSales, tblMAIN.Region
FROM...
November 24, 2008 at 8:02 am
Viewing 15 posts - 106 through 120 (of 127 total)