Forum Replies Created

Viewing 15 posts - 286 through 300 (of 1,413 total)

  • RE: Get List of .NET Assemlies

    All assembly information is stored in the following system tables: sys.assemblies and sys.assembly_files

    Just a small remark: system catalog views, not tables. SQL2K users should not confuse them with the system...

  • RE: sample database in sql server 2005 Developer

    We can't possibly give any good answer with this information. Which version of SQL Server 2005 have you installed? What tutorial book are you referring to? Where did you install...

  • RE: Why are some SELECTs very slow?

    Ok, then I was slightly incorrect in stating that 25000 bookmark lookups where done. Since so many lookups would be necessary SQL Server instead chose to do a clustered index...

  • RE: Why are some SELECTs very slow?

    Because for each of the 25000 rows that have PostWordSortOrder = 2 a bookmark lookup is needed. The results for the first 2 queries can be created and returned by...

  • RE: Trouble installing SQL Server 2005 CTP 3

    First, what version are you installing. Beta 3 is not an edition of SQL Server 2005. You should clean the system entirely. Then install SQL Server 2005 June CTP, including...

  • RE: To wait or not to wait 2k5??

    Remi, what is 15 users? Total number of users of system of concurrently executing queries? If you are on a tight budget I would release with SQL Server 2005 Express...

  • RE: Logins, principals and schemas

    Absolutely, use the MSDN SQL Server forums. It is not an official channel, but there are lots of MS guys reading.

  • RE: Help with query to calc new field

    Yes, I noted some copy-paste errors in my suggestion. This query should work:

    SELECT sum(draw) as tot_draw , sum(returns) as tot_returns,

    sum(returns + short + notdeliv + damaged) as unsold,

    sum(draw-returns-short-notdeliv-damaged) as Netsale,

    case...

  • RE: Help with query to calc new field

    I gave you an example above for the % sale column. If you need more, please post the DDL (your table schema), some sample data and the expected results.

  • RE: Creating new table by copying contents from another table

    SELECT * INTO newtable FROM oldtable

  • RE: Duplicate spids in sp_who

    Sorry, no good answer for that I'm afraid. But I would probably guess it is more of a side-effect.

  • RE: Duplicate spids in sp_who

    Parallellised queries can show up as multiple rows in sp_who2. I have experienced that DBCC commands often do this.

  • RE: Help with query to calc new field

    Well then you need to decide what to do when the divisor is 0. For instance, you could test:

    case when draw / sum(returns + short + notdeliver+damaged) AS '%sale' =...

  • RE: Help with query to calc new field

    One alternative is to use this entire query as a derived table and then select the columns from that, including a new column that can reference draw and unsold.

    Another option...

  • RE: sp_who v. sp_who2

    Yes, definitely a bug in sp_who2. You can do EXEC sp_who2 '55' to filter the output so you get only activity for spid 55, but not filter on the login...

Viewing 15 posts - 286 through 300 (of 1,413 total)