all groups > sql server programming > july 2005 > threads for saturday july 30
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Query Tuning.
Posted by Sagar at 7/30/2005 12:11:13 PM
Hi,
I have the following query which takes 12- 15 seconds to return almost
900,000 rows. I would like the query to return in less than 4 seconds
(1-3). I have added indexes where needed but was not successful. I am
wondering if this query can be rewritten in anyway to respond in lesser
t... more >>
Table Creation Text
Posted by Zachary Hartnett at 7/30/2005 11:59:11 AM
I know how to get the text for various database objects (like stored
procedures) using sp_helptext or through direct access to the syscomments
table. One thing I have not been able to find is the text associated with
creating a table.
Are programs that dynamically display create and alter t... more >>
Slow Stored Procedure when run via ado, fast from query analyzer
Posted by barooz at 7/30/2005 4:51:40 AM
Greetings folks.
I've got a stored procedure reading data from the database that runs in
about 2 seconds from query analyzer, and takes 50+ seconds run from ADO
in asp classic. I'm using SQLOLEDB. I'm totally baffled, any ideas
what I could check? I'm getting the 50+ seconds time from Sql... more >>
Is there such thing as cross-table index or something?
Posted by Rich at 7/30/2005 1:43:35 AM
CREATE TABLE [SalesForecast] (
[SaleDate] [datetime] NOT NULL ,
[CustID] [varchar] (10) NOT NULL ,
[F1] [money] NOT NULL
) ON [PRIMARY]
CREATE TABLE [Sales] (
[SaleDate] [datetime] NOT NULL ,
[CustID] [varchar] (10) NOT NULL ,
[S1] [money] NOT NULL
) ON [PRIMARY]
CREATE NONCLUS... more >>
ANSI-Style Joins & Old-Style Joins!
Posted by Arpan at 7/30/2005 1:38:32 AM
I came across an article which states the differences between
ANSI-style JOINs & old-style JOINs. This was one among them:
----------------------------------------------
The ANSI-style JOIN supports query constructions which the old-style
JOIN syntax does not support.
------------------------... more >>
how to write a query to get list of user-defined types
Posted by at 7/30/2005 12:00:00 AM
I wanted to write a select query that returns a list of user-defined types
only (without returning the system types). In other words, I can't just do
"select * from systypes". Does anyone know if this can be done?
... more >>
Full join problem...
Posted by tw at 7/30/2005 12:00:00 AM
Hi,
My scenario is that i do a full join for check after duplicates name with
the difference function.
The problem is that i want to set a group value for each probably
duplicates.
After that i can set a distinct or something.
Help.
Here are the result i want to get help with (gro... more >>
Question
Posted by Bpk. Adi Wira Kusuma at 7/30/2005 12:00:00 AM
I ever hear that visual can visual foxpro programming can connect with SQL
Server 2000. Really? Can you give me its simple script?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|