Viewing 15 posts - 1,696 through 1,710 (of 1,838 total)
how about something like this:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROC [dbo].[bsp_intranet_product_search]
@ProductIdNVARCHAR(100),
@ProductDescription NVARCHAR(300)
AS
SELECT DISTINCT TOP 100 ProductId, ProductDescription, CrossReference,
ISNULL(CONVERT(VARCHAR,SUM(QuantityOutstanding)),'0')...
October 30, 2008 at 8:33 am
I believe the main thing it comes down to is economic feasibility. If "alternative" fuels and methods of electricity generation were reliable and profitable, you'd see them driving the...
October 30, 2008 at 8:07 am
It would also help to know what indexes are on the table being queried.
October 29, 2008 at 1:40 pm
Can the letter be in any position of the string or will it always be the first? If it can be in any position you won't want to use...
October 29, 2008 at 10:03 am
The LT files are a "lite" version of the AdventureWorks databases, with a simpler schema and design.
October 27, 2008 at 9:49 am
latingntlman (10/27/2008)
exec #TSQL_Search 'ReportProcessing' (ReportProcessing being the Db) where there are a bunch of sprocs but the results pane shows zero records.
John,
sorry for the confusion. If you're using...
October 27, 2008 at 9:44 am
SQL Server 2005 keeps some informative statistics about query execution plans in the dynamic management views. These queries can help you easily identify long running and I/O intensive queries:
--...
October 27, 2008 at 9:34 am
Another thing to be concerned about, did the 3rd party tool recommend any index changes? Index changes to clustered or non-clustered indexes should be considered across the entire application...
October 27, 2008 at 9:15 am
yes, ROW_NUMBER is a very useful and versatile tool that can be used in a number of circumstances.
FYI, the problem in your original query seems to be this line:
WHERE productid...
October 24, 2008 at 3:30 pm
How many tables are you looking to copy and how frequently will you copy them?
A solution I've used at some places I've worked at where the table layouts are the...
October 24, 2008 at 3:21 pm
another option may be to use OPENROWSET instead, with the Access driver. It's a bit more forgiving when dealing with quoted CSV files:
INSERT INTO CSVTest
SELECT * FROM OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Text;Database=C:\;','SELECT *...
October 24, 2008 at 3:08 pm
sam (10/22/2008)
October 23, 2008 at 8:52 am
Another thing to check is what else is running on the server at the same time as the mantenance plan. I've seen a situation before where a system backup...
October 23, 2008 at 8:24 am
ellen.horn (10/23/2008)
Select I.Name, C.AmountFrom Ingredients I, Calories C
Where I.Name = C.Name
This is simply an OUTER JOIN:
SELECT i.Name, c.Amount
FROM Ingredients i
LEFT OUTER JOIN Calories c...
October 23, 2008 at 8:19 am
Could it have something to do with the way you've disconnected the effective dates to their associated expiration dates? I'm not sure how your subqueries are fitting the data...
October 22, 2008 at 2:58 pm
Viewing 15 posts - 1,696 through 1,710 (of 1,838 total)