Forum Replies Created

Viewing 15 posts - 8,416 through 8,430 (of 13,460 total)

  • RE: Auto CHECKPOINT not working

    ok, run this to find the current recovery interval setting:

    USE master;

    GO

    EXEC sp_configure 'show advanced option', '1';

    RECONFIGURE;

    EXEC sp_configure;

    USE master;

    GO

    if needed, lets set the interval to a shorter time

    --The following example sets...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Auto CHECKPOINT not working

    I doubt very much the issue is CHECKPOINT not running.

    I'll bet your database is set to Recovery Mode = FULL, and you are not taking regular transaction log backups, so...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Numeric column size checker

    don't you just need to compare the convert of the column to itself to see if they are not equal to find items that are not in range?

    something like

    select...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Copy SQLAzure DB from cloud to local

    there is a project on codeplex to help do this kind of thing in either direction; i downloaded it but did not test it yet, but it might help you...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL query not returning all results

    so, do the calulation from stratchpad2 every time, but items in sp4 are only sometimes there...

    like this?: (new calculation for "specminutes")

    SELECT

    name,

    employeenumber,

    summinutes,

    sum(summinutes/60) as...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Remote connections for sql server 2005 to one or two ip address.

    Steve Jones - SSC Editor (11/16/2010)


    You can set the IPs in the SQL Server Configuration Manager that SQL Server listens on. In the network protocol section.

    I *think* the OP is...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL query not returning all results

    there's an inner join in your query, which would limit the data to only the employee's that exist in BOTH tables...is that what the problem is?

    ...

    inner join scratchpad4

    on scratchpad2.employeenumber =...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Incorrect Syntax near '7'

    dates have to be encased is single quotes, as they are not a number.

    instead of this:

    <= 01/31/2011

    --change to this for example

    <= '01/31/2011'

    change it everywhere you had date strings.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: question on executing a script for all user database

    this command seems to be working for me to return results on a per-db basis...is that what you wanted?

    sp_msforeachdb

    'select ''?'' as dbname,*

    from sys.dm_db_index_usage_stats

    where database_id = db_id(''?'')'

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL Profiler v/s Query window

    help us help you...when i read your question, i think the question is "when i profile my procedure, it never finishes. when i just run it, it is fast"

    is that...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: get ip from username

    in 2005 and above, there is a DMV that has the IP address, but note it's possible the value ls '<localhost>' or null if they connected via shared pipes.

    ...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: HEAP Pages not released after table delete (HELP!)

    wow, so even if you were to drop the table itself in the original database, the space will not be recovered? is that right?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Disabling Adhoc Distributed Quries

    no, removing ad hoc will not affect your replication.

    in 2008, it's a right click with the SSMS object explorer on the server and go to "facets": disable these two items...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Management studio disappears

    could you be trying to connect with a lower version of SSMS, for example the Express Version that comes with Advanced Services?

    That limited, express version does not let you connect...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Object dependencies across databases?

    not without something keeping track of those references;

    object dependancies are limited to exist inside a database...that way if you backup and restore, everything your object referenced are together.

    because multiple databases...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 8,416 through 8,430 (of 13,460 total)