Forum Replies Created

Viewing 15 posts - 46,801 through 46,815 (of 49,571 total)

  • RE: Index Implementation Question

    Oh, and with the selectivity you're talking about (1000 unique values in 10 million rows), if that index is not covering, SQL is not going to use that index. Too...

  • RE: Index Implementation Question

    The index is implemented much like a telephone directory. If you have a composite index (colour, age as a very contrived example) then the index pages look something like this

    Black...

  • RE: downgrade data from sql server express edition 2005 to sql server 2000

    You'll have to script the database structure, bcp the data out and then recreate the DB on SQL 2000 and import the data. There's no downgrade option for SQL.

  • RE: problem with database restoring itself?

    Check the database's status in the sys.databases view. Is it restoring or recovering?

  • RE: varchar(8) query

    SELECT LEFT(<Some Column>,8) FROM ....

  • RE: back ups

    SQL's native backups do not allow you to just restore a single table. You'll have to restore the entire database either as a new DB on the same server of...

  • RE: How does SQL Server 2005 "use" a temp file on C: drive

    So it's management studio's local work space. Good to know.

    Try opening the file in notepad. I'd be interested to know if it's the query in there, or the results. I...

  • RE: varchar(8) query

    Yup. Should be fine.

  • RE: Error 5172: Header for file is not valid.

    Is it a SQL 2000 or a SQL 2005 database?

    Databases cannot be downgraded in version. If the DB in question was detached from SQL 2005, it has to be...

  • RE: Use two temp DBs

    Usually its enough to have 2 files on the same drive. If you're seeing IO bottlenecks on that drive, you may want to separate the data files onto different drives.

    It...

  • RE: How does SQL Server 2005 "use" a temp file on C: drive

    The SQL database engine doesn't use temp files and certainly not in those directories. It uses TempDB for its temporary work space. Otherwise it uses its allocated memory.

    It could be...

  • RE: index size qn

    You should be able to safely drop the index on testplan. Not the others.

    An index is redundant if the columns in it are a left-based subset of another index.

    If...

  • RE: NULL & Count()

    Look up sp_executesql. It allows you to pass parameters in and out of dynamic SQL. I know there's a good example in books online showing exactly that.

  • RE: Find out if a database is being used and how much

    I'd say use the dm_exec_query_stats. I believe there is a DBID in there. The plan cache is transcient, so commands may get removed from the cache and not all statements...

  • RE: Why is it not generating error ?

    The keyword AS for specifying an alias is optional. These are equivalent statements

    SELECT 1 AS This_Is_A_Column_Alias FROM SomeTable AS This_Is_A_Table_Alias

    SELECT 1 This_Is_A_Column_Alias FROM SomeTable This_Is_A_Table_Alias

Viewing 15 posts - 46,801 through 46,815 (of 49,571 total)