Viewing 15 posts - 1 through 15 (of 68 total)
It has been created based on some standards created by the hotel industry for generating flat files for all hotel chains which have to be imported in to this table.
March 4, 2010 at 12:21 am
Thanks for your help. I will test the queries I generate before posting them here to make sure they work.
February 27, 2010 at 10:29 am
Thanks. Indexes won't help a lot in this case and I need to change the way I am doing this comparison. I had posted the second table create statement but...
February 26, 2010 at 8:36 pm
I did not post the create and insert statements in my last post
CREATE TABLE [dbo].[projectdata](
[InvoiceId] [int] IDENTITY(1,1) NOT NULL,
[ProjectId] [int] NOT NULL,
[CompanyCode] [varchar](2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[VendorNumber] [varchar](2000) COLLATE SQL_Latin1_General_CP1_CI_AS...
February 26, 2010 at 8:00 pm
This query is run only once for any of the tables and the data is received in a text format and then imported so we have to use like statements
January 12, 2010 at 12:42 am
Its taking 3minutes now compared to 25 minutes earlier.
January 10, 2010 at 6:52 am
thanks. This worked great.
January 4, 2010 at 8:44 pm
This looks that it might work. You can change Identity insert to on before inserting records. I am trying to write a update statement. Can you modify this select to...
January 4, 2010 at 8:10 pm
Actually the issue of not updating multiple rows was happening because theof the workaround second update query I wrote to update the duplicate_with field to have the lowest id and...
January 3, 2010 at 6:37 am
Please check my last 2 messages and I noticed 1 more issue with this. If there are more than 2 matching rows only the first matching row gets updated and...
January 1, 2010 at 4:59 am
I ran it again and noticed that 1 and 4 were duplicates and the duplicate_with field for 1 had the value 4 and duplicate_with for 4 had the value 1.What...
January 1, 2010 at 2:28 am
What I am saying is if invoiceid 1 is same as invoice 2, 3 and 4 I want the duplicate_with field to have the value 1 for all invoiceids 1,2,3,4....
January 1, 2010 at 2:05 am
THanks. I ran the following for my exact duplicate type records and it was much faster but since you have vpsinvoice.InvoiceID <> MyAlias.InvoiceID it did not update the parent record...
December 30, 2009 at 10:48 pm
this looks good. why are you grouping those 5 fields in the subquery?
December 30, 2009 at 7:37 am
Hi,
Were you able to check the create and insert statements I had sent. I did not give the following information in my last message and thats probably why you could...
December 29, 2009 at 8:14 pm
Viewing 15 posts - 1 through 15 (of 68 total)