Forum Replies Created

Viewing 15 posts - 2,686 through 2,700 (of 3,608 total)

  • RE: SQL Optimisation Vs Disk Defrag?

    The built-in Windows 2000 defrag is absolutely rubbish. You need at least 15% free disk-space to do a defrag and even if you have the tool will tell you...

  • RE: UPDATE statement

    I too have misgivings about the CLR. I've read somewhere that there are people in Microsoft who have misgivings. Something to do with a badly written piece of...

  • RE: UPDATE statement

    Nice debate Joe.

    Short circuiting has been true of in every SQL you know about. I didn't know but I do now. Perhaps I should buy some of your...

  • RE: UPDATE statement

    OK, so EXISTS short circuits. Great. One less thing to worry about.

    I would hardly call using stuff that has been in MS SQL Server since version 7 (and...

  • RE: Name of Primary Key columns on a table

    sp_help 'your table name here'

    Brings back all sorts of information on the table including the primary key.

  • RE: UPDATE statement

    Joe, does EXISTS short out SELECT * FROM..?

    If you are programming for SQL Server then why ignore valid SQL statements?

    If I am going to develop for cross platform compatibility then...

  • RE: UPDATE statement

    If you are going to do it Joe's way then perhaps

    UPDATE Poz

    SET tip = 'k'

    WHERE EXISTS

    (SELECT TOP 1 J.con

    ...

  • RE: CHECK Constraint for date format required

    Well, the field itself will simply reject any date that isn't in the correct format but if you had a stored procedure to do some bespoke error handling you could...

  • RE: NULLS in Primary Keys

    Yes, continuous push replication. Only the tables are replicated.

    I solved the problem by removing the triggers but the idea that the inserted table contains NULL values in the field...

  • RE: Very large tables w/o PKs, clustered indexes

    If you are adding an IDENTITY field to an existing table this suggests that the table doesn't already have a primary key and doesn't link to anything. It may...

  • RE: Negatives of non-dbo ownership of tables?

    It is a convoluted subject and one I don't fully understand myself.

    It was covered in an article in SQL Server Standard by one of the Brians.

    The gist of it is...

  • RE: Negatives of non-dbo ownership of tables?

    The biggest problem is where someone tries to write a query to access a specific user table that is not their user table.

    As you know SELECT * FROM Authors will...

  • RE: Case statement and unique index

    No it is not valid syntax.

    You could try creating a view and then indexing that.

  • RE: UPDATE statement

    UPDATE poz

    SET tip='k'

    FROM pos INNER JOIN juridic ON poz.con = juridic.con

    WHERE juridic.dosar='p'

  • RE: grouping and storing the data

    Pass your colleges in as a delimited string and use the following function

    CREATE FUNCTION dbo.fnSplitDelimited ( @sInputString1 VARCHAR(8000) , @sSplitChar CHAR(1))

    RETURNS @tbl_List TABLE (Id1 Int PRIMARY KEY )

    AS

    BEGIN

    DECLARE@lInputStringLength1Int ,

    @lPosition1Int ,

    @lSplitChar1Int...

Viewing 15 posts - 2,686 through 2,700 (of 3,608 total)