Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)

  • RE: how to get grand total row in pivot concept??? urgent plz...... Thank u all

    You Can Use Following , Use Following Sample Code

    --Create Table PivotTable

    Drop Table PivotTable

    Create Table PivotTable(ProductName Varchar(100),MarketName Varchar(100),Price int)

    Go

    --insert Values Into Table

    Insert Into PivotTable

    Values

    ('Orange','Reliance Fresh',100),

    ('Mango','Big Bazar',120),

    ('Orange','Big Apple',30),

    ('Banana','CO-MART',150),

    ('Mango','CO-MART',75),

    ('Grape','Mandi',75)

    Go

    --Declaration Of Variable...

  • RE: Filestream directory structure

    Yes, You Will Get This Error if You Try Access System Tables there are Round 58 System Tables (which you cannot access directly)

    select * from sys.all_objects where type_desc='SYSTEM_TABLE'

    You Need DAC(Dedicated...

  • RE: log shipping with Filestream

    1.) The Only Thing which is to be configured is Enable File Stream ( And You Have Done It Already). And you can configure Your Log Shipping.

    2.) FileStream data will...

  • RE: Convert datetime

    Use Following

    select CONVERT(datetime, '20101001', 112), CONVERT(datetime, '20101231', 112)

    Or For Dynamic

    exec ('select CONVERT(datetime, ''20101001'', 112), CONVERT(datetime, ''20101231'', 112)')

    Thanks

    Kuldeep

  • RE: Update fields/tables automatically for all schemas

    The Above looks to be Bit Difficult,

    You Can Use Following Code To Update, Looks Messy But Should Help.

    Declare @STR VArchar(Max)

    SEt @STR=''

    Select @STR=Case When

  • RE: Scope_Identity() and Nested Stored Procedures

    Scope Identity Returns Newly Inserted Identity Within the Current Scope : Current Scope Can Be A "Stored Procedure, Trigger, UDF"

    If You Have A Nested Stored Procedure Then That Comes...

Viewing 6 posts - 1 through 6 (of 6 total)