query-analyzer

Are there any compact utilities with functionality similar to Query Analyzer for use with SQL Server 2005/2008?

I have to say that I am really missing Query Analyzer now that the functionality has been integrated into the much heavier SQL Management Studio provided with SQL Server 2005/2008. I was looking for suggestions for a cheap/free and lightweight querying IDE with functionality similar to query analyzer so I don't have to wait for this big ...

Performance of unused fields in an SQL View

I'm using MS SQL Server. When I define the database schema I define a (non-materialized) view, which includes many fields, for example as follows (where "Topic" is the name of a table, and the view is a self-join on the Topic table): CREATE VIEW View_Topic_Ancestor AS SELECT Subordinate.Id AS Subordinate_Id, Subordinate.Folder_...

Can Visual Studio 2008 provide any of the functionality that Query Analyzer and Enterprise Manager provide?

I'm currently using MSSQL Server 2000 and to design tables, create and alter stored procedures as well as manage users and permissions I'm using Query Analyzer and Enterprise Manager. I also spend an awful lot of time in Visual Studio 2008 and rather jump out to other applications I was wondering if Visual Studio could help me do at leas...

sql server 2000: Short cut for getting stored proc text

Hi, what is the short cut to get entire text of the stored proc in query analyzer. I know that I could highlight table name and hit <alt><f1> and get the entire table structure. ...

How Oracle uses statistics data

In previous question I got comment about Oracle statistics: Oracle doesn't know that 50M is greater than the number of rows. Sure, it has statistics, but they could be old and wrong - and Oracle would never allow itself to deliver an incorrect result only because the statistics are wrong I was pretty sure that Oracle relies on stat...

How are logical reads calculated ?

I've read the definition of logical reads from: http://msdn.microsoft.com/en-us/library/ms184361.aspx it says: "Number of pages read from the data cache." I have two tables (Row count of table_1 is 141, and table_2 is 16.811), when I run those two queries, it gives the following result. SELECT * FROM Table_1 results Scan count 1, ...

Updating long string through SQL Server Query Analyzer

I have a really long string of text that I would like to update a particular column in a table. The update statement in sql query analyzer is on one long line currently. Is there a way to break up the update statment into multiple lines for easier reading of the update statement? ...

Must-have features for F/OSS SQL analyzer/optimizer

Hi all, I like MySQL's Query Analyzer...but not the price tag. I think I can write something myself to do analysis on slow query logs, indexes, table status fields, etc. and offer it as an alternative, F/OSS solution. What would be your top-requested features for such a solution? ...

SQL Server 2000, Do queries executed sequentially ?

I am not sure if my question is related with the tool for executing the queries. (I am using Query Analyser, Access and AQT generally). For example I have two queries. SELECT * FROM Table1 SELECT * FROM Table2 So, do the queries executed sequentially or at the same time? If the are executed at the same time, how to make them execute...

Why does Sql Server recommends creating an index when it already exist?

I ran a very basic query against one of our table and I noticed that the execution plan query processor is recommending that we create an index on a column The query is SELECT SUM(DATALENGTH(Data)) FROM Item WHERE Namespace = 'http://some_url/some_namespace/' After running, I get the following message // The Query Processor estimat...

Save Field Names in Microsoft SQL Query Analyzer

When you save the results of a SQL query using "Microsoft SQL Query Analyzer" (version 8), the results of the query are saved but the column headers (field names) are not. Any idea how to save the field names to the results file as well? ...

slow query log analyzers

What kind of tools are available to read & interpret slow queries and missing indexes? I am aware of MySQL Query Analyzer, can you suggest other tools which are simpler to configure and maintain (both open source and commercial) Database environment: MySQL, H2 ...

Export to excel from SQL Server 2000 using Query Analyzer code

What's the easiest way to export data to excel from SQL Server 2000. I want to do this from commands I can type into query analyzer. I want the column names to appear in row 1. ...