Viewing 15 posts - 541 through 555 (of 594 total)
Assume dtmInserted is a datetime field used to record when the application inserted the record...
DECLARE @StartDate SMALLDATETIME
DECLARE @EndDate SMALLDATETIME
SET @StartDate = GETDATE() - 7
SET @EndDate = GETDATE()
SELECT COUNT(*) FROM table_name...
February 4, 2003 at 8:37 am
quote:
As an alternative, you can use OPENXML to insert multiple rows with one procedure call.
Indeed,...
February 4, 2003 at 8:32 am
Unless there's something you really don't like about VB, I'd recommend making a stored procedure for the insert, opening the file in VB, cutting it up in VB, then executing...
February 4, 2003 at 8:15 am
We have had problems in th epast performance-wise with Crystal Reports. Have you noticed any patterns regarding # users running crystal reports and timeout issues? Can you identify...
February 3, 2003 at 3:02 pm
what I have done in a similar scenario is have a system table that stores the next available sequence number:
CREATE TABLE stblNextAvailableSeqNo
(
NextSeqNo INT NOT NULL
)
then, when doing...
February 3, 2003 at 11:02 am
You will have to either:
a) include the case expression's switch field in the where clause, or
b) put the whole select in a derived table then build a where expression on...
January 31, 2003 at 11:17 am
quote:
Would it make sense to rewrite the code in a stored procedure ? Would I get some speed- improvements ?
January 31, 2003 at 8:48 am
quote:
...I am afraid that there are other gotchas like this there that I am not aware.
January 30, 2003 at 11:32 am
agreed. simple example, that's all. Design depends on whether it's a client-server, web app, etc. and a variety of other factors. I just wanted to get the...
January 30, 2003 at 11:26 am
I've had similar problems with heavy temp table usage in our applications here. One thing we have done to alleviate much of the performance problems is to ensur that...
January 30, 2003 at 10:32 am
If you are doing an insert in a VB program, use an ADO Command object, setting up appropriate parameters for the insert stored procedure, then issuing a call to the...
January 30, 2003 at 10:25 am
what is the "(ID)" for in the derived table???
January 29, 2003 at 11:20 am
quote:
Thanks for your help. I was wondering what is the N for?
The "N" indicates that...
January 29, 2003 at 11:16 am
Viewing 15 posts - 541 through 555 (of 594 total)