Forum Replies Created

Viewing 15 posts - 136 through 150 (of 335 total)

  • RE: Moving LDF and MDF files created using SQL Server 2000 to SQL Server 2005

    Yes, you can connect this database to 2005, however, when you attach these files, the structure is internally converted to a 2005 database. Which means, you can't detach these files...

    Wilfred
    The best things in life are the simple things

  • RE: shrinking the database from sqlserver

    and after the rebuild, you'll have your "wasted space" back in your database .... 🙂

    Wilfred
    The best things in life are the simple things

  • RE: Log File Details

    Sorry, I posted the wrong answer. Try this:

    print '*** Creating objecten voor DBSize'

    print ''

    if not exists (select 'yes' from sysobjects where name = 'dbsize')

    BEGIN

    CREATE TABLE DBSize(

    [Servername] sysname DEFAULT @@SERVERNAME

    , [Servicename]...

    Wilfred
    The best things in life are the simple things

  • RE: Log File Details

    try this:

    select * from sysfiles

    Why do you have more than 1 logfile? It won't acclerate your database ....

    Wilfred
    The best things in life are the simple things

  • RE: Any option to get rid of "rows affected" line ?

    start your query with:

    SET NOCOUNT ON

    Wilfred
    The best things in life are the simple things

  • RE: To set up alerts for blocking

    1) go to SQL Agent -> alerts

    2) right click on alert and select "New Alert"

    3) On tab "general", set:

    - name: process blocked

    -...

    Wilfred
    The best things in life are the simple things

  • RE: Log file full

    DISCLAIMER: It's very important you'll know the concepts of a logfile. Start reading Books on Line, or search this site. My answers to your question are very basic. How you...

    Wilfred
    The best things in life are the simple things

  • RE: help with leap year

    No, that's incorrect.

    See the exact formulas for determing a leap year on http://en.wikipedia.org/wiki/Leap_year

    Wilfred
    The best things in life are the simple things

  • RE: Regarding Optimization

    Not exactly knowing how you manage your database, consider:

    - statistics are created and updated

    - indexes are analyzed and rebuilded/reorganized

    - check for fragmentation (logical/physical/disk)

    Also:

    - check the location of your data- and...

    Wilfred
    The best things in life are the simple things

  • RE: help with leap year

    No. Found the original location: http://www.mssqltips.com/tip.asp?tip=1527

    Wilfred
    The best things in life are the simple things

  • RE: help with leap year

    Found this trick for determing a leap year (thought it came from this site)

    if object_id('udf_IsLeapYear') is not null

    drop function udf_IsLeapYear

    GO

    create function dbo.udf_IsLeapYear (@year int)

    returns bit

    as

    begin

    return(select case...

    Wilfred
    The best things in life are the simple things

  • RE: how to inserto balnk value datetime column

    Some tests is did:

    create table wdi(datum datetime null)

    insert into wdi(datum) values ('')

    insert into wdi(datum) values (NULL)

    select * from wdi

    drop table wdi

    output: 1900-01-01 00:00:00.000

    ...

    Wilfred
    The best things in life are the simple things

  • RE: how to inserto balnk value datetime column

    Do you want a NULL value, or a default value, when no data is specified?

    If you allow NULL values, check/alter the table definition

    For default value, add a default constraint to...

    Wilfred
    The best things in life are the simple things

  • RE: Bulk-Logged model

    See this excellent article about recovery models: http://www.sql-server-performance.com/articles/per/Database_Recovery_Models_in_SQL_Server_p1.aspx

    Wilfred
    The best things in life are the simple things

  • RE: index question

    You have to admit, that's cool

    "It depends"... 😛

    Yeah, I know. Being an Oracle DBA for 8 years, I have to say some (many?) functionalities are more sophisticated, compared to...

    Wilfred
    The best things in life are the simple things

Viewing 15 posts - 136 through 150 (of 335 total)