Forum Replies Created

Viewing 15 posts - 13,231 through 13,245 (of 13,838 total)

  • RE: Proc and View Changes

    Or restore a copy of the db from a month ago and use a third-party differencing program to compare this db with the current version and highlight schema differences.

  • RE: SQL Server Agent - Service Startup Account

    From EM, click on Management and right click SQL Server Agent.  Select Properties - you can view and modify the info here.

  • RE: ex_raise2 - SQL Restart

    Is this link relevant?  Sounds like similar problems ...

    http://www.dbforums.com/showthread.php?threadid=986743&perpage=15&pagenumber=1

  • RE: How to e-mail my data

    You've done it right.  I do this often - the backup should be fine (it's also worth zipping the backup before you send it - you'll see the file size...

  • RE: SQL Server SAN connectivity

    Have you tried rebooting?  (The affected server, that is.)

  • RE: Update database structure from Access database to SQL server

    This is a manual job I think.  Suggest you retire the Access db as soon as possible!

  • RE: A rant on business communications...

    My colleague's insurance company increased his rate because he had had an accident in the previous year.  The fact that the accident was not his fault (another car ran into...

  • RE: Cursor Won''''t Execute

    Ah yes, there are different types of cursors - it's looking like the default type is forward only, which means that the FIRST qualifier cannot be used.

    Try this

    FETCH NEXT FROM...

  • RE: Cursor Won''''t Execute

    OK.  Try using FETCH FIRST as your initial FETCH statement - and you need the local variable there too:

    FETCH FIRST FROM Localisation into @strSQL

  • RE: Cursor Won''''t Execute

    When you use the FETCH command, you need to put the results of the FETCH into a local variable and then build your SQL string from that:

    FETCH NEXT FROM Localisation...

  • RE: DTS Package problem

    Please post the error message.

  • RE: Cursor Won''''t Execute

    Where in this code does @sql get set?

  • RE: Using IN with varchar

    Or the simple version:

    declare @strSQL nvarchar(4000)

    DECLARE @EmpName varchar(100)

    Set @EmpName = '"Frank Smith", "John Doe"'

    set @strSQL = 'SELECT * FROM Employees WHERE EmpName IN (' + @EmpName + ')'

    exec sp_executesql @strSQL

    Note:...

  • RE: Using IN with varchar

    Remi - is this your favourite function?  It seems to keep popping up.  Must read it one day and work out what's going on