Forum Replies Created

Viewing 15 posts - 31 through 45 (of 56 total)

  • RE: why there are no sql server services listed in configuration manager

    If you go into Windows Services (Control Panel | Administrative Tools | Services), what do you see under SQL Server? there should be a SQL Server service for each...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: display specific string and that positions in sql server

    asranantha,

    Review CharIndex (http://msdn.microsoft.com/en-us/library/ms186323.aspx), this will help you to search for the value you are looking for:

    select charindex('m' /*search value*/, 'sas programer ' /*column to search*/)

    from SomeTable

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: SQL QUERY to find maximum and minimum column value of a primay key column in a year

    Well, I'll be, I thought it was 2008. Thanks

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: SSIS 2008 - renaming files

    Jeff Moden (4/29/2013)


    I can't help here because I don't use SSIS. A thoughtful but simple DOS "rename" would do this, though.

    This solution would work and anything you can run...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: Moving multiple similar access databases to SQL

    jbloes (4/29/2013)


    I'm planning on moving around 4 or 5 MS Access databases to SQL Server and need some insight on what might be the best approach in regards to the...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: SQL QUERY to find maximum and minimum column value of a primay key column in a year

    Evil, for us old timies that still work on sql 2005 most of the time, the Year() might not have been the first thing that came to mind. None-the-less,...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: DBCC Shrinkfile issues

    Depending on what your recovery model is, you may not be able to truncate any data from the transaction log until a transaction log backup has been run. What...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: SQL Report formatting with UNION Clause

    With that data, you can't group by what you've asked.

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: How to merge two sql select statement results I tried it but it not get please see it in detailed explination with my query

    Some more sample data from your tables would be extremely helpful, not just the results.

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: Selecting/Deleting rows with the same column information

    Hogpen,

    Next time it would be helpful to present the data like this, then we could easily duplicate the data and write the queries:

    CREATE TABLE Accounting

    (ProdDate DateTime,

    AcctDate DateTime,

    MtrNo int,

    MtrSfx char(1),

    TrnxID int,

    RecCode...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: get max

    You just needed to change up your on statement just a bit:

    select a.name, b.[DATE], b.[ORDER]

    from dbo.Table_A a

    left outer join dbo.Table_B b on a.id = b.ID

    and b.[DATE] = (select...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: Cannot shrink log

    What version of SQL are you running? I know that different versions of SQL run shrinking the transaction log differently. When was the last time you did a...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: Count instances across fields by date?

    Mick,

    Can you give us some kind of idea what your data looks like within the table? This will help us with a query. I've used CHARINDEX on a...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: Could not connect to 'srvrXYZ' server because 'srvrXYZ' is not defined as a remote server

    dba.sql29 (4/25/2013)


    Hi Experts

    I am trying to delete my publication from my Publication server and i am getting error. I have already dropped distribution database and none of the jobs...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

  • RE: How to update order status based on detail information

    The best option would be to normalize your database. Have one table that has the general order information (total items ordered, etc.) and have another table that contains the...

    --------
    For SQL Tips, check out my blog: http://lantztechknowledge.blogspot.com/[/url]
    You can also follow my twitter account to get daily updates: @BLantz2455

Viewing 15 posts - 31 through 45 (of 56 total)