Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: rvancleef
  • Order by date
  1. rvancleef

    Cursor fetch Error

    Thanks! You are correct. I found another insert in fact and when updated everything is working perfectly.
  2. rvancleef

    Cursor fetch Error

    I am trying to execute a SQL Job with a cursor, and it fails when I add the usertypes.usertype field and @utypeXYZ variable. The error message is: "Cursor fetch: The number of variables declared in the INTO list must match that of selected columns." Here is the snippet of code I am...
  3. rvancleef

    How do I query a M-M Relationship?

    Sorry to bother. I answered my own question. Use an Inner Join: SELECT facstaff.FirstName, facstaff.LastName , Department.DivisionCode, Department.DeptCode FROM facstaff INNER JOIN Department ON Department.DeptCode = facstaff.Dept WHERE Department.DivisionCode = 'NS' ORDER BY LastName,FirstName
  4. rvancleef

    How do I query a M-M Relationship?

    Assuming 3 tables: Division (DivCode, DivName) Department (DeptCode, DivCode, DeptName) Professor (FName, LName, DeptCode) How do I write a query to return a listing or professors by Division? So far I can only write queries that return Departments based on Division or Professors based on...
  5. rvancleef

    Outlook effects System Performance

    I have Windows XP Prof and Outlook 2000, both with any all patches available from MS. I also have Norton Antivirus 2002 Edition with LiveUpdate fully updated. Symptoms: 1. I have noticed that whenever Outlook is invoked it pegs my CPU to 96+ percent in task manager. 2. When Outlook loads, it...
  6. rvancleef

    Help with Multiple Recipients Dynamically on JMail

    Hmmmm. Unfortunately the list of Recipients is not a query that I can pull from a database, it is rather dependant on business rules. But maybe I can loop through the comma delimited elements in the vTo variable. Will give it a try...
  7. rvancleef

    Help with Multiple Recipients Dynamically on JMail

    I need to send an email to multiple recipients using the JMail component. The list varies based on numerous business rules, so it is more effective to dynamically build this list of recipients and store them in one variable. If X Then vTo = getemail(staffid1)&&quot...
  8. rvancleef

    Can SQL Server do a Conditional Statement in a SubQuery?

    Perfect!!!!! Now how does it work? 1. What is happening with the 'qt'? How is that a part of the solution? 2. What is the difference between a case expression and case statement? I must have done something wrong for you to call my attention to this point. Thank you VERY much for your help...
  9. rvancleef

    Can SQL Server do a Conditional Statement in a SubQuery?

    We are getting closer. I am now getting a result set without Syntax errors when I give the @CurrTab and @CheckTab fixed values. I implemented the Case Statement as follows: SELECT *, Case When (SELECT Tabs.TabOrder FROM Tabs WHERE TabID=@CheckTab)<=(SELECT Tabs.TabOrder FROM Tabs WHERE...
  10. rvancleef

    Can SQL Server do a Conditional Statement in a SubQuery?

    I am creating a wizard and have a tabs table to dynamically build navigation. I need to return a recordset with an Active/Inactive Value for each record (tab) to render the tab in the appropriate format. I have 2 queries, one to return the records, and a second to determine Active/Inactive...
  11. rvancleef

    Basic CF Comparison Expression Question

    Perfect!!! Works like a Charm!
  12. rvancleef

    Basic CF Comparison Expression Question

    Hello, I have some ASP background, but now am trying to work in Cold Fusion. From this query I am getting a recordset that contains the field .KeepPrivate <cfquery name=&quot;student&quot; datasource=&quot;#request.mygordon#&quot;> SELECT * FROM student WHERE id = '#gordon_id#' </cfquery>...
  13. rvancleef

    How handle Comma Delimited list in WHERE Clause

    Same issue. No error but no results
  14. rvancleef

    How handle Comma Delimited list in WHERE Clause

    Same result: The Statements executes without error, but the results incorrectly show no results DECLARE @ProjID int DECLARE @ProjStatus varchar(10) DECLARE @StartDate1 smalldatetime DECLARE @StartDate2 smalldatetime DECLARE @EndDate1 smalldatetime DECLARE @EndDate2 smalldatetime DECLARE...
  15. rvancleef

    How handle Comma Delimited list in WHERE Clause

    The statement is executed without error, but the results are wrong: If I search on a valid ProjectID only, there are no records in the results grid. Same thing if I search for a valid list of StatusID's. Could this have to do with the StartDate/EndDates (which are smalldatetime)?
  16. rvancleef

    How handle Comma Delimited list in WHERE Clause

    I am trying to integrate this solution into the full code of the stored procedure and getting an error declaring the @ProjID variable. Am I implementing the Exec() style inappropriately?: DECLARE @ProjID int DECLARE @ProjStatus varchar(10) DECLARE @StartDate1 smalldatetime DECLARE @StartDate2...
  17. rvancleef

    How handle Comma Delimited list in WHERE Clause

    Thank you! I am now getting the correct query results. What is the significance of the EXEC() statement? Why can't one run the SQL Statement with the string handling directly?
  18. rvancleef

    How handle Comma Delimited list in WHERE Clause

    Yes, the StatusID is an &quot;int&quot;. Still getting data type error: Server: Msg 245, Level 16, State 1, Line 1 Syntax error converting the varchar value ' + RTRIM(LTRIM(@ProjStat)) + ' to a column of data type smallint.
  19. rvancleef

    Visio &amp; SQL Server

    Visio Enterprise used to be able to Round-Trip Engineer SQL Server DB until the MS Genious' decided to discontinue it. Sorry.
  20. rvancleef

    How handle Comma Delimited list in WHERE Clause

    I am new to SQL Server. I have a form that allows the user to select one or more status values for a project search (The user can search for all projects that are 1> Cancelled 3> Deferred 2> Closed). These selections are passed to my search stored procedure currently as a varchar comma...

Part and Inventory Search

Back
Top