Forum Replies Created

Viewing 15 posts - 13,246 through 13,260 (of 13,849 total)

  • 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

  • RE: records updated

    There are third-party tools that will do this for you.  Here's a link to just one of them:

    http://www.apexsql.com/sql_tools_diff.asp

    And no, I do not work for this company!

    Phil

  • RE: triggers and inserted table

    No enough info.  Please post the code for your trigger.  There are some clever people on this site and the cursor may not be necessary after all.

    To disable a trigger,...

  • RE: Help with union

    OK - getting there.  I think you want something like this:

    SELECT t1.dest_bol_no,   

           t1.rev_no,   

           t1.comm_code,

           t1.quantity,  

           t1.bol_no,

           t1.trailer_id,        

           t1.pup_trailer_id, t2.order_no

    FROM BL_TRUCK_BOL_DEST_COMM t1 join BL_TRUCK_BOL_DEST_COMM_ORDER t2 on t1.dest_bol_no = t2.dest_bol_no and

    t1.rev_no =...

Viewing 15 posts - 13,246 through 13,260 (of 13,849 total)