Forum Replies Created

Viewing 15 posts - 6,166 through 6,180 (of 13,460 total)

  • RE: One of the worst examples of 3rd party SQL I've ever seen

    ok, it's time to play...

    NAME...THAT...VENDOR!

    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: processadmin - can it stop sql instance ?

    this is really misleading, because when you click SSMS(NOT logging in to object explorer or a query window), you launch it as yourself...probably someone who certainly can stop and start...

    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: the rarer options on CREATE INDEX commands;

    perfect Gail, that was exactly the push i needed.

    Thank you so much!

    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: Results to text

    your are confusing the two possible presentation styles of SSMS with how the actual results end up in your other .NET application...they are not the same.

    you get a record...

    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: Sleeping hundreds of "Microsoft SQL Server Management Studio - Transact-SQL IntelliSense" SPIDS

    run sp_who2 again...based on the hostname column, is it all from a single machine, maybe even your own machine, since that's the only one you KNOW is running SSMS?

    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: Sleeping hundreds of "Microsoft SQL Server Management Studio - Transact-SQL IntelliSense" SPIDS

    wierd, on my 2008 server all my connections from SSMS say "Microsoft SQL Server Management Studio - Query" or

    "Microsoft SQL Server Management Studio" ...none reference intellisense.

    do you have a...

    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: help with view

    try explicitly identifying a collation for the join criteria, like this:

    SELECT Customers.dbo.Lead.Last_Evaluation_Product__c

    FROM Customers.dbo.Product

    INNER JOIN

    Customers.dbo.Lead

    ON Customers.dbo.Lead.Last_Evaluation_Product__c COLLATE SQL_Latin1_General_CP1_CI_AS

    = Customers.dbo.Product.Name COLLATE SQL_Latin1_General_CP1_CI_AS

    WHERE (Customers.dbo.Lead.IsConverted = 0)

    AND...

    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: Why is this SELECT statement so slow.

    yep pseudocode will not help with pinpointing a specific performance issue; you 've got to show the real SQL statement, and preferably, the actual execution plan.

    examples of why the SQL...

    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: Index created date

    AFAIK, regular indexes cannot be determined by create_date or modified date; if the data exists, it is not exposed.

    you can infer the index creeation for Primary Key and unique constraints,...

    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: HTML using XML PATH

    the problem is the embedded html.

    SELECT td='<a href=''http://ABC:7777/XYZ/TYPE/EditForm.aspx?ID=0&UID='''+CAST(ACTIVITY_UID AS VARCHAR(36))+'''''>'+ACTIVITY_NAME+'</a>','',

    the FOR XML is going to htmlencode all that, turning them into amp lt ; a and stuff.

    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: Auditing my all SPs/Views/Functions in Today's Date

    waseem.shahzad 45937 (12/21/2011)


    Can you put a Date check on this?

    of course, but what do you want to check?> just add a WHERe statement that validates teh create_date column to whateever...

    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: Auditing my all SPs/Views/Functions in Today's Date

    sys.objects has got all that info for you;

    something like this is pretty close, i bet:

    SELECT

    schema_name(schema_id) As SchemaName,

    name as ObjectName,

    create_date

    FROM sys.objects

    WHERE type_desc IN(

    'AGGREGATE_FUNCTION',

    'SQL_SCALAR_FUNCTION',

    'SQL_INLINE_TABLE_VALUED_FUNCTION',

    'SQL_TABLE_VALUED_FUNCTION',

    'SQL_STORED_PROCEDURE','VIEW')

    ORDER BY create_date DESC

    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: Seeing the foreignkeys through the trees..

    Thanks Ian;

    your pointers and a fresh look at it thismorning got me where i wanted to go.

    for reference, this modified verison seems to do exactly what I was trying...

    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: Am I Blind? - Duplicate key row

    in the VALUEs statement you provided, rows one and three are identical for the columns [kp_slownik_kod] and [kod_id], which seems to matcht he...

    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: not exist statement help!!

    usually, you use exists to detect a reference/relationship/join between the two:

    this is more like what i'd expect to see:

    SELECT

    *

    FROM Report

    WHERE NOT EXISTS (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!

Viewing 15 posts - 6,166 through 6,180 (of 13,460 total)