Forum Replies Created

Viewing 15 posts - 5,881 through 5,895 (of 6,401 total)

  • RE: SQL Server 2008 R2 Licensing

    In the licencing quick reference you can only move running instances of Enterprise or Data Centre so Standard has to be static on one server and cannot move across the...

  • RE: LS

    ramyours2003 (2/21/2012)


    We have disk upgrade activity in which logshipping is configured on one databse . what are the steps needed to taken from DB side ?

    Thanks

    what is...

  • RE: DB Mail

    anthony.green (2/21/2012)


    seems like the smtp server is not accepting your IP as an SMTP client.

    are you using Exchange? has the servers IP been granted the nessesary access on the...

  • RE: how to fix the orphaned users problem

    SQLKnowItAll (2/21/2012)


    Sachin Nandanwar (2/21/2012)


    sp_change_users_login is going to be deprecated

    http://msdn.microsoft.com/en-us/library/ms174378.aspx

    Yes, but this is a 2008 forum and we should still use the tools given to us for the time being. I...

  • RE: SQL SERVER sp_msforeachdb

    yes that is correct

    sp_msforeachdb will execute the query depending on the number of databases you have, so if you have 5 databases it runs the query 5 times.

    strange how you...

  • RE: SQL SERVER sp_msforeachdb

    if you only need data from one database then you dont need to use sp_msforeachdb.

    issue the following and post the results

    sp_msforeachdb 'USE [?]; SELECT TOP 1 * FROM sysobjects'

  • RE: SQL SERVER sp_msforeachdb

    if you do

    select count(*) from sys.databases

    does it return 23 rows?

    what your seeing is that you have used sp_msforeachdb but telling it to go back to the chapter database so what...

  • RE: SQL SERVER sp_msforeachdb

    The T-SQL in my first post used sp_msforeachdb and loops through to get all records from sys.tables in each DB

  • RE: Best approach for record comparison

    feeling helpful today

    CREATE TABLE #TEMP

    (CustomerID INT,

    ServiceType VARCHAR(20),

    StartDate DATE,

    EndDate DATE)

    INSERT INTO #TEMP VALUES (1234, 'ServiceA', '2010-05-25', '2011-07-15')

    INSERT INTO #TEMP VALUES (1234, 'ServiceA', '2011-07-16', '2011-09-18')

    INSERT INTO #TEMP VALUES (1234, 'ServiceB', '2011-09-19', NULL)

    INSERT...

  • RE: SQL SERVER sp_msforeachdb

    I take it you want all the tables from each database?

    sp_MSForEachDB 'USE [?]; SELECT * FROM sys.tables'

  • RE: DB Mail

    Loundy (2/21/2012)


    I believe you also need to enable mail session in sql agent

    Don't think this will be causing your error though - just thought i'd point it out 🙂

    this is...

  • RE: DB Mail

    seems like the smtp server is not accepting your IP as an SMTP client.

    are you using Exchange? has the servers IP been granted the nessesary access on the SMTP...

  • RE: scripting all stored procedure through T-SQL

    Does it have to be done in T-SQL?

    You could right a few lines of code in powershell which will loop through all the procedures and dump it out to a...

  • RE: Migrating user sql server 2000 to sql server 2008..?

    could also use SSIS with the transfer logins tasks

Viewing 15 posts - 5,881 through 5,895 (of 6,401 total)