Forum Replies Created

Viewing 15 posts - 4,786 through 4,800 (of 5,393 total)

  • RE: doc

    Please stop uploading unrelated content.

    Don't download. Post reported.

    -- Gianluca Sartori

  • RE: How I can make look like I expert on SQL Server?

    Just pray that your employer doesn't come across this thread.

    Good luck.

    BTW, I will remember your name and never help you in these forums, because I don't think that this is...

    -- Gianluca Sartori

  • RE: Deleting records slow

    delete from ReportDetailTable

    where ReportDetailTableID in (Some SubQuery, not to complex)

    If the cost of the query is on the delete step, there isn't much you can do.

    You could drop and re-create...

    -- Gianluca Sartori

  • RE: SQL Server 2005 vs Oracle 9i for JAVA Application

    SQL Server works great with Java. You just have to pick the right JDBC driver.

    I have used JTDS and MSJDBC and they both perform well. Unfortunately they don't behave identically,...

    -- Gianluca Sartori

  • RE: Does (nolock) work the same on views?

    You should get rid of the NOLOCK hint, both from the view and the query.

    NOLOCK could return inconsitent results (eg. when a page spilt is involved).

    You can use it safely...

    -- Gianluca Sartori

  • RE: Deleting records slow

    ZA_Crafty (10/8/2009)


    Is this due to the fact that it deletes row by row and writing to the log file, or can it be something else?

    With row by row, you...

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    You sigh, but Paul's reply made me laugh!:hehe:

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Steve Jones - Editor (10/5/2009)


    I think I am paying about 1/2 the cost of hiring someone and getting it done as well.

    Well, this works when you wouldn't be earning more...

    -- Gianluca Sartori

  • RE: How I can make look like I expert on SQL Server?

    Gianluca Sartori (10/2/2009)


    Ti suggerirei di comprare un buon libro e di fare un bel po' di pratica sul campo.

    Non c'è niente che possa sostituire la pratica. L'importante è capire cosa...

    -- Gianluca Sartori

  • RE: How I can make look like I expert on SQL Server?

    Ti suggerirei di comprare un buon libro e di fare un bel po' di pratica sul campo.

    Non c'è niente che possa sostituire la pratica. L'importante è capire cosa succede a...

    -- Gianluca Sartori

  • RE: how to default to a DB when opening SSMS

    You could use the command line switches of SSMS/SQLWB

    Ssms.exe|SQLWB.exe [-S servername] [-d databasename] [-U login] [-P password] [-E] [-nosplash] [file_name[,file_name]]

    -S [servername] server name to connect to

    -d [databasename] nome of the...

    -- Gianluca Sartori

  • RE: Simple .......UPDATE not working

    Still can't find anything wrong.

    I suggest you try a SELECT first, so you can identify what's wrong.

    SELECT stypc.*, spd.*,

    newFlag = CASE WHEN spd.page_detail_id = 202

    ...

    -- Gianluca Sartori

  • RE: very large update

    You could use something similar to this:

    DECLARE @rwcnt int

    DECLARE @BATCHSIZE int

    SET @rwcnt = -1

    SET @BATCHSIZE = 100

    WHILE @rwcnt <> 0

    BEGIN

    SET ROWCOUNT @BATCHSIZE

    UPDATE VeryLargeTable

    SET varbinaryColumn = NULL

    WHERE documenttypeid IN (4,...

    -- Gianluca Sartori

  • RE: Simple .......UPDATE not working

    I don't understand your problem. It's working on my test data.

    DECLARE @Survey_Thank_You_Page_Config TABLE (

    acct_id int,

    survey_stub uniqueidentifier,

    allow_invitation_forward_flag bit

    )

    DECLARE @Survey_Page_Detail TABLE (

    acct_id int,

    survey_stub uniqueidentifier,

    page_detail_value int,

    page_detail_id int

    )

    INSERT INTO @Survey_Thank_You_Page_Config (acct_id, survey_stub) SELECT

    1, '57F2E213-BC6B-48CA-B025-1597688A8F96'...

    -- Gianluca Sartori

  • RE: Calculating the Running Sum Conditionally

    Maria, thanks for posting your code.

    The cursor based solution works well and reliably, but could become too slow when the table becomes really large. Cursor based solutions don't scale well,...

    -- Gianluca Sartori

Viewing 15 posts - 4,786 through 4,800 (of 5,393 total)