Viewing 15 posts - 6,121 through 6,135 (of 8,753 total)
Quick solution using FOR XML PATH and a nested query
π
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.Candidates') IS NOT NULL DROP TABLE dbo.Candidates;
create table dbo.Candidates(eno int,ResumeText varchar(30), Email varchar(30),Active varchar(30),postalcode varchar(30),country int)
;
insert into...
February 22, 2015 at 11:17 pm
Go with Sean's method, no need to "materialize" the set and better chances of benefiting from the cache.
π
February 22, 2015 at 11:03 pm
You have a Windows 2000 Advanced Edition Server...
....and you have a serious problem:blush:
π
PS this question looks to me like a Y2000 bug:-D
February 22, 2015 at 1:57 pm
shreekanth.kavali (2/22/2015)
February 22, 2015 at 11:48 am
sk88 (2/22/2015)
ORA-06550: line 1, column 9:
PLS-00103: Encountered the symbol "@" when expecting one of the following:
...
February 22, 2015 at 11:29 am
Further on Grant's, post the full and unedited output of "DBCC CHECKDB(βDatabaseNameβ) WITH NO_INFOMSGS, ALL_ERRORMSGS"
π
February 22, 2015 at 10:13 am
Quick note, this seemingly simple task may be slightly more complex than it appears to be at first. π , i.e. in your data sample there are no updates to...
February 22, 2015 at 3:55 am
Jeff Moden (2/21/2015)
February 21, 2015 at 7:46 am
Quick trigger example, should be sufficient to get you passed this hurdle.
π
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_SECONDARY_TABLE') IS NOT NULL DROP TABLE dbo.TBL_SECONDARY_TABLE;
IF OBJECT_ID(N'dbo.TBL_PRIMARY_TABLE' ) IS NOT NULL DROP TABLE...
February 21, 2015 at 4:22 am
Quick suggestion (if I got the question right π )
π
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_Group') IS NOT NULL DROP TABLE dbo.TBL_Group;
CREATE TABLE [dbo].[TBL_Group](
[Id] [int] NULL,
[Title] [varchar](100) NULL
);
IF OBJECT_ID(N'dbo.TBL_GroupProd') IS NOT...
February 21, 2015 at 3:17 am
Quick LAG window function solution
π
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_LOG') IS NOT NULL DROP TABLE dbo.TBL_LOG;
CREATE TABLE dbo.TBL_LOG
(
InfoDate DATE ...
February 21, 2015 at 2:54 am
TomThomson (2/20/2015)
Steve Jones - SSC Editor (2/20/2015)
February 21, 2015 at 12:26 am
Lynn Pettis (2/20/2015)
Ed Wagner (2/20/2015)
Lynn Pettis (2/20/2015)
SQLRNNR (2/20/2015)
Ed Wagner (2/20/2015)
Eirikur Eiriksson (2/20/2015)
SQLRNNR (2/20/2015)
Lynn Pettis (2/20/2015)
......
February 20, 2015 at 1:57 pm
SQLRNNR (2/20/2015)
Lynn Pettis (2/20/2015)
... Mark one off, 8 days on the calendar to go. 8...
February 20, 2015 at 9:24 am
KGJ-Dev (2/19/2015)
Great and thanks for the confirmation that there is no performance impact on this query.
Quick thought, if the code is called very frequently then there will be a huge...
February 19, 2015 at 11:18 pm
Viewing 15 posts - 6,121 through 6,135 (of 8,753 total)