Forum Replies Created

Viewing 15 posts - 47,881 through 47,895 (of 49,552 total)

  • RE: To Generate More than One Billion Numbers on the fly

    Then run it in a loop a few thousand times, inserting into a table with an identity.

    Is there any reason you refuse the first suggestion offered fo a particular problem...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Update *

    Did he give you a reason why? Sound a bit strange.

    Here's one that doesn't actually use replicate, but does the same thing as replicate would.

    DECLARE @Length INT

    SET @Length = 4

    SELECT...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Microsoft SQL Native Client (0x80040E14)Incorrect syntax near '-'.

    And please post the ASP code you're using to connect and submit query.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: To Generate More than One Billion Numbers on the fly

    Cross join the table in a couple more times untill you have the number of rows you need.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Update *

    karthikeyan (12/31/2007)


    Yes, you are correct.

    But,how to perform this one without REPLICATE function ?

    Why the restriction against replicate?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Isnull function

    karthikeyan (12/31/2007)


    Yes i do agree.I think your query(column 0) will use TableScan instead of Index.

    Possibly, but if the requirement is that all rows other than where column=0 or...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Isnull function

    karthikeyan (12/31/2007)


    As you told if we want to display -1 or some other negative values,

    we need to write,

    select * from sometable where column > 0

    select * from sometable where...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Isnull function

    I did see your post. And, no, you don't "need to execute SET ANSI_NULLS OFF.Otherwise the above statement will give wrong output."

    I specifically wrote that to illustrate how nulls...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sysadmin to dbowner

    con.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Atab;

    This connection string requires that the login has access to the DB Atab. If it doesn't, you'll get the error message you described earlier.

    The second...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Isnull function

    karthikeyan (12/31/2007)


    SELECT * FROM sometable

    WHERE Column2 IS NOT NULL

    AND Column2 <> 0

    So the Better way is,

    Select * from sometable

    where Column2 > 0

    Will...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Isnull function

    You missed the point.

    NULL is not a value. It's a placeholder for 'unknown'. Because it is an unknown value, it is not equal to anything. It's not unequal to anything...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sysadmin to dbowner

    A non-admin user's default database should not be master. Set the database that the login uses most frequently as the default.

    Other thing to check is the connection string that the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sysadmin to dbowner

    From object explorer, expand out security and logins, find the login ohk\jeva, right click, select properties, go to User Mapping

    Make sure that the login is mapped to the DBs that...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: how to calculate duration spent on every visit

    How do those pageIDs link up with the ones you posted in your initial post?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sysadmin to dbowner

    It looks like ''abs_tr'' is the default database for that login. Is that correct? Is it the DB you gave them data reader and data writer in?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 47,881 through 47,895 (of 49,552 total)