Forum Replies Created

Viewing 15 posts - 181 through 195 (of 2,487 total)

  • RE: Converting a smallint to time

    Peter's response was just on my time conversion. So in my solution you can use style 108 instead of 114.

    eg:

    select convert(varchar(8), dateadd(second,@sec,0), 108) as WithHour

    select right(convert(varchar(8), dateadd(second,@sec,0), 108), 5) as...

    --------------------
    Colt 45 - the original point and click interface

  • RE: Column Extraction

    Actually to be precise { and } are braces, [ and ] are brackets and ( and ) are parentheses.

    --------------------
    Colt 45 - the original point and click interface

  • RE: Converting a smallint to time

    Ah yes forgot about style 108, thanks Peter.

    --------------------
    Colt 45 - the original point and click interface

  • RE: RunDTSPackage

    Chuck

    Here are a few DTS articles that will hopefully bring you up to speed.

    http://en.wikipedia.org/wiki/Data_Transformation_Services

    http://www.sqlservercentral.com/columnists/rNageshwara/overviewofdtspackages.asp

    http://www.devguru.com/features/tutorials/DTS/DTS1.html

    --------------------
    Colt 45 - the original point and click interface

  • RE: Converting a smallint to time

    Try this

    declare @sec smallint

    set @sec = 133

    select convert(varchar(8), dateadd(second,@sec,0), 114) as WithHour

    select right(convert(varchar(8), dateadd(second,@sec,0), 114), 5) as WithoutHour

    --------------------
    Colt 45 - the original point and click interface

  • RE: RunDTSPackage

    The LoadFromSQLServer method loads a DTS packages that resides in SQL Server into memory.

    You will need the address of the SQL Server. I'd check that the package exists on the...

    --------------------
    Colt 45 - the original point and click interface

  • RE: RunDTSPackage

    SET @LoadFromSQLServer = 'LoadFromSQLServer("ip_of_my_webserver", "sql_user", "sql_user_password", 0, , , , "' + @PackageName + '")'

    As you're loading from SQL Server, shouldn't the ip address be for your SQL Server not...

    --------------------
    Colt 45 - the original point and click interface

  • RE: HOW TO VIEW SYSTEM TABLES IN SQL 2005

    Try the INFORMATION_SCHEMA views.

    --------------------
    Colt 45 - the original point and click interface

  • RE: Replication

    Have you tried using pull subscriptions?

    --------------------
    Colt 45 - the original point and click interface

  • RE: xp_cmdshell

    Terrence,

    Outlook / SQL integration works well until a) the permissions for the account changes and SQL can no longer access the mailbox, b) Exchange admins reboot their server and...

    --------------------
    Colt 45 - the original point and click interface

  • RE: Database server

    Check the queries that are at the head of the blocking chain. As I mentioned in my other post, without effective indexes the queries will read, and therefore place a...

    --------------------
    Colt 45 - the original point and click interface

  • RE: Database server

    So how does this IO compare against your databases?

    --------------------
    Colt 45 - the original point and click interface

  • RE: dedicated CPU for a certain task.

    Markus, I recall something along those lines as well. From memory, it was something like allocating specific threads to a cpu, but I think this was after the thread had...

    --------------------
    Colt 45 - the original point and click interface

  • RE: Stored procedure running slowly

    Have you thought about/tried a non-clustered index covering all of the fields in the where clause?

    --------------------
    Colt 45 - the original point and click interface

  • RE: Database server

    Since you say the stored procedures use temp tables a lot, I'd also look at putting the tempdb data and tempdb log on seperate physical drives (that's two drives).

    I'd also...

    --------------------
    Colt 45 - the original point and click interface

Viewing 15 posts - 181 through 195 (of 2,487 total)