Forum Replies Created

Viewing 15 posts - 43,666 through 43,680 (of 49,552 total)

  • RE: CLR TYPES AND SQL TYPES

    Thanks Jonathan.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: CLR TYPES AND SQL TYPES

    No problem. 🙂

    Ok, so what exactly will you be passing to the function? Something like 'C:\Somedir\SomeOtherDir\'? What do you want returning from the function?

    Also, what do you need it for?

    What...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Snap Shot Database in Suspect

    Did the drive the snapshot is on or the drive that the source DB is on run out of space?

    There's no way to repair a corrupt snapshot. The only...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: CLR TYPES AND SQL TYPES

    MarlonRibunal (10/18/2008)


    Well, I did not ask the *obvious* question. What is the compatible SQL Server Data Type for C# Type DirectoryInfo? I want to pass well, again it's quite *obvious*,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Script dependent upon SQL version

    Garadin (10/19/2008)


    In ASP for example, you can do:

    sql="SELECT * FROM TABLE WHERE Field ='" & MyVariable & "'"

    rs.open sql conn2

    Instead of

    sql ="Exec dbo.MySP @Variable =" & MyVariable

    rs.open sql conn2

    So...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Change SQL Time

    jjssilva (10/18/2008)


    This is what I got today at 18:48 local time (same as the server time).

    2008-10-18 11:48:07.093

    Sat 10/18/2008

    NULL

    11:48 AM

    NULL

    That's showing that both SQL and the OS think that the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: What is cursor's utility

    Jeff Moden (10/18/2008)


    The bottom line is, almost never write explicit RBAR like cursors and WHILE loops and be very, very careful to consider what may constitute hidden RBAR like UDF's,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Cursor

    senthil_gobi04 (10/18/2008)


    How to use update Query using cursor in SQL Server

    Don't.

    Post the requirements for your update (table definitions, sample data, desired results), and we can help you write an update...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: What is difference between Inline Table-values Function and Multi-statement Table-vlued Function

    Jeff Moden (10/18/2008)


    Then, it should probably not be a function at all. It should probably be a stored proc or perhaps a view.

    Probably.

    I think at this point we...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: CLR TYPES AND SQL TYPES

    The error message is fairly clear. The data types don't match. A VARCHAR(max) is not the same as a DirectoryInfo. What are you expecting to be passing to this function?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: DBCC CHECKDB - how use it in a maintenance plan ?

    Leo (10/18/2008)


    I never backup the transaction log even database model is -FULL. transaction log backup is not required for my environment at the moment.

    You need transaction log backups in full...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: how to prevent record from foregin table

    The only way that could be happening is if the ASP app is deleting from both tables. Can you find the delete statements that it's running? Use profiler if you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: how to prevent record from foregin table

    With the table defs and foreign key that you've posted, that's not possible, unless there's an explicit delete been done from both tables.

    -- using the definition posted above

    INSERT INTO CMFP...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: What is difference between Inline Table-values Function and Multi-statement Table-vlued Function

    Seems to be continued here: http://www.sqlservercentral.com/Forums/Topic588073-146-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Which Table-Values function is better?

    Very hard to say without knowing what you're trying to do. However, as was said before (http://www.sqlservercentral.com/Forums/Topic586167-145-1.aspx), the multi-statement functions tend to perform rather badly, so do be careful with...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 43,666 through 43,680 (of 49,552 total)