Forum Replies Created

Viewing 15 posts - 1,381 through 1,395 (of 1,999 total)

  • RE: Log file bigger than data file

    one thing everyone forgets

    make sure your database is checkpointing - the log data is not truncated if no checkpoint has occured

    try the following

    use mydb

    go

    checkpoint

    go

    backup log mydb to disk='xxxxxxxx'

    go

    dbcc shrinkfile(2,1)

    go

  • RE: Puzzling SQL server performance

    Rich

    if i remember those machines (5664-server is it?) then they only have 1 disk (ok 2 disks in raid 1) on them???

    1 disk and 1 Gb of memory will almost...

  • RE: Resource Governor Classifier Function Question

    use the ORIGINAL_DB_NAME () feature in your classifier function

  • RE: Update or Reinsert? which one is best

    40 lac = 4,000,000 ( 4 million )

    (1 lac=100,00)

    is this correct ???

    one more question - does the file you are importing/updating from have a unique identifier? if so is...

  • RE: How to access/Run query on other SQL Servers

    ok

    1st you need to create a database in sql2005/2008 compatibility mode to host the proc

    CREATE DATABASE test

    Go

    then set it to allow the use of unsigned CLR -

    ALTER DATABASE...

  • RE: DBA: Mentor vs. Protector

    A Good DBA will want to know everything going on in his environment - especially since he will be the one called out at 2am in the morning when it...

  • RE: How to access/Run query on other SQL Servers

    you can use a linked server to do this, but you will need to enable MSDTC and distrtibuted transactions in order to pump the results into a table

    once you have...

  • RE: When index was created

    unless i'm mistaken that gives you the table CREATE date, not he index create date

    sysobjects.id = the table id

    sysindexes.id = the table id

    sysobjects.name = table name

    sysindexes.name=index name

    sysindexes.indid= the index number...

  • RE: DBA: Mentor vs. Protector

    with regards to locked down environements and open vs closed environemtns, we're trialling the new Policy feature in SQL 2008 so that all dev machines and databases meet a minimum...

  • RE: Truncation error reporting app

    ok - i would suggest something like the followiing

    declare @strsql varchar(max)

    declare @temptabname varchar(100)

    set @temptabnme='mysourcetable'

    declare @destnamevarchar(100)

    set @destname='mydestinationtable'

    set @strsql='select '

    select @strsql=@strsql+' max(datalength('+name+'),'

    set @strsql=@strsql+ 'from syscolumns where object_name(id)='''+@temptabname+''''

    exec (@strsql)

    select name,length from syscolumns...

  • RE: default port 1433 open

    are you looking to close port 1433 to prevent external clients from connecting to sql server?

    if so then just disable the TCP/IP server protocol and listen on shared memory only.

    so...

  • RE: Update or Reinsert? which one is best

    this really depends on what you are trying to acheive and also your data volumes/indexes

    if you delete/re-insert then this may be slow and you may get heavy fragmentation on your...

  • RE: ALTER INDEX

    you can use ALTER INDEX.... WITH DROP EXISTING

    however all this does is drop the exising index and re-create

    if anyone is using the index at the time then the command will...

  • RE: SQL Joins

    nope

    the use of left or right determines which side of the join returns all results

    my example is clearly a left outer join

    if this were right outer then the results would...

  • RE: SQL Joins

    left outer self join - easy

    show me all employees and their managers

    include all employees that do not have a manager

    select e1.*,e2.name from employee e1 left outer join employee e2 on...

Viewing 15 posts - 1,381 through 1,395 (of 1,999 total)