我使用tablediff.exe来比较两个SQL表,在两个服务器上,一个是本地的,另一个是远程的。 我的第一张表是Table1(380,000条记录) 我的第二张表是表2(290,000条记录)
当我将本地Table1与远程Table1进行比较时,大约需要6分钟。
当我将本地Table2与远程Table2进行比较时,它需要永远而且没有结果(Table2的记录少于Table1)
我从Table2中删除了一个类型图像的列,但问题仍然存在。
可能是什么问题?
注意:TABLE2结构
[ID] [varchar](10) NOT NULL,
[Title] [nvarchar](10) NULL,
[FName] [nvarchar](255) NULL,
[MName] [nvarchar](25) NULL,
[LName] [nvarchar](25) NULL,
[MotherName] [nvarchar](25) NULL,
[DOB] [datetime] NULL,
[BirthPlace] [nvarchar](50) NULL,
[Gender] [varchar](1) NULL,
[MaritalStatus] [nvarchar](25) NULL,
[ChildrenNo] [varchar](50) NULL,
[Occupation] [nvarchar](25) NULL,
[NationalityID] [varchar](3) NULL,
[Address] [nvarchar](255) NULL,
[Telephone] [varchar](20) NULL,
[Mobile] [varchar](20) NULL,
[Email] [varchar](50) NULL,
[BloodGroup] [varchar](3) NULL,
[RecieveSMS] [bit] NULL,
[FileNo] [nvarchar](250) NULL,
[PrimaryPhysician] [varchar](10) NULL,
[IqamaID] [varchar](10) NULL,
[EmergencyContactName] [nvarchar](50) NULL,
[EmergencyContactRelation] [nvarchar](50) NULL,
[EmergencyContactNo] [nvarchar](50) NULL,
[ProfilePicture] [image] NULL,
[Status] [bit] NULL,
[SecondaryTelNo] [varchar](20) NULL,
[SecondaryMobileNo] [varchar](20) NULL,
[Notes] [nvarchar](255) NULL,
[BankID] [varchar](10) NULL,
[IBANNo] [nvarchar](50) NULL,
[isWalkIn] [bit] NULL CONSTRAINT [DF_Patients_isWalkIn] DEFAULT ((0)),
[AR_FName] [nvarchar](255) NULL,
[AR_MName] [nvarchar](25) NULL,
[AR_LName] [nvarchar](25) NULL,
[AR_MotherName] [nvarchar](25) NULL,
[isVIP] [bit] NULL,
[FirstVisitDate] [varchar](255) NULL,
[EmploymentID] [varchar](20) NULL,
[ImagePath] [nvarchar](250) NULL,
[PatientLevel] [int] NOT NULL CONSTRAINT [DF_Patients_PatientLevel] DEFAULT ((1)),
CONSTRAINT [PK_Patients] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]