Forum Replies Created

Viewing 15 posts - 181 through 195 (of 287 total)

  • RE: Using dynamic values

    Eugene Elutin (3/7/2012)


    It's not a good design to email from a trigger. You're killing performance of update. If I would be MS i would not allow to call xp_sendmail from...

  • RE: Data from table different from view

    Alexander G. (2/29/2012)


    Eugene Elutin (2/29/2012)


    Does your job have a step to recreate a table or make any DDL change?

    The job does not execute any ddls at all.

    Can you confirm...

  • RE: Stored Procedure -> Declare Views definition

    tobbens (2/28/2012)


    I’d like to create several views using the command below, but would like a loop that goes through a list of client IDs, i.e. TA, TB, TC etc and...

  • RE: TSQL _STORE PROCEDURE

    maheshkrishnas (2/21/2012)


    Hi all,

    I have to write storeprocedure program should create a file.if not just show these results when we run the SP

    store_salesstore_stat.csv target

    StoreProduct SalesStoreAvg Sales TV Avg SalesDVD

    S1TV...

  • RE: ? on cursor

    zwheeler (1/31/2012)


    Hi

    I have a cursor and I am trying to understand it. I have a couple of questions. here is the beginning of the cursor

    DECLARE Cur1 CURSOR FAST_FORWARD FOR

    ...

  • RE: Books for Newbies?

    Frankly, I would think the book(s) you might want to read would depend largely on your aim here... solve a few sql related problems or pursue a career change.

    I'm...

  • RE: Installing SSMS express

    bobba (1/31/2012)


    I have SSMS version 10.50.1617.0 (MSFT SQLServer 2008 R2) on my workstation. I want to install SQL Server 2008 R2 Express with Tools.

    Are there any concerns (especially w/SQL...

  • RE: Access to Database table

    rjoseph (9/27/2011)


    Wonderful. Thanks so much. I will go and try and I am confident that will work.

    The db_datareader role is a fixed database role that grants read access to all...

  • RE: Adding a null column and setting it to a default value of 0

    SQLTestUser (9/15/2011)


    I am trying to add a null column and set it to a default value of 0

    with

    ALTER TABLE X add acolumn smallint NULL Default '0'

    but when...

  • RE: Beginners Guides

    derekr 43208 (9/15/2011)


    Hi Guys

    Where is the best place to find info/documentation on learning SQL Server from the beginning - From an administration point.

    Any book/article suggestions?

    Thanks

    It all depends on your background...

  • RE: I need help copying data within 2 tables

    Nooooob (9/6/2011)


    I want to duplicate a row in table 1 changing only the uniqueidentifier (this I can do).

    Table 2 has many rows of data attached to this uniqueidentifier...

  • RE: My script with queries

    jdowling 65301 (8/29/2011)


    How do I pass @UNC to another query?

    use @UNC

    set nocount on

    SELECT CAST((ISNULL(SUM(CAST(hsi.itemdatapage.filesize AS Numeric(15,4))),0)/1024/1024/1024) AS NUMERIC(15,6)) as Storage

    FROM hsi.itemdata, hsi.itemdatapage, hsi.doctype

    WHERE hsi.itemdata.itemnum = hsi.itemdatapage.itemnum

    AND hsi.doctype.itemtypenum = hsi.itemdata.itemtypenum

    --AND hsi.doctype.itemtypenum...

  • RE: Get Max Row Only if no Ties

    Sorry, I should point out that my expected results are actually:

    key_value=1

    test_value=3

  • RE: Hide column data from a 3rd party reporting app??

    I would have thought the report would need to be changed anyway seeing as it will now be referencing a Column that no longer exists?

  • RE: Hide column data from a 3rd party reporting app??

    I would think a view would be the cleanest way to go with this. Remove access to the base table, create the view omitting the column in question and simply...

Viewing 15 posts - 181 through 195 (of 287 total)