Forum Replies Created

Viewing 15 posts - 166 through 180 (of 595 total)

  • RE: Storing arrays in SQL.

    Well, I certainly see your point. Time is always an issue, and I don't envy your position. I think your best solution might just be the serialize/unserialize solution...

  • RE: GETDATE function conversion

    I know it's nitpicky, but:

    
    
    Where RETUDATE = datediff(d,0,getdate())

    is a little more optimizer-friendly since the field is isolated on the left side of the expression. The...

  • RE: Storing arrays in SQL.

    quote:


    The length of the arrays are so variable that I would need upto 20 separate child tables to store this information.


  • RE: Temporary Table

    What is the error message you are getting, or is it possible for you to post some of your procedure code?

  • RE: Using IDENTITY_INSERT with linked servers

    David,

    Good info on the OPENQUERY stuff; wasn't aware of that.

    Hunta,

    I would tend to lean more towards David's suggestion of...

  • RE: Using IDENTITY_INSERT with linked servers

    Could be a permissions issue. Does the executing user have appropriate permissions to the table on the linked server?

  • RE: Performance Issue

    Specifically, what do you mean by "working of SQL Server". If you are talking about the internals of SQL's storage and retrieval engine, or the query optimizer internals, I...

  • RE: SQLServer 7.0 Query against smalldatetime

    quote:


    jpipes,

    My actual query has other combinations in the where clause . This stored proc will come in handy another time.Thank You.

    The original...

  • RE: Performance Issue

    Take the old stuff out and into an OLAP or mixed OLTP/OLAP database. It should speed things up a little, but only if the active user transactions are mixed...

  • RE: SQLServer 7.0 Query against smalldatetime

    Or, don't bother with any of the conversion stuff and just:

    
    
    CREATE PROC dbo.GetProjects
    @StartDate SMALLDATETIME
    , @EndDate SMALLDATETIME
    AS
    BEGIN
    SELECT Fields -- Don't use * !!!
    FROM...
  • RE: Where Do I Want To Go Today? - Upsert

    I actually like the MySQL INSERT INTO ... ON DUPLICATE KEY UPDATE syntax. Very clear and easy to understand.

    http://www.mysql.com/doc/en/INSERT.html

  • RE: extended stored procedures

    no problemo. just a script I thought of this morning...worked great (surprisingly...)

    --

    Cheers

  • RE: extended stored procedures

    OR, another way, just to show you examples...

    
    
    CREATE TABLE #temp (OutputText NVARCHAR(1000))
    --
    INSERT INTO #temp
    EXEC sp_executesql N'exec master.dbo.xp_cmdshell ''dir c:\MSSQL7\Binn'''
    --
    SELECT RIGHT(OutputText, CHARINDEX(' ', REVERSE(OutputText))) FROM #temp
    WHERE PATINDEX('%<DIR>%',...
  • RE: extended stored procedures

    
    
    EXEC master.dbo.xp_cmdshell 'dir c:\MSSQL7'

    Of course, replace c:\MSSSQL7 with whatever directory on the server you want...

  • RE: SQL Agent won't start

    Did you find anything in the SQL Server logs, or in the Event Viewer -> Applications log? Specifically, looking for something like 'Bypassing recovery for database 'msdb'...marked as Suspect'?

    ...

Viewing 15 posts - 166 through 180 (of 595 total)