Forum Replies Created

Viewing 15 posts - 541 through 555 (of 594 total)

  • RE: count the number of data/rows entered

    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...

  • RE: vb/t-sql and arrays?

    quote:


    As an alternative, you can use OPENXML to insert multiple rows with one procedure call.


    Indeed,...

  • RE: vb/t-sql and arrays?

    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...

  • RE: Speed up the Performance of SQL SERVER

    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...

  • RE: Insert record Question??

    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...

  • RE: Dynamic Columns and WHERE clause

    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...

  • RE: ADO Parameters or Stored Procedure

    quote:


    Would it make sense to rewrite the code in a stored procedure ? Would I get some speed- improvements ?


  • RE: Generate Next Key from Stored Procedure

    quote:


    ...I am afraid that there are other gotchas like this there that I am not aware.


  • RE: error handling

    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...

  • RE: Temp Tables

    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...

  • RE: error handling

    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...

  • RE: Can some one help on this Error?

    please post schema and sql.

  • RE: record blocking

    where are you getting this information? profiler?

  • RE: Maybe this will make more sense?

    what is the "(ID)" for in the derived table???

  • RE: Using sp_msforeachdb

    quote:


    Thanks for your help. I was wondering what is the N for?


    The "N" indicates that...

Viewing 15 posts - 541 through 555 (of 594 total)