Forum Replies Created

Viewing 15 posts - 1,141 through 1,155 (of 3,011 total)

  • RE: grow a table's reserved space?

    SQL Server tables do not have reserved space.

    SQL Server will allocate pages as needed from free space in the files that the tables is in.

  • RE: Cheap Fun

    Ray K (10/28/2010)


    Michael Valentine Jones (10/26/2010)


    Ray K (10/26/2010)


    Michael Valentine Jones (10/26/2010)


    4. At halftime of the football game, we walked over and watched the soccer team's game on the next field.

    Speaking...

  • RE: get the first Sunday and last Saturday

    In SQL Server integer math 22801/12 = 1900 = 22800/12 😀

  • RE: Using functions on remote/Linked server

    Something like this should do what you want:

    select

    a.*

    from

    OPENQUERY ( RHSQL ,

    '

    Select

    Brook2.dbo.GetCurrentAdmissionDate(1) as AdminDate,

    Brook2.dbo.GetDOTFromDOA(1),

    Brook2.dbo.GetCurrentAdmissionDate(1) as DischargeDate

    from

    Brook2.dbo.Admission

    ' ) a

    Note that you will have to build the whole query dynamically to pass the...

  • RE: get the first Sunday and last Saturday

    If anyone is wondering where 22801 came from:

    Make Date function (like in VB)

    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=22339

    Although I would have assumed that anyone would realize without explanation that 22801/12 = 1900 😉

  • RE: Date Puzzle

    Dan Guzman - Not the MVP (10/28/2010)


    Michael Valentine Jones (10/27/2010)


    Dan Guzman - Not the MVP (10/27/2010)


    So, is this the simplest and quickest way to get the last day of any...

  • RE: blocking due to foreign keys

    Ninja's_RGR'us (10/28/2010)


    Michael Valentine Jones (10/28/2010)


    Ninja's_RGR'us (10/28/2010)


    Michael Valentine Jones (10/28/2010)


    Ken McKelvey (10/28/2010)


    While snapshot isolation can be very useful, you should google 'write skew anomolies', check your code and do a lot...

  • RE: blocking due to foreign keys

    Ninja's_RGR'us (10/28/2010)


    Michael Valentine Jones (10/28/2010)


    Ken McKelvey (10/28/2010)


    While snapshot isolation can be very useful, you should google 'write skew anomolies', check your code and do a lot of testing.

    SQL Server handles...

  • RE: blocking due to foreign keys

    Ken McKelvey (10/28/2010)


    While snapshot isolation can be very useful, you should google 'write skew anomolies', check your code and do a lot of testing.

    SQL Server handles this the following way:

    Understanding...

  • RE: blocking due to foreign keys

    Ninja's_RGR'us (10/28/2010)


    Michael Valentine Jones (10/28/2010)


    Have you verified you are using the normal read committed isolation level for both transactions?

    Have you tried setting your database to use row-version isolation?

    ALTER DATABASE MyDatabase...

  • RE: many-to-many overkill: why not one-to-many???

    You need to design the database to model the reality of the data as closely as possible. If there is a many to many relationship, even in a small...

  • RE: blocking due to foreign keys

    Have you verified you are using the normal read committed isolation level for both transactions?

    Have you tried setting your database to use row-version isolation?

    ALTER DATABASE MyDatabase SET READ_COMMITTED_SNAPSHOT ON;

    ALTER DATABASE...

  • RE: many-to-many overkill: why not one-to-many???

    The database design has to be able to handle all cases. Even if 99.99% of cars have only one owner, you need to allow for the 0.01% where there...

  • RE: Truncate All Tables

    The script on the link below does a very good job of this without making any schema modifications, so it is a safer way to go.

    Truncate All Tables

    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=65341

  • RE: Date Puzzle

    Dan Guzman - Not the MVP (10/27/2010)


    So, is this the simplest and quickest way to get the last day of any month?

    DATEADD(MONTH,x,'2010-Jan-01')

    Where x is the month you are looking...

Viewing 15 posts - 1,141 through 1,155 (of 3,011 total)