Forum Replies Created

Viewing 15 posts - 901 through 915 (of 3,221 total)

  • RE: replacing values in one column with null values

    Glad to be of assistance. Thanks for your reply

    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: sql script to get a column count for every column in a table

    As promised on 10/24 finally found some free time. Now this code is not the fastest, and more than likely could be improved, but it does what I think...

    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: replacing values in one column with null values

    Assuming that your question is a serious need for assistance. Try this code

    CREATE TABLE Atable(Id INT IDENTITY(1,1),EmailAdd VARCHAR(100))

    INSERT INTO Atable

    SELECT 'myaddress.gamail.com'

    GO 10 --Add 10 records

    --Check that EmailAdd column...

    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: Arithmetic overflow error converting varchar to data type numeric

    I strongly suggest that you read this item by Jeff Moden

    Why doesn’t ISNUMERIC work correctly? (SQL Spackle)

    By Jeff Moden, 2010/12/01

    http://www.sqlservercentral.com/articles/IsNumeric/71512/

    Jeff lists numerous reasons, with examples, of why ISNUMERIC "fails"...

    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! Corporate datacenter now hosts our database-- so what?

    scott mcnitt (10/27/2011)


    Thanks, bitbucket (Ron). I guess I had assumed that they would be really good at all the standard management things (backups, watching logs and alerts, keeping the trains...

    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: Query Plan Execution Order

    Blew that one as did someone before me.

    Learned a lot by reading your references - thanks for those.

    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! Corporate datacenter now hosts our database-- so what?

    I hope you have a job(s) to periodically back up your DB and log files.

    If so.

    1. Who is going to check those jobs and modify the backup path...

    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: Set based Numbering process

    1. Did you use table variables in your post only to illustrate the data and these are NOT used in your actually code? (Yes used in my production...

    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: Storing Hexadecimal Datatypes

    Using BOL (Books On Line) for a reference. Think about using a single column whose data type is varbinary.

    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: Summing Problem.

    Read this article by Jeff Moden, and its sample T-SQL .. it may be the answer to your question

    http://www.sqlservercentral.com/articles/T-SQL/68467/

    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: Script to obtain column usage statistics(i.e. null versus not null) for every column in a given table

    Your request is rather vague, but I think you might want to look at this posting.

    http://www.sqlservercentral.com/Forums/Search1-0-2.aspx?SessionID=3vw2y455mzk1vp45dszjevzz&SortBy=2&SortOrder=1

    If my assumption is incorrect come on back with a more definitive question.

    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: Violating Foreign Keys

    Rather surprised that as of this posting only 44 percent of those answering had answered correctly.

    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: sql script to get a column count for every column in a table

    Getting close to midnight for me, and my brain is getting tired. But and it is a big but, you can retrieve all the column names for a table...

    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: Violating Foreign Keys

    A lot of reading of the T-SQL but a GOOD question ...

    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: sql script to get a column count for every column in a table

    Is this what you require?

    CREATE TABLE #T(

    [NationalIDNumber] [nvarchar](15) NULL,

    [ContactID] [int] NULL,

    [ManagerID] [int] NULL)

    INSERT INTO #T

    SELECT 'GOT',NULL,NULL UNION ALL

    SELECT NULL,1,NULL UNION ALL

    SELECT NULL,NULL,2 UNION ALL

    SELECT NULL,NULL,NULL

    SELECT COUNT(*) AS 'All rows',COUNT(ContactID) as...

    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 - 901 through 915 (of 3,221 total)