Viewing 15 posts - 5,371 through 5,385 (of 26,490 total)
Lynn Pettis (4/28/2015)
Wow, what some people expect us volunteers.
The OP just PMed me with all the info that had been posted on the forum thread. Apparently he deleted because...
April 28, 2015 at 1:18 pm
Here is my refactored code:
with BaseData as (
select
*,
Seq = Year_From - (row_number() over (partition by Sport, SportEvent, Gender, Country order by Year_From)...
April 28, 2015 at 1:12 pm
I have to agree. It works as expected for me as well.
April 28, 2015 at 1:08 pm
Wow, what some people expect us volunteers.
April 28, 2015 at 1:02 pm
You do realize that in SQL Server 2005 and newer you should really be looking at sys.server_principals and not syslogins for this information.
April 28, 2015 at 12:57 pm
15df2o+1caatrp9bznv8 (4/28/2015)
can you help me please ?
Why did you delete your posts?
You also realize I am a volunteer and that I have my own job to work, right?
April 28, 2015 at 12:49 pm
Luis Cazares (4/28/2015)
What where you expecting to do with the Years and Tally CTEs? I'm sure that you included them for your tests, but I'd love to...
April 28, 2015 at 12:46 pm
15df2o+1caatrp9bznv8 (4/28/2015)
TSQL Stored procedure
Create a stored procedure
which will insert a purchase of shares into the...
April 28, 2015 at 11:49 am
forrest77 (4/28/2015)
CREATE TABLE [dbo].[EditLog_back](
[Id] [INT] IDENTITY(1,1) NOT NULL,
[EditDate] [DATETIME] NOT NULL,
[PlanId] [INT] NOT NULL,
[TransId] [INT] NOT NULL,
[EntityId] [INT] NOT NULL,
[QtyPrior] [FLOAT] NULL,
[QtyAfter] [FLOAT] NOT NULL,
[Description]...
April 28, 2015 at 11:44 am
I have the following code:
with Years as (
select
min(Year_From) YearBegin,
max(Year_From) YearEnd,
(max(Year_From) - min(Year_From))/4 YearsSpan
from
#mySeries
), eFastTally(n)...
April 28, 2015 at 11:40 am
Based on the sample data what should the expected results look like?
April 28, 2015 at 11:20 am
TheSQLGuru (4/28/2015)
Oh, the MOST obvious possible cause: Your Secondary is a fraction of the power (CPU/RAM/IO/etc) that your Primary is!! :hehe:
From the original post:
- Identical hardware between principal and mirror
I...
April 28, 2015 at 10:46 am
Like this using Ed's code.
WITH FinalDBUser(dbname, username) AS (
Select
dbname,
username
from
dbo.FinalDBleverluser
Order by
dbname
)
SELECT @strSQL = @strSQL +...
April 28, 2015 at 10:42 am
I'd do it using the FOR XML PATH method. I would post the code, but for some reason I can't. Something in the code is causing a post...
April 28, 2015 at 10:37 am
Something like this:
DROP FUNCTION [dbo].[ADMC_DDL_GetUniqueEditLog];
go
CREATE FUNCTION [dbo].[ADMC_DDL_GetUniqueEditLog]()
RETURNS TABLE WITH SCHEMABINDING
RETURN
WITH BaseData as (
SELECT
EL.Id,
EL.EditDate EditData,
EL.PlanId PlanId,
...
April 28, 2015 at 10:26 am
Viewing 15 posts - 5,371 through 5,385 (of 26,490 total)