Forum Replies Created

Viewing 15 posts - 166 through 180 (of 1,156 total)

  • RE: Stop SQL Server from Verifying Code

    I forgot to mention that you can also query the information schemas to get quick access to detailed table and column information.

    SELECT *

    FROM INFORMATION_SCHEMA.COLUMNS

  • RE: Stop SQL Server from Verifying Code

    You will not be able to get away with this one, using your current methodology. You will have to use dynamic sql, unless anyone else has other options.

    IF EXISTS...

  • RE: sp_Msforeachdb

    I would include some logic to prevent the sp from being created in the system databases. I would also check for existence; otherwise, you can get an error.

    sp_MSforeachdb

    'USE...

  • RE: Adding a column to a table

    I feel obliged, for the sake of accuracy, to point out that although your co-workers steps for adding a column to a table bear an eerie similarity to the scripts...

  • RE: sql server: cluster, how to log into

    I dont think it matters. The service pack should update on a per instance basis. Meaning when you install service packs it will update all nodes for that...

  • RE: Regarding column value

    Are you trying to search for 'cat' in a particular column or every column of every table? What exactly is the purpose for this search?

  • RE: Adding a column to a table

    Good point Michael. If positioning of the column is needed, the alter statement will not help you.

  • RE: Need some advice to tackle this

    You may want to turn on profiler and catch what is going on when the stored procedure runs. this way you can see what the memory,io, and locking really...

  • RE: Need help with calculation desperately!

    Thanks for doing the legwork :). I have been learning a lot of new stuff, in the past few days 😀

  • RE: Adding a column to a table

    Adam, i think the whole drop thing and rename etc is only scripted by SSMS when you alter a column (create new table with new structure, copy accross the data,...

  • RE: How to kill Rollback process

    Simple recovery does not mean the log is not used. If transaction were not logged in the t-log how would you rollback transactions? This is why the t-log...

  • RE: Adding a column to a table

    Chris,

    The reason the developer prefers this method is Microsoft creates its change script just like this. If you make a change to a table via SSMS, a create change...

  • RE: Need help with calculation desperately!

    does that answer it?

    Not quite.

    Basically the question is can you put this into over().

    sum(werksmassFM / (Sum_Lmenge.SumCol/ls.lmenge)* p_transpreis)

  • RE: Need help with calculation desperately!

    Matt, can you use over with the sum of a calculation? I have never tried, but I believe the over is used for deterministic columns. Like I said...

  • RE: Need help with calculation desperately!

    SUM(CONVERT(NUMERIC(9,2),werksmassFM / (Sum_Lmenge.SumCol/ls.lmenge)* p_transpreis)) AS Rechnungsbetrag

    This will only work if you use a group by in your query. You cannot perform aggregate functions without a group by, if multiple...

Viewing 15 posts - 166 through 180 (of 1,156 total)