Forum Replies Created

Viewing 15 posts - 10,906 through 10,920 (of 13,469 total)

  • RE: Insert Query

    Just as Dave said,

    that's what is a main difference between any database system and a flat file/excel spreadsheet.

    SQL Server, or any other DataBase Management System, does not guarantee the order...

  • RE: islowercase

    sarvesh singh (7/2/2009)


    Try this

    select * from customer where upper(surname) surname

    that won't work the way you think, unless the database you are using is using case sensitive collation...you've got to...

  • RE: Need Help for a procedure

    your explanation is too abstract...you did not clearly define the matrix and the possible values(at least for me), nor the actual format of the data that will come from the...

  • RE: SQL TRACE

    here's the proc I use to create the trace I use; note that it creates a view at the end so I can also see the results easily.

    this runs till...

  • RE: Diff date formats in single column

    i assume you have them stored in a varchar column instead of in a datetime column?

    ideally, everything should be the datetime datatype...

    can you rebuild the table, and set the column...

  • RE: How to add a New Row in between the existing rows in a Table using SQL SERVER Mangement Studio

    that's what is a main difference between any database system and a flat file/excel spreadsheet.

    SQL server, or any other DataBase Management System, does not guarantee the order of the data...

  • RE: Triggers - Database to Database

    Like Roshan said, the INSERTED virtual table makes both your triggers cleaner and easier to read;

    note how your trigger would not work if multiple rows get inserted...it would only move...

  • RE: Showing column as decimal in select

    it's the shortcut SQL uses for data types; integer divided by integer yields an integer result.

    multiply either the numerator or denominator by 1.0 and you'll get your 0.17

  • RE: Replacing misspellings in a string

    lk (6/30/2009)


    Hi, Lowell:

    Thank you--this will save me a lot of typing! I also enjoyed your use of the word "doink" in your comments. 😛 This is very much appreciated!

    your welcome!

    it...

  • RE: Replacing misspellings in a string

    i have already done something very similar...this code may help out, or just complicate matters...

    it's a huge stack of updates to a temp table, so I could review the old...

  • RE: dynamic sql - string being truncated issue

    you error message is not related to your (max) string, it's related to a specific varchar/char column in the sql statement you built...

    if a column has a definition of a...

  • RE: Determining when database was last accessed?

    ahh i see what you are after...i think you'll end up finding that all the DMV's get set to zero whenever the server is stopped and started, though right?

    so...

  • RE: Triggers - Database to Database

    i think the original poster wanted a different database, not necessarily a different server, right?

    a simple trigger like:

    CREATE TRIGGER TR_MyTrigger On SomeTable

    FOR UPDATE

    AS

    BEGIN

    UPDATE MyAlias

    SET col1 = INSERTED.col1,

    col2=INSERTED.col2

    ...

    FROM INSERTED

    INNER...

  • RE: Determining when database was last accessed?

    jabba (6/30/2009)


    My understanding is that the server side teace will not be retrospective and so will not achieve what I am looking for. I go back to my original question....

  • RE: How To Calculate Database Transaction Execution time

    not enough information to help you; you can see how long a command took with a trace or by setting SET STATISTICS TIME ON , but not an estimated time,...

Viewing 15 posts - 10,906 through 10,920 (of 13,469 total)