Viewing 15 posts - 436 through 450 (of 472 total)
I've already got the permissions mapped out but they are on the wrong folder.
I basically need to move all the permissions up one level before I start restricting things on...
February 20, 2014 at 7:37 am
milos - Couldn't quite get yours to reorder the index descending.
ChrisM = Works perfectly, thank you.
February 5, 2014 at 6:49 am
Hia ll
I've got the query sorted out but it's horrendously slow!
This is my updated query:-
;with cte as (
SELECT
AD.VisitID
,AD.UnitNumber AS UnitNumber
,AD.AccountNumber AS AccountNumber
,ws.WardID AS Ward
,ws.WardLocation
,ws.ServiceSeqID AS ServiceSeqID
,ws.WardSeqID AS WardSeqID
,row_number() over (partition...
February 5, 2014 at 3:48 am
So the cte is almost acting as a temporary table having an insert done on it?
That makes sense.
January 20, 2014 at 8:13 am
John Mitchell-245523 (1/20/2014)
GilaMonster (1/20/2014)
richardmgreen1 (1/20/2014)
In your experience, is it a change you would make?No. Not unless I had an exceptionally good reason.
If you're getting collation conflict errors, you have three...
January 20, 2014 at 8:01 am
GilaMonster (1/20/2014)
richardmgreen1 (1/20/2014)
In your experience, is it a change you would make?No. Not unless I had an exceptionally good reason.
In that case, I'm going to leave well enough alone.
January 20, 2014 at 7:59 am
I found this script:-
DECLARE @collation NVARCHAR(64)
SET @collation = 'Latin1_General_CI_AS'
SELECT
'ALTER TABLE [' + TABLE_SCHEMA + '].[' + TABLE_NAME + '] '
+ 'ALTER COLUMN ['...
January 20, 2014 at 7:06 am
So I've just found out.
If I viewed the extended properties for the relevant columns, I get this:-
Latin1_General_CI_AS
The General proeprties page shows me:-
SQL_Latin1_General_CP1_CI_AS
Looks like I do need to alter the collation...
January 20, 2014 at 6:52 am
I've checked all the relevant columns for the queries I use and they are all (including tables and databases) are on the same collation (Latin1_General_CI_AS).
Is there any way of listing...
January 20, 2014 at 6:25 am
That's what I thought, but I can't see where (not even at column level).
I'll have another look and probably come back later.
I have done that before :sick:, not doing it...
January 20, 2014 at 6:02 am
Thanks Gail
This is a production environment which is why I'm asking before I do (or even suggest) anything.
I've just double checked a few databases, tables and columns and come across...
January 20, 2014 at 4:52 am
Thanks folks, that looks like it's working perfectly.
Can someone please walk me through the code (I've never had much luck with CTEs)?
January 20, 2014 at 2:21 am
New table creation code is here:-
CREATE TABLE [dbo].[DailySnapshot_LIVE_RFT_DR_ABS_VIEW](
[UnitNumber] [varchar](30) NULL,
[AdmitDateTime] [datetime] NULL,
[DischargeDateTime] [datetime] NULL
CONSTRAINT [PK_DailySnapshot_LIVE_RFT_DR_ABS_VIEW] PRIMARY KEY CLUSTERED
(
[ViewRecNo] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY...
January 17, 2014 at 8:37 am
As long as I have a chair that works (even one that slowly descends), a desk that's not too badly beaten-up, a decent monitor (I agree with Knut on the...
January 10, 2014 at 4:53 am
Thanks folks.
I found some of the Microsoft tutorials but really needed something practice on. Should keep my busy this weekend. :ermm:
December 5, 2013 at 8:55 am
Viewing 15 posts - 436 through 450 (of 472 total)