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 dencom 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: campbeltr
  • Content: Threads
  • Order by date
  1. campbeltr

    Stored Procedure runs slow, but same code in query window runs fast.

    I am having trouble with a stored procedure running very slowly in comparison to the same code running very quickly in a separate query window. The Stored Procedure runs in 2 1/2 minutes, but the direct query runs in 1 second. Some notes: - I am using SQL Server 2005. - The query is NOT using...
  2. campbeltr

    nTEXT to nVARCHAR(MAX)

    I added DISTINCT to a statement, and because I added DISTINCT I also had to CAST an nTEXT datatype field in the SELECT statement to nVARCHAR. I chose to use nVARCHAR(MAX) in this case, since I have read that nTEXT is being depreciated and nVARCHAR(MAX) is the recommended substitute. However...

Part and Inventory Search

Back
Top