Forum Replies Created

Viewing 15 posts - 2,206 through 2,220 (of 3,221 total)

  • RE: is there away of using a computed column in another computed column formular in sql server 2005

    Run this query and note the anomalies in the results:

    SELECT DateEngaged,MonthsInService As 'YearsinService',DATEDIFF(Month,DateEngaged,GETDATE()) AS 'Months Dif'

    ,DATEDIFF(Month,DateEngaged,GETDATE())/12 AS 'Pseudo Years'

    ,MonthsInService*2 AS 'MyColumn3' FROM dbo.MyComputedColumn ORDER BY DateEngaged

    DateEngagedYearsinServiceMonths DifPseudo YearsMyColumn3

    1990-03-01 00:00:00.00020 ...

    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: Where are you?

    Northern Ohio - 20 miles west of Cleveland

    Born in the borough of BROOKLYN in New York City.

    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: Session Settings

    Ernie Schlangen

    Can someone verify for me that this is different in SQL 2008 vs SQL 2005? I get a different result using 2005 (I don't have access to a 2008...

    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: 10 digit random unique alpha-numeric number

    Here is an excellent function developed by Lynn Pettis ...

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[MyNewID]'))

    EXEC dbo.sp_executesql @statement = N'create view...

    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: importing tab delimited file with various line length

    I suggest you look at

    http://www.sqlservercentral.com/Forums/Topic845680-338-1.aspx

    For grins and giggles I modified the input data for the above forum to replace the commas in the string with tabs.

    INSERT INTO @test-2

    SELECT REPLACE('xyz, 54050,...

    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: parse comma-delimited list into seperate columns

    Whoops incorrect forum

    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: Is There A Way To View Tables Updated By An Application?

    If you believe that the T-SQL is dynamic and coming from an application, you might want to examine (Books On Line) the command DBCC INPUTBUFFER it will return up to...

    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: Is There A Way To View Tables Updated By An Application?

    This will return a list of all SPs in a SQL 2000 db

    SELECT so.name, sob.name as 'Stored Procedure name' FROM sysobjects so

    LEFT OUTER JOIN (sysobjects sob left outer join...

    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: Importing TEXT file using DTS

    Before planning to use DTS to import data into a SQL 2008 DB I suggest you read the following articles, which basically say "it ain't simple"

    Support for Data Transformation Services...

    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: Are the posted questions getting worse?

    Take a look at this one

    http://www.sqlservercentral.com/Forums/Topic844889-392-1.aspx

    It is one of the worst I have seen on SSC in a long long time.

    Lynn - I must compliment you on your restraint in...

    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: Deleting SPs with a certain name

    Please note in SQL 2008:

    SQL Server 2008 Books Online (November 2009)

    sys.objects (Transact-SQL)

    Updated: 31 August 2009

    Contains a row for each user-defined, schema-scoped object that is created within a database.

    ...

    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 Sproc fired Off?

    Having had an almost identical problem in days gone by (SQL 2000) allow me to list what I had done, and some of the mishaps encountered.

    1. Created 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: Date based logic

    Review your code against this excellent blog post

    https://www.sqlservercentral.com/blogs/lynnpettis/archive/2009/03/25/some-common-date-routines.aspx

    and see if it matches what you have posted or gives you a different way of doing the same calculation.

    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: T-SQL

    SSSolice

    In light of all the confusion, I respectfully apologize to everyone for not making the question more clear in the first place.

    1. Do NOT take the belittling comments...

    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: Trying to determine access from table that only shows rows with None or ReadOnly permissions if no row full access

    ed.mitchell

    I am using SQL 2005

    1. You have posted to a SQL Server 2008 Forum.

    2. You have posted the definition of a single table - good

    3. The sample...

    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,206 through 2,220 (of 3,221 total)