Viewing 15 posts - 6,301 through 6,315 (of 6,678 total)
That error tells me you have made additional changes and now you have a situation where the query is trying to use your tables as aliases and cannot figure it...
July 22, 2008 at 5:39 pm
Okay, I reformatted your query and used aliases. What I found is another problem you have:
CREATE PROCEDURE usp_rptOpenTicketsByYard
AS
SELECT t.*
,ts.status
,tp.priority
,cts.Description
,tct.CallType
,u.First_Name
,u.Last_Name
,yi.YardName
,t.CreatedOn
,t.Yard
,tp.PriorityStatus
,CASE WHEN t.ProjectTicketOption = 0
...
July 22, 2008 at 2:28 pm
gomikem (7/22/2008)
July 22, 2008 at 11:27 am
Andy Warren (7/22/2008)
July 22, 2008 at 10:49 am
David (7/21/2008)
I recommend not using @query. Do your query first. Then simply assign the results to a variable and then assign that variable to @body.
Is there a particular...
July 21, 2008 at 11:05 pm
I have used this feature a lot in an ETL process where it is very useful. The process is:
1) Extract data from OLTP into staging tables
2) Disable...
July 21, 2008 at 11:00 pm
I have to ask - why are you using dynamic SQL? There is no need in this case - just write the query and use the variable as you...
July 21, 2008 at 10:55 pm
I recommend reviewing the help in BOL for sp_send_dbmail for additional parameters.
From BOL:
[ @query = ] 'query'
Is a query to execute. The results of the query can be attached as...
July 21, 2008 at 10:49 pm
Jeff Moden (7/21/2008)
Grant Fritchey (1/30/2008)
Please don't cross-post. Especially don't post things in the 2008 forums that has no relation to 2008.Heh... well that worked well... wanna borrow some porkchops? 😛
Hmmm,...
July 21, 2008 at 8:53 pm
Eera (7/21/2008)
I will have no problem if i add a new identity column and make it a PK. and this is the quickest solution....
July 21, 2008 at 8:48 pm
jonathanmreynolds (7/21/2008)
Jeffrey Williams (7/21/2008)
July 21, 2008 at 8:36 pm
Optional parameters can be done using the following:
CREATE PROCEDURE [procedure]
@date1 datetime
...
July 21, 2008 at 5:34 pm
gamaz (7/21/2008)
The procedure compiles fine. However when I am trying to execute the procedure I am getting error. Any thoughts:process_customer_modified @sqlcmd, 'c000001', 'aldkm'
The call to the procedure should be:
Execute...
July 21, 2008 at 4:34 pm
To do something like this you are going to have to use dynamic SQL. You might want to consider putting a procedure in each database instead and call the...
July 21, 2008 at 4:00 pm
The only thing I can think of is that the database was deleted far enough back that it no longer shows up in the default trace.
July 21, 2008 at 3:56 pm
Viewing 15 posts - 6,301 through 6,315 (of 6,678 total)