Forum Replies Created

Viewing 15 posts - 20,506 through 20,520 (of 22,196 total)

  • RE: performance problem

    Have you run a trace to capture the calls coming in to the server? Even if you identify a CPU problem, you need to figure out what's causing the problem.

  • RE: Table design

    a2zwd (4/30/2008)


    Hi,

    I am developing an application to a garment factory. I have a doubt in designing a table.

    Basic tables:

    Jobs, JobColors, Material, Units, Currencies ...

    These tables are designed with normalization rules.

    I...

  • RE: Running a command on a seperate threat

    Yep. TSQL is a scripting language. As such it's sequential. To launch a seperate "thread" you have to make a completely different connection and launch a script from there.

  • RE: Text datatype VS varchar datatype

    You can look it up in more detail in the Books Online (the SQL Server documentation), but Text is a BLOB or Binary Large Object data type. It stores data,...

  • RE: money Data type

    You can switch over to the decimal data type and you shouldn't lose any of your data. You'll have to write a script that migrates it over course, but no...

  • RE: how to count number of rows in a table column

    You can get that specific count for your manager one of two ways. Safely:

    SELECT COUNT(*)

    FROM MyTable

    WHERE MyColumn = 'OldValue'

    Or not so safe:

    BEGIN TRAN

    UPDATE MyTable

    SET MyColumn = 'NewValue'

    WHERE MyColumn = 'OldValue'

    ROLLBACK...

  • RE: SQL:Stmt Completed v SQL:Batch Completed

    Probably. I couldn't find good documentation on the detail of this, but my understanding is, the batch or rpc complete events include all the server side processing, beginning to end....

  • RE: IT salary is going down !

    Jason Selburg (4/30/2008)

    Now that's funny! I used to listen to fish farts on the USS Silversides (SSN 679) back in '89.

    I wonder how many other squids are on here....

    See....

  • RE: no lock table or row when update transaction

    Good suggestions and I'm happy to be wrong about the query hint.

  • RE: no lock table or row when update transaction

    Are the updates and the reads against the same data? Before you do something drastic (the very next post is probably going to suggest using a query hint on the...

  • RE: passing variable and value

    Lots better.

    If nothing else, instead of dynamic queries, use a table valued function to pivot your comma delimited list into a table and then join against it. It's not always...

  • RE: DatePart Function

    Use Modulo 4 and Modulo 6 to limit the values to quarterly & every six months. Of course, you can only use June & December for the six month breaks.

  • RE: Poor Performance with Views

    Parameter sniffing?

    Or, if we've got a procedure that consists of views, calling views, calling views... bad execution plans?

    Look at the execution plan when it performs badly and when it...

  • RE: How to update table having repeated values...

    svhanda (4/30/2008)


    Hi..

    I had problem in updating a table ...

    My query is suppose there is table like

    EMP_ID Comp_ID

    100 ...

  • RE: Create link between database

    There is no way to "link" databases in SQL Server so that you can have cross-database referential integrity. Period. End of Story.

    However, you could write a trigger that will validate...

Viewing 15 posts - 20,506 through 20,520 (of 22,196 total)