Forum Replies Created

Viewing 15 posts - 196 through 210 (of 920 total)

  • RE: Format 235959 as a time w/ AM/PM

    Probably a better way, but this works:

    declare @y int

    set @y = 35959

    select convert(varchar(20),convert(time,(substring((right(('0' + convert(varchar(6),@y)),6)),1,2) + ':' +

    substring((right(('0' + convert(varchar(6),@y)),6)),3,2) + ':' +

    substring((right(('0' + convert(varchar(6),@y)),6)),5,2))),100)


    And then again, I might be wrong ...
    David Webb

  • RE: Issue in using loopback linked server

    Regardless of whether the data is retrieved from the loopback server or directly, the id that gets the data has to have access to that database. You can map...


    And then again, I might be wrong ...
    David Webb

  • RE: Issue in using loopback linked server

    But if you add the user in both databases, and the databases are on the same server, why do you need a linked server? Why not just use 3...


    And then again, I might be wrong ...
    David Webb

  • RE: Query performance change

    It would help if you posted the DDL for the tables, with indexes and the actual execution plan of the update. Without those, the information you get back might...


    And then again, I might be wrong ...
    David Webb

  • RE: select

    Could be. I'm uncertain...


    And then again, I might be wrong ...
    David Webb

  • RE: select

    select * from sometable where cast(datetime_column as time) = '00:00:22:000'


    And then again, I might be wrong ...
    David Webb

  • RE: Need to help to Restore/attach a database in SQL 6.5

    Is this actually a SQL Server 6.5 database? If it is, you might try creating a database with the same file names, shutting down the server, replacing the created...


    And then again, I might be wrong ...
    David Webb

  • RE: 'DBCC' is not recognized as an internal or external command

    You'd be wise to listen to Gail on this. If the problem is space on the backup drive, get more space or move some of the older backups to...


    And then again, I might be wrong ...
    David Webb

  • RE: design database

    People spend years studying this topic and you don't get good at it overnight. There are basic rules you can learn from books and there are lots of different...


    And then again, I might be wrong ...
    David Webb

  • RE: 'DBCC' is not recognized as an internal or external command

    Your connection puts you into the master database by default. It looks like the files you are attempting to work with are in another database. Your connection needs...


    And then again, I might be wrong ...
    David Webb

  • RE: User Defined Function

    I have to agree that this is a bad idea. Limited and hard to work with, but this will generate the combinations.

    create table #x (letter char(1) not null)

    insert #x...


    And then again, I might be wrong ...
    David Webb

  • RE: Sum Function Error

    You need to add the 'group by CAP' and remove the 'distinct'.


    And then again, I might be wrong ...
    David Webb

  • RE: 'DBCC' is not recognized as an internal or external command

    You might need to specify the server as:

    computername\ABCCOMPANYSERVERSQL

    in the -S parameter.


    And then again, I might be wrong ...
    David Webb

  • RE: SSIS! Challenge for a new package -- SQL Serve 2008R2

    Why 3 separate config files? Why not 1 xml config with:

    database name

    include or exclude (have to figure out what to do if you find a db on the server...


    And then again, I might be wrong ...
    David Webb

  • RE: 'DBCC' is not recognized as an internal or external command

    OK, so it looks like it's trying to get a named pipes connection. You need to have the dba make sure that the named pipes protocol is enabled, using...


    And then again, I might be wrong ...
    David Webb

Viewing 15 posts - 196 through 210 (of 920 total)