Forum Replies Created

Viewing 15 posts - 5,986 through 6,000 (of 7,191 total)

  • RE: Complete Newbee Advice Required

    Yes, install the SQL Server 2000 and SQL Server 2005 client tools on your desktop and you'll save time connecting to your servers - assuming there are no firewalls stopping...

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

    James

    If you suspect the databases aren't being used at all, then run a Profiler trace against them for a week or a month or however long you need to. ...

  • RE: Finding NULL count

    Karthik

    I would advise you to write a script that uses INFORMATION_SCHEMA.COLUMNS to generate the query that will count the NULLS in each column in each database. It won't be...

  • RE: SQL Server Agent

    One way of doing it is to pipe the output of net start to a text file and then examine the contents of that file. I'm not saying that...

  • RE: CTE's are useless

    You can avoid the "speed at all cost" methodology if you want... but I'd suggest that you haven't and you won't. Considering all that you've written about speed testing...

  • RE: Return then Top X Rows in RS

    You have two options. You can build your SQL string with @top as a parameter and execute it using sp_executesql, or you can use SET ROWCOUNT, which does allow...

  • RE: Return then Top X Rows in RS

    Are you using SQL Server 2000 or 2005? I think 2000 doesn't support TOP with a variable.

    John

  • RE: T-SQL

    I don't think so. But you can use a single SELECT statement to generate the SQL that you can use to delete the tables.

    John

  • RE: Very Strange: SQL insert statement does not insert all the fields into table from Asp.net C# webpage

    If your C# code is generating syntactically invalid SQL and you can't change that, then I'd say there's nothing you can do.

    John

  • RE: Query Help - 2

    Karthik

    The easiest way is to have the application to give you the table name. It must have used something like "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME IN 'Table1', 'Table2'"...

  • RE: More uptime = less performance??

    Maybe SQL Server is using an out-of-date execution plan. You can use Profiler to capture the execution plan and duration of a stored procedure. If it increases as...

  • RE: Query Help - 2

    In which case the application logic that generates the list will also have the name of the table. It will therefore be fairly simple to generate the select statement...

  • RE: Deferrable foreign key?

    I don't know whether it's possible to do it the way you describe. But one alternative would be to remove the MasterId column from the Group table and add...

  • RE: Auto-Capitalise the First Characters of Name Fields....

    OK, but beware of last names like O'Higgins and McDonald and van Gogh and first names like Anne Marie and Jean-Christophe.

    John

  • RE: Query Help - 2

    Karthik

    It looks to me as if it would be quicker and easier to do this with views. But if you insist on doing it like this, please tell us...

Viewing 15 posts - 5,986 through 6,000 (of 7,191 total)