Forum Replies Created

Viewing 15 posts - 106 through 120 (of 683 total)

  • RE: Updating in a cursor

    Have you tried setting the transaction isolation level?

    SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

    Do this inside the body of the stored proc, before you declare the cursor.

  • RE: LOG SHIPPING

    eseosaoregie (10/28/2008)


    Could you explain briefly how I give NTFS permissions (at the folder level) to the account that runs the SQL Server services on the secondary server. What is NTFS...

  • RE: LOG SHIPPING

    eseosaoregie (10/28/2008)


    I am currently studying for my SQL server exams. I am currently going though McGraw Hill.MCITPDatabase.Developer.All.in.One.Exam.Guide. I am currently doing an exercise on log shipping. I have created 2...

  • RE: Getting value for identity Col for insert - sql 2005

    siddartha pal (10/28/2008)


    It appears from the records in db that we are not getting the correct value. Is that possible that some other transaction is also inserting the value after...

  • RE: Getting value for identity Col for insert - sql 2005

    siddartha pal (10/28/2008)


    We are inserting values in table A and there is a ID col on the smae table. After inserting the value, we need to get the value of...

  • RE: How to concatenate a chopped-up .TRC?

    FreeHansje (7/22/2008)


    Tnx for answering, I will give this a try.

    I am still curious why the file is chopped up. Is there some setting I should check? Tried to find info...

  • RE: How to concatenate a chopped-up .TRC?

    I'm not sure if there's a way simple way to concatenate the files. But you could automate loading them all into a table.

    Use xp_dirtree to get the list of...

  • RE: block select on sysobjects

    Martin Harrison (7/16/2008)


    All,

    Recently a victim of a sql injection attack on our server. The exploit queried the sysobjects table and then pasted malicious code throughout varchar/text field of our database.

    What...

  • RE: Only Keep The First Occurance

    In this situation what you'd want to do is normalize a little by splitting the table into two tables.

    You'd have one table, called Course (for example) that contains all of...

  • RE: getting only date from datetime

    Sanaullah (5/15/2008)


    Hi,

    If u want to get the count of date only the use this

    SELECT COUNT(1) FROM XYZ WHERE CONVERT(VARCHAR(10),DATETIME,101)='2002-05-15'

    I think this will work.

    Thanks

    Sanaullah.

    That will work. However, it's not...

  • RE: LogOn Failure Error

    That's correct

  • RE: LogOn Failure Error

    exec master..xp_cmdshell 'SET USERNAME'

    That will give you the user that the cmdshell is running under.

  • RE: Table Index page locking

    Apparently there was a bug that caused this option to be set to OFF whenever an index was created with management studio. This has been fixed in sp2.

    The default...

  • RE: LogOn Failure Error

    It's been a while since I've used xp_cmdshell - and you shouldn't really use it - but I think that when using xp_cmdshell you're going to be running in the...

  • RE: getting only date from datetime

    As you've noticed SQL Server datetime types include the time as well. So you'll have to take this into account. Try this:

    select count(datetime) from XYZ where datetime between...

Viewing 15 posts - 106 through 120 (of 683 total)