Forum Replies Created

Viewing 15 posts - 346 through 360 (of 1,479 total)

  • RE: On PK column, is unique index defined automatically ?

    Each primary key and each unique constraints are implemented with unique index. This is done for performance. Imagine that you have a table that has more then 10000000...

  • RE: Unable to shrink an almost empty ndf file

    baabhu (3/16/2012)


    The database will not shrink well beyond its initial file size created. if the database is created with 200 GB initially. And later on you have 150 GB free...

  • RE: sql query for below scenario

    From what I see each record is unique, which brings up the question – how do you decide which records are unique and which records are not unique?

    Adi

  • RE: Gather Stored Procedure Execution Statistics

    You can use profiler or server side trace to get the data when it runs.

    Adi

  • RE: Database Growth

    You can use the default trace to find out about file growth. Bellow there is a code, that I've once found on the net (sorry, I just don't remember...

  • RE: Division results round to 4 decimals

    Money data type is working with 4 digits after the decimal point. If this is not enough for you, you should use a different data type.

    Adi

  • RE: join query question

    You can have join clause on an update statement. BOL (Books On Line) has an article about it with example. Look for the article that is called "Changing...

  • RE: Querying XML

    I have to admit that I don’t understand why both queries use the same path in nodes method, but different path in value method. I would have thought that...

  • RE: How to get column names for Views

    Users that don't have permissions to work with the view, won't be able to see the columns from sys.all_collumns, but if you can see it in sys.all_objects, you do have...

  • RE: How to get column names for Views

    svakka (2/27/2012)


    Thank you all!

    Do you know what went wrong and why you didn't get the expected results? In my opinion your query should have shown the columns of the...

  • RE: How to get column names for Views

    Most chances are that the line and a.name like '%_vv%' is the one that filters your results. What is the name of the view that you are trying to...

  • RE: Determine the correct size for a data file autogrow

    I never use percentage for autogrow. I only use whole numbers. Most of the times I use something between 200MB and 500MB, depending on what I think...

  • RE: SQL Date breaking

    One way of doing it is to use a recursive CTE that creates the list of dates and use the CTE in select into statement. Here is an example:

    declare...

  • RE: SQL Profiler - capturing quoted_identifier

    The quoted_identifier set option of a procedure is set during the time that it is created and not according to the session that uses the procedure. If what you...

  • RE: Encrypt database backup set

    g.korot (2/22/2012)


    Hi All

    My client want to encrypt the database backup set. Is there any possibility to do it? I'm not speaking about TDE option.

    Thanks.

    Any reason that TDE is not...

Viewing 15 posts - 346 through 360 (of 1,479 total)