Forum Replies Created

Viewing 15 posts - 2,851 through 2,865 (of 3,221 total)

  • RE: Does OPENROWSET using BULK preserve the original file's order?

    Jason, might I suggest that you look at EXCEL's help file. In particular the subject Automatically numbering rows. An extract of what can be done is:

    Select the first...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Row to Column conversion

    The PIVOT operator rotates rows into columns, optionally performing aggregations or other mathematical calculations along the way.

    You might want to read this:

    http://www.sqlservercentral.com/articles/Development/2734/

    A partial extract from the above article.

    PIVOT FUNCTION:

    It widens...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Row to Column conversion

    The PIVOT operator rotates rows into columns, optionally performing aggregations or other mathematical calculations along the way.

    You might want to read this:

    http://www.sqlservercentral.com/articles/Development/2734/

    A partial extract from the above article.

    PIVOT FUNCTION:

    It widens...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: How to trim the decimal places?

    You could use the CONVERT function for example:

    DECLARE @Num4 AS DECIMAL(10,4)

    DECLARE @Num2 AS DECIMAL(10,2)

    SET @Num4 = 1234.9876 ...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: last time table is accessed

    Hanshi and Cy

    A technique I have used in SQL 2000 to determine which tables are used or not used is contained in Forum posting

    http://www.sqlservercentral.com/Forums/Topic562824-145-1.aspx#bm564071

    I will be fair and honest, if...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: data error in cursor

    Declarative Referential Integrity (DRI)

    From:

    http://www.cvalde.net/document/declaRefIntegVsTrig.htm

    This is a metadata declaration that enforces a dependency relationship between two tables through one or more fields. So, the engine itself is in charge of verifying...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: How to assign privileges to Windows-authenticated users?

    Randy -- Application roles are not assigned to users -- for a rather lengthy, but valuable discussion of how to use Application Roles and how users access these roles please...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Help with a GROUPBY

    Has Sergiy properly understood your question? If so then ignore what follows.

    Your data for item 2 is:

    CustomerID TestID

    2 ...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Money Type conversion issue

    Arthur.Lorenzini

    I have duplicated what I can deduce as your Customer and Customer_Income tables, using both SmallMoney and Money as the data type for your gross_income column. I...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Basic question - which approach to use?

    There must be many scenarios where there is a need to prevent the dba from viewing the data - eg medical, criminal, psychiatric records etc etc.

    . Isn't this a...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Question

    To expand beyond the simple parsing of Last name, first name to what you have asked may I recommend reading an excellent article by Steve Jones at http://www.sqlservercentral.com/articles/Advanced+Querying/20010422115807/91/

    Also consider Steve's...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Desigin Questions

    Had a project using Windows 2000 which was using an ACCESS DB rather than SQL server, performing much the same task as you have outlined. One problem was discovered...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: "For each table in database......"

    True enough... my question is why you'd want to do anything to all tables from outside the database when the database does it so well?

    Jeff: I am taking it...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: "For each table in database......"

    If you wish to do this programmatically then use ADOX. This Microsoft site presents the ADOX object model, with links to just about everything else concerning ADOX. By...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: nest cast & convert select statements

    Original answer to you was faulty so I removed same. Sorry about that.

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

Viewing 15 posts - 2,851 through 2,865 (of 3,221 total)