Forum Replies Created

Viewing 15 posts - 16 through 30 (of 58 total)

  • RE: Help with echo in xp_cmdshell

    namrata.dhanawade-1143388 (2/23/2011)


    Declare @Footer varchar(1000)

    Set @Footer = 'echo RECORD COUNT: >> D:\Work\Test.txt'

    exec xp_cmdshell @Footer

    This works fine.

    But this command also inserts a default <CRLF> at the end of 'RECORD COUNT:' when written...

  • RE: Can't restore the log

    The error indicates an earlier log backup needs to be restored first. Is there any other tlog backup happending on the server before your last tlog backup? Have a look...

  • RE: link of dbo to database user in sql2005

    amirs-717937 (2/21/2011)


    thanks to replay and understand my problem

    your script i have already execute. i have already db_owner right to this user.

    i have check login status to execute following query...

  • RE: Logon failure Error

    Bungholio (2/22/2011)


    For those who might be interested... the ODBC data source has been tested and guess what...

    Running connectivity tests...

    Attempting connection

    Connection established

    Verifying option settings

    Disconnecting from server

    TESTS COMPLETED SUCCESSFULLY!

    But not working from...

  • RE: Logon failure Error

    Bungholio (2/22/2011)


    I can't investigate it further as application users get the error msg.

    That's all I can see in the log: 18456 severity 14 state 5

    The NT team is saying the...

  • RE: SQL Agent90.exe

    You will need the agent if you want to run scheduled job under a particular instance. If there is no need for any scheduled jobs, such as maintenance jobs, to...

  • RE: PERMISSION PROBLEM

    kasi5a (2/11/2011)


    HI ALL

    I AM HAVING SOME PROBLEM AND DOUBT..

    EXEC SP_EXECUTESQL @BUILDTABLESTR IS THERE ANY PERMISSION TO OTHERS??? TO EXEC...

  • RE: Logon failure Error

    Have you actually test login as that user? Maybe password has been changed?

  • RE: link of dbo to database user in sql2005

    If I understand your requirement correctly, you are trying to give that user the dbo permission. DBO is a database role. To grant someone dbo permission, simply add them into...

  • RE: drop temp table in dynamic SQL

    PaulB-TheOneAndOnly (2/20/2011)


    I usually use syntax below...

    if exists (select * from sys.tables where name like '#mytemptable%')

    temp table is created in TEMPDB, unless you already in the TEMPDB, you have to fully...

  • RE: drop temp table in dynamic SQL

    Try drop it just before the insert and see if that helps.

    IF OBJECT_ID('TEMPDB..#TEMP') > 0 DROP TABLE #TEMP

  • RE: Looping through variables

    Try this:

    declare @a1 as char(1),

    @a2 as char(1),

    @a3 as char(1),

    ...

  • RE: drop temp table in dynamic SQL

    The instruction looks OK. I assumed you received table #TEMP already exist error message. Any chance you can post your actual code?

  • RE: Installing 2005 instance over sql 2008

    SQL2005 can be installed side by side with SQL2008. Can you post the actual error when trying to install?

  • RE: Updating a record ID that is not an identity with the next increment from previous record

    Even if the record id is not primary key, as long as it's unique on the exist data and in a increment trend when they were entered (or it will...

Viewing 15 posts - 16 through 30 (of 58 total)