Forum Replies Created

Viewing 15 posts - 7,081 through 7,095 (of 13,460 total)

  • RE: 2008 R2 instance not populating system views (DMV data)

    wow that's sounds extra wierd. can you give an example?

    if you query these two views, there's no data?

    select * from sys.dm_exec_connections

    select * from sys.dm_exec_requests

    or is it specific views?

    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: Server Health Check

    pretty wide wave of the hands.. "how to i check my server's health"

    You'll probably want to define what you want to check, first, as Jeff said. We can help with...

    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: 2008 R2 instance not populating system views (DMV data)

    are you running as sysadmin?

    some of those views may be filtered for security reasons to just what YOU've done, unless your a sysadmin.

    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: Database mail in SQL Server 2008 R2...

    steveb's right on.

    pretty sure your issue is the mails erver doesn't like the way you are connecting.

    In order to prevent spam, most mail servers are set up to only allow...

    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: Is SSMS coming with SQL Server 2005/2008 Installation?

    if you are installing anything EXCEPt Express editions, then yes, SSMS is included in the install.

    if you grab an EXPRESS edition, you'll want to make sure it's a version "with...

    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: Audit, track database connections / logins to a table ?

    trying ot think outside of the box, i think you could create a job that runs sp_who2 and logs the data to a table...that would have less data, of course,...

    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: Audit, track database connections / logins to a table ?

    for tracking DATABASE access, a logon triggers not really going to help you; I'd really suggest using a DML trace instead.

    For that logon trigger,

    for example, pick the top...

    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: Estimate Table size

    here's two different ways i can think of;

    you have to lookm at the column size of the data for anything that could potentially be greater than ~8000 chars.

    by looking at...

    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: sp_send_dbmail with dynamic body

    if @vSurveyMessage has the literal value of thiis:

    @vSurveyMessage = 'Recently we invited you to participate in a survey to help ' + [@vfirstname]'

    then you'll need to do a REPLACE...

    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: Returning Object_Name or name of tbl

    the object_name() function has a second parameter to pass the database id; i think it got added ina Sp of 2005, and 2008 and above:

    select

    db_name(database_id) As DBName,

    ...

    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: Suddenly Data Loss

    Nemachtiani (6/22/2011)


    Hi all

    Does anyone know what would cause data loss on tables after commit with no errors raised neither executed DELETEs?

    Is this a symptom of database corruption?

    I have...

    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: Grant Exec on sproc is not sufficient

    i think if the procedure is doing dynamic SQL, the owner chaining rears it's head as well right? and the user needs access to the underlying objects being manipulated via...

    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: Problem creating views dynamically in stored procedure - view definition is too big

    i think because you are concatenating @ViewDefinition with @SQLCmd, they should both be NVARCHAR(max) definitions:

    DECLARE

    @FieldName VARCHAR(50)

    ...

    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: Specifying different server name in query

    there's only two ways i can think of:

    1. use synonyms, and dynamically change the synonym defintion.

    the problem with that is the synonym must point to an OBJECt, like a table...it...

    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: Audit, track database connections / logins to a table ?

    - Win. (7/25/2011)


    Hello Lowell..

    Thanks for your help on auditing and for your query..

    I tested that in my DEV environment, but its giving only MASTER database info alone.

    I tried creating...

    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 - 7,081 through 7,095 (of 13,460 total)