Viewing 15 posts - 6,781 through 6,795 (of 8,760 total)
BOR15K (10/15/2014)
I have created Countries_View and placed the problematic CASE within the view and then JOINT Cities A table with Countries_View B
and all works like...
October 15, 2014 at 9:21 am
Quick thought, you cannot execute the 2K5 function on the 2K server, the execution has to be in the scope of the 2K5 only. A workaround could be in the...
October 15, 2014 at 1:51 am
Quick question, why are you using the nolock hint?
😎
October 15, 2014 at 12:58 am
jacksonandrew321 (10/15/2014)
HiI have created stored procedure to find out first word of the keyword. I am getting error below on execution:
"Must declare the scalar variable "@SubjectBeginning"."
Please suggest
Quick note, for a...
October 15, 2014 at 12:58 am
Quick thought, this is in essence an unpacking of a period, either a calendar table or a tally table (virtual calendar table) will do the job. For the latter it...
October 14, 2014 at 11:22 pm
Quick SQL Server 2000 solution, both limited and cumbersome but works
😎
USE tempdb;
GO
SET NOCOUNT ON;
CREATE TABLE #SAMPLE_DATA
(
SD_ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY CLUSTERED
...
October 14, 2014 at 10:47 pm
Quick cross-tab solution.
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA(DOG,Name,Color,Age) AS
( SELECT * FROM (VALUES
('Boxer' ,'BO' ,'Fawn' ,1)
...
October 14, 2014 at 10:18 pm
Quick thought, run both queries in the same query window with "Include Actual Execution Plan" turned on. Then compare the two plans and tell us what the difference is.
😎
October 14, 2014 at 9:41 pm
Luis Cazares (10/14/2014)
Thank you for the update, Steve.
In an unrelated topic, have you ever seen a code...
October 14, 2014 at 1:08 pm
Lynn Pettis (10/14/2014)
Could you post the DDL (CREATE TABLE statements) for the tables?
Further on Lynn's request, the actual execution plans?
😎
October 14, 2014 at 11:50 am
Another quick solution, less flexibility but only a single table scan
😎
USE tempdb;
GO
IF (SELECT OBJECT_ID(N'dbo.example')) IS NOT NULL DROP TABLE dbo.example;
create table dbo.example
( a int null,
b varchar(100) null,
c varchar(100) null,
d varchar(1000)...
October 14, 2014 at 9:50 am
Steve Jones - SSC Editor (10/14/2014)
Is quoting and general access slow for anyone else today?
Initial request is slow, subsequent requests are fine
😎
October 14, 2014 at 7:57 am
Quick thought, use the OUTPUT clause in the stored procedure to insert into the audit table.
😎
October 14, 2014 at 1:18 am
Quick question, can you post the full DDL of the table and the indices?
😎
October 14, 2014 at 12:06 am
Viewing 15 posts - 6,781 through 6,795 (of 8,760 total)