Forum Replies Created

Viewing 15 posts - 751 through 765 (of 1,195 total)

  • RE: Query showing tables with a specific column in them

    From a quick test I got similar results, but then using sys.objects I found the the objects in the second query were all views not tables as you were checking...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Are the posted questions getting worse?

    HowardW (6/25/2013)


    Stefan Krzywicki (6/25/2013)


    Strange as it may seem in this day and age of cheap HD space, there are still places that refuse to provide enough space for their data...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: money datatype

    It would depend on the structure of your database.

    I would like to hope that alongside your stored customer information you have the currency of the customer (and therefore a currency...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Exporting Output Data of an Stored Procedure

    My favourite option would be bcp (http://msdn.microsoft.com/en-us/library/ms162802.aspx)

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Database Backup Restore

    Nice back to basics question - thanks

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (6/17/2013)


    This week is the first SQL in the City of 2013. Anyone coming?

    London?

    Yup - I'll be there

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Adding an Extended stored procedure

    A bit of an update.

    I have now found that the reason is one of the servers (where the dll works OK) is 32 bit, the other is 64.

    I can only...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Indexing

    L' Eomot Inversé (6/14/2013)


    This would have been a good question if the author had checked that it produced the expect result before he submitted it, and corrected it when he...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Indexing

    I wonder what version of SQL this was tested against - running it against my Test box (2008 R2) all goes well until INSERT INTO [dbo].[IndexTable]

    VALUES(3, 'Value3')

    Then I...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Need Help with the Error 'Subquery returned more than 1 value'.

    As Grass was told - we really need to see the sample data you are running this query against in order to make any meaningful suggestions.

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: How to Insert Default value of Column In Case of Check Constraint Violation Error

    Try this:-

    Create table Table1(id int)

    ALTER TABLE [dbo].[Table1] WITH NOCHECK ADD CONSTRAINT [CK_Table1_ID] CHECK (([ID]>=(0) AND [ID]<=(3)))

    GO

    ALTER TABLE [dbo].[Table1] CHECK CONSTRAINT [CK_Table1_ID]

    Go

    ALTER TABLE [dbo].[Table1] ADD CONSTRAINT [DF_Table1_Id] DEFAULT ((0)) FOR [ID]

    Declare...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: How to find FIRST matching value from the table ,

    SQL may not Sean, but it is posted in Reporting Services, which does. However as you rightly say the order needs to be established for the rows returned so that...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: How to find FIRST matching value from the table ,

    Could you post DDL of the table (first link in my sig block shows you how), there might be something missing from your question which will help to get the...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: Proper way to write a sproc

    Have you got any examples of the other commands that you are talking about?

    There are many valid reasons why a stored procedure wouldn't conform to

    Alter procedure Dummy as

    Declare variables

    Run...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • RE: cast function

    You're dividing an integer by an integer, which will return an integer (no decimal places), then the conversion to decimal takes place. Try:-

    select cast (3/2.0 as decimal (5,2)) as 'test'

    and...

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

Viewing 15 posts - 751 through 765 (of 1,195 total)