Forum Replies Created

Viewing 15 posts - 1,921 through 1,935 (of 7,429 total)

  • RE: Formatting results of a UDF to a table field

    Simple mistake if you look closely at this line

    RETURNS numeric(9) AS

    The problem is you define no scale and thus 0 is used.

    When this happens it will round to whole...

  • RE: Andy, where are you?

    You poor man. Sleepless nights, worrying about who may need to be repremanded, the code snippets floating in your head.

    Gotta say I just hit the 9 month mark and anyone...

  • RE: Warning: Null value is eliminated by an aggregate

    See the SET ANSI_WARNINGS item in SQL BOL

  • RE: XML Template Query

    Here is an example I setup with northwind

    file x.xml as defined

    <?xml version ='1.0'?>

    <document xmlns:sql='urn:schemas-microsoft-com:xml-sql' sql:xsl='x.xsl'>

     <sql:header>

         <sql:param name="CustomerID">ANATR</sql:param>

     </sql:header>

     <sql:query>

      SELECT * FROM (Select TOP 100 PERCENT CustomerID, Count(OrderID) OrderCount

      From dbo.Orders

      Where CustomerID...

  • RE: DB Design Question

    1) Is 3rd normal form a good goal to shoot for when designing a DB?  Or, is that probably "too normalized" in practice because it's probably "asking for trouble" later...

  • RE: ADO Timeout/Query Analyzer is not

    First when it is timing out have you tested QA at that moment?

    If so what was the outcome?

    altering and bouncing seem to fix temporarily so I believe the answer lies...

  • RE: Inconsistent performance using sprocs

    Can you post your query (edit security items to another name if needs be). May be a logic issue that throws it like this that someone can help with. Either...

  • RE: User/Login already exists for new DB

    Was this DB restored from another server in any manner?

     

    If so look at

     

    sp_change_users_login

     

    in BOL and that should help with the UPDATE_ONE action.

  • RE: Can a SQL Server 7 DB be Attached into SQL Server 2000?

    If you are going to install SQL 2K on a system that has had SQL 7 installed you might as well use the upgrade method (IMHO). If you are hoping...

  • RE: One-step data scrubbing

    Try this then:

    SELECT datepart(mm,cast(replace(birth_date,substring(birth_date,4,charindex(' ',birth_date) - 4) + ' ',' ') as smalldatetime))

    It will make sure the month portion is 3 characters only which SQL Server reconizes the following

    Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec

    for English...

  • RE: Can a SQL Server 7 DB be Attached into SQL Server 2000?

    All but the system databases (master, msdb, distribution, and model (model may be fine but I don't recall for sure)) can be done that way. I have done the upgrade...

  • RE: One-step data scrubbing

    It will depend on your setup but if you are the default setup for the English version then this should do the trick.

    SELECT datepart(mm,cast(replace(birth_date,'.','') as smalldatetime))

    Note: 'dec 12,2004' is understood...

  • RE: SA without a password - Whats so bad about this?

    Even if he weren't using the SA account without a password as long as he has any account that is potentailly exposed via that ini file that has more than...

  • RE: Question of the Day for 12 May 2004

    You mean you haven't already been doing that?

     

     

    Just kidding!

  • RE: Question of the Day for 12 May 2004

    But however the dtproperties table is listed as Type system in EM as well as sysjobs in msdb (which also shows as a system table in color in QA). The...

Viewing 15 posts - 1,921 through 1,935 (of 7,429 total)