Forum Replies Created

Viewing 15 posts - 1,666 through 1,680 (of 3,221 total)

  • RE: Query a varchar field using a table parameter

    Found this, which might be useful to you:

    Pattern matchingMatches patterns of characters

    -- Author Gianluca Sartori

    --http://www.sqlservercentral.com/Forums/Topic1008514-391-1.aspx

    -- Table to hold the words to search for

    DECLARE @Patterns 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: How to How to execute a concatenated query in a procedure

    subhankar02dey

    First I altered your T-SQL code:

    set @d='select * from employees where'+@a+@b+@c;

    PRINT @d -- added

    ---???????????????????????????WHAT TO DO TO EXECUTE @d?

    return

    Then executed the resulting SP as procedure1 'NY','ABC','SAM'...

    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: Common SQL Server Mistakes

    Steve Jones - SSC Editor (10/20/2010)


    I'll try to make it. Not sure about the timing

    Thanks for considering it (us) ....

    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: Common SQL Server Mistakes

    Steve, nice info for a beginners tract on a SQL Saturday. Now how to lure you to SQL SAT #60 (Cleveland)...

    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 Query help with date ranges

    Blake

    You will want to create a parameterized stored procedure along the lines of:

    CREATE PROC [dbo].[Blake]

    @Start DATETIME

    AS

    DECLARE @Syr VARCHAR(4)

    DECLARE @Smon VARCHAR(2)

    SET @Syr = DATEPART(yyyy,@Start)

    SET @Smon = DATEPART(mm,@Start)

    SET @Smon...

    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?

    Let's hope what happens in Vegas stays in Vegas

    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: Add empty fileds to and SQL Select Statement

    robert693

    Thanks for your reply, and I like you did not spot it first off, now let me ask did you use a blank character or stick with those NULLs?

    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: Add empty fileds to and SQL Select Statement

    Now this could be a result of your typing in the BCP command, and NOT an error in the actual BCP command you are using, however in looking at what...

    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: Add empty fileds to and SQL Select Statement

    Where you have NULL as [End Date], can you substitute a blank character as:

    '' ' AS [End Date]

    For example

    SELECT Subject, ' ' AS [End Date], ' ' As [End...

    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?

    Can anyone help this OP?

    http://www.sqlservercentral.com/Forums/Topic1004378-149-1.aspx#bm1004658

    Thaks

    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: Testing before upgrading to Compatibility Level 100 (SQL 2008)

    You might want to run this select statement and either output to text or to a file. Set SSMS to output text to a new window, you can cut...

    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: Determine Which Record Failed a Constraint

    Are you familiar with the TRY - CATCH construction? If not the following link will be most helpful.

    http://technet.microsoft.com/en-us/library/ms179296.aspx

    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: repeat clients

    natalie_orlovsky

    In order to receive a tested reply please post table(s) definitions, some sample data, and any T-SQL statements that you may have attempted to use to solve your problem.

    Please click...

    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?

    Is Mr Celko mellowing? Admitting there is something he does NOT know, or has his character drastically changed?

    http://www.sqlservercentral.com/Forums/Topic1002440-1292-2.aspx

    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: Calling a Stored Procedure inside a stored procedure

    This code takes the data you wish to manipulate and places it into a temporary table

    SELECT c.FirstName, c.LastName, e.Title, a.AddressLine1, a.City, sp.Name AS [State/Province], a.PostalCode

    INTO #EmployeeAddresses

    The results of 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]

Viewing 15 posts - 1,666 through 1,680 (of 3,221 total)