Viewing 15 posts - 31 through 45 (of 74 total)
I removed the parameter from the SP and executed the SP (declare local variable and assign value instead) and it ran fine. I got the results in about 7 minutes....
March 8, 2005 at 4:53 pm
I ran this situation in three different servers. All of them running SQL 2K sp3, Win 2K.
I believe I am running into some kind of parameter sniffing issue. This SP...
March 8, 2005 at 4:27 pm
I know the column names in advance.
I kind of made it working. Here is the query:
--TEMP TABLE TO HOLD COLUMNS AS ROWS
CREATE TABLE #SECOND_TABLE
(REVIEWID VARCHAR(10) NULL,
FIELD_NAME VARCHAR(20) NULL,
FIELD_VALUE DATETIME...
April 22, 2004 at 12:50 pm
If what you are saying is correct, this database cannot be huge. You have 4M users each holding 3KB data which brings to approximately 1.2GB database and add some space...
April 15, 2004 at 12:54 pm
Thanks a lot for both replies.
Actually both replies helped me in different places. Thanks.
April 15, 2004 at 12:46 pm
Depends on a variety of factors. First of all, how big is the query. For a big query, maintenance would be much easier if it is a SP than in...
March 13, 2004 at 1:12 pm
The simplest way is to DTS the table to some other format like text file or excel file depending on the size.
March 13, 2004 at 1:07 pm
Typically SQL Server backups are slightly smaller than
the actual database size - space available.
March 13, 2004 at 1:02 pm
He might have logged in as Andrew at the time he created the tables Or he might have created the tables explicitly with owner name as Andrew.
September 3, 2002 at 9:55 am
Thanks Guys especially Nazim and SJC Systems.
Atlast I found it. The correct query is:
DELETE Base.dbo.na_log FROM Chg.dbo.na_log a, Base.dbo.na_log b
WHERE
a.Update_Type = 1 and
a.Update_Type = b.Update_type and
a.na_inst_nbr =...
June 19, 2002 at 12:08 pm
Thanks Nazim. Thanks for your input.
The Select statement returns 34 rows. 24 rows with Update_type = 1 and 10 rows with Update_type = 2. These are the exact rows which...
June 19, 2002 at 9:12 am
The inner Join produces the same results. It deletes 34 rows. Similarly Right Outer Join produces the same results.
What i need is to delete only 24 rows (only rows with...
June 19, 2002 at 9:01 am
The query works but it will not work for my business logic. I cannot put a.Update_type = b.update_type in the condition.
quote:
Thanks...
June 19, 2002 at 8:50 am
Viewing 15 posts - 31 through 45 (of 74 total)