Viewing 15 posts - 4,366 through 4,380 (of 8,753 total)
vipin_jha123 (10/12/2015)
Yes sir
Slight different between the two, roughly connect_by_isleaf is the equivalent of GetDescendant
😎
October 12, 2015 at 2:21 am
Quick question, is this hierarchical data?
😎
October 12, 2015 at 1:07 am
Quick solution
😎
SELECT
RoleName = max(pr.name ...
October 10, 2015 at 10:12 am
Ed Wagner (10/9/2015)
DonlSimpson (10/9/2015)
anthony.green (10/9/2015)
Ed Wagner (10/9/2015)
crookj (10/9/2015)
Ed Wagner (10/9/2015)
happygeek (10/9/2015)
Deadlock victim!Cost
Expense
Revenue
Tax
Tariff
Price Increase
Pint
October 9, 2015 at 11:40 am
Slightly more pedantic approach preventing an implicit conversion
😎
DECLARE @sql NVARCHAR(400)
DECLARE @WgnWCUser VARCHAR(30)='DBO'
DECLARE @TIMESTAMP VARCHAR(30)='UpdateTimestamp'
DECLARE @datFrom DATETIME='20150916'
DECLARE @datTo DATETIME='20150930'
SET @sql='SELECT EVENTUID,EVENTTIMESTAMP,EVENTMAJORTYPE,EVENTMINORTYPE INTO #TEMP
FROM ' + @WgnWCUser + '.EMPLOYEE A WITH(NOLOCK)
WHERE A.'+@TIMESTAMP+'>=CONVERT(DATE,'''+CONVERT(VARCHAR(25),@datFrom,112)+''',112)AND...
October 9, 2015 at 9:51 am
dwain.c (10/1/2015)
Eirikur Eiriksson (10/1/2015)
ChrisM@Work (10/1/2015)
Eirikur Eiriksson (10/1/2015)
ChrisM@Work (10/1/2015)
Eirikur Eiriksson (10/1/2015)
ChrisM@Work (10/1/2015)
Eirikur Eiriksson (10/1/2015)
ChrisM@Work (10/1/2015)
Eirikur Eiriksson (10/1/2015)
ChrisM@Work (10/1/2015)
Eirikur Eiriksson (10/1/2015)
ChrisM@Work (10/1/2015)
Oh, and maple beer - yuck.
This made me spill my ESB...
October 8, 2015 at 11:29 am
sandhuz24 (10/7/2015)
Sorry for the delay in getting back to the post. Been really busy at work. I had the indexes on the table as you suggest in your post...
October 7, 2015 at 2:48 am
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
if object_id('Tempdb..#Element1') is not null drop table #Element1;
create table #Element1 (
[Attr1] varchar(10)
,[Attr2] varchar(4)
,[Attr3] varchar(2)
...
October 7, 2015 at 2:43 am
Does the 2008 db pass the integrity check?
😎
October 6, 2015 at 8:50 am
John Rowan (10/5/2015)
October 5, 2015 at 8:51 pm
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @TableA TABLE
(
FldA INT NOT NULL
,FldB INT NOT NULL
);
INSERT INTO @TableA(FldA,FldB)
VALUES (3,4)
...
October 5, 2015 at 8:24 pm
Grant Fritchey (10/5/2015)
October 5, 2015 at 11:52 am
Quick question, can you post the DDL (create table script) for those two tables?
😎
October 5, 2015 at 11:49 am
chancrovsky (10/5/2015)
October 5, 2015 at 10:56 am
Welsh Corgi (10/5/2015)
I did a couple of backups from the GUI and it named the file with a trn extension.
Are you certain those are full backups and not transaction log...
October 5, 2015 at 10:48 am
Viewing 15 posts - 4,366 through 4,380 (of 8,753 total)