Forum Replies Created

Viewing 15 posts - 31 through 45 (of 210 total)

  • RE: Numeric Data Types

    Stephanie Giovannini (5/5/2015)


    While decimal and numeric are functionally equivalent, they are not the same type. There are six types in the question.

    The system_type_id for decimal and numeric is not the...

  • RE: Numeric Data Types

    I have created a test table with 9 columns covering all the given data types, then found the answer is 5. Thanks for the question

    create table test_tbl

    (

    col_1 DECIMAL(12,0),

    col_2 REAL,

    col_3 DOUBLE...

  • RE: Finding the permissions that a user have

    do you have the "bob" in your db users list ?

  • RE: Finding the permissions that a user have

    Try the below query. hope it will suffice your requirement

    SELECT SCHEMA_NAME(schema_id) + '.' + name TableName

    , type_desc

    , HAS_PERMS_BY_NAME(SCHEMA_NAME(schema_id) + '.' + name,

    'OBJECT', 'SELECT') AS have_select

    , HAS_PERMS_BY_NAME(SCHEMA_NAME(schema_id) + '.' + name,

    'OBJECT',...

  • RE: How long do they last?

    Graham_Day (4/23/2015)


    Excellent illustration of how query folding and constant evaluation is used by the query optimizer. Many thanks Carlo.

    +1

  • RE: Filtered Indexes

    sestell1 (4/22/2015)


    Interesting question! I don't use filtered indexes very often, and didn't know filtered indexes had these limitations.

    +1

  • RE: Filtered Indexes

    very good question.

  • RE: Illegal CTEs

    Ed Wagner (4/21/2015)


    Good question. Not knowing the answer off the top of my head, it was more a process of elimination than anything. Thanks.

    +1

  • RE: Is there a way to show backup % done progess?

    mohan.bndr (4/13/2015)


    peterus (1/3/2006)


    Try DBCC OUTPUTBUFFER (spid) . Where spid is the backup process. This is as or more accurate than the stats option.

    I see the DBCC inputbuffer (spid) will give...

  • RE: The CTE Problem

    jpatenaude (4/9/2015)


    The list of column names is optional only if distinct names for all resulting columns are supplied in the query definition. As they were not, I see both 2...

  • RE: Adding database file

    SQL-DBA-01 (3/31/2015)


    I think the reference link which you posted is not appropriate.

    USe this:

    https://technet.microsoft.com/en-us/library/ms175477(v=sql.110).aspx

    I think the link is appropriate.

    https://msdn.microsoft.com/en-us/library/ms189253.aspx

    or

    https://msdn.microsoft.com/en-IN/library/ms189253%28v=sql.120%29.aspx

    It has the below statements

    "

    Limitations and...

  • RE: Not Again!

    thanks for the nice question

  • RE: SQL Jobs

    Rune Bivrin (3/26/2015)


    Let's assume that there's no output file already there in the location.

    If the file is already available in the location, will it write anything to the file?

    Which is...

  • RE: SQL Jobs

    i know the answer is straight away no since there is syntax error. :rolleyes:

    but clicked the answer "yes":crying: thinking that there might be any trick which i have missed

  • RE: Foreign Key Fun

    The below script gives a hint that both the tables will be created successfully

    drop table junk, #temp;

    so two answers are partially revealed, only one more option to check 🙂

Viewing 15 posts - 31 through 45 (of 210 total)