Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- From: "Lonifasiko" <mloichate@xxxxxxxxx>
- Date: 4 Oct 2005 06:44:19 -0700
Hi again Hilary,
My "final" where clause would be as follows:
SELECT <columnas_publicadas> FROM [dbo].[Appointment] WHERE
HOST_NAME() = convert(nvarchar(100), patientId) or HOST_NAME()
= convert(nvarchar(100), doctorId) and isClosed = 0
You can notice that I am now able to do the comparison between
uniqueidentifier and nvarchar. I thougth this comparison had to be done
in the other direction, but found this and worked. Would be better to
convert host_name() to uniqueidentifier or left it this way?
I've also noticed that this where clause consumes additional time. I
didn't expect, but this way the first replication delays in some
seconds respect an initial replication wihout where clauses. Is this
normal? Could be because I now haven't got many rows while this
attempts are being done?
Give me some feedback please. Regards.
.
- Follow-Ups:
- Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- From: Hilary Cotter
- Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- References:
- Row filtering - Comparing HOST_NAME() with uniqueidentifier
- From: Lonifasiko
- Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- From: Hilary Cotter
- Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- From: Hilary Cotter
- Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- From: Hilary Cotter
- Row filtering - Comparing HOST_NAME() with uniqueidentifier
- Prev by Date: Re: Merge Replication between sites - Keeping hot backu servers ready
- Next by Date: Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- Previous by thread: Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- Next by thread: Re: Row filtering - Comparing HOST_NAME() with uniqueidentifier
- Index(es):