Forum Replies Created

Viewing 15 posts - 4,156 through 4,170 (of 13,460 total)

  • RE: TSQL for Financial Settlements

    to get a meaningful answer, you need to provide the CREATE TABLE definitions for Invoices and Payments, and the INSERT INTO statements for your data;

    i see that you pasted some...

    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: Adding a time limit to a SQL Job

    my outside of the box comment:

    wouldn't it be better to tune the process that seems slow so that it performs better?

    what is that process doing, and does it involve 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: dense_rank()

    dense_rank, like all the windowing functions like row_number,ntile and rank all start with one, so just add your some number to it to get your starting number

    select

    dense_rank() over...

    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: How best to report changes to data

    there's a codeproject which adds a CDC equivalent to a standard edition SQL server installation you could look at as well:

    it creates a utility schema instead of a cdc schema.

    http://standardeditioncdc.codeplex.com/

    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: Creating a user that is not allowed to run select *

    i also remember that if you apply column level permissions to a table for user or group, and leave one of the columns /deny one of them, then 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: Creating a user that is not allowed to run select *

    i think there's a couple of factors here:

    queries and indexes need to be optimized, and people having permissions to do ad hoc queries when they are not supposed...

    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 - Client not authenticated Issue

    if you are getting "client not authenticated" , that means you already have connectivity to the mail server, because it's returning errors.

    i think "client not authenticated" could mean one of...

    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 design, your thoughts on an issue with developers

    i would go with one app=one database.

    it sounds like they have four suites of tables related to a given functionality.

    with the current planned design, at some point, you can be...

    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: storing the multimedia files on sql server database

    grant has a great point about owning the code;

    if i give you the code, your next questions are going to be "I have images in the database , how...

    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: Reg: Image Directly Insert into database binary Format

    don't arbitrarily remove an application or code from doing the work for you; that is what they are designed to do.

    the code to upload the images/blobs in a programming language(the...

    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: Script to show the statistics from all user tables from a DB

    nice effort!

    just as a more streamlined form, you don't need a cursor to generate the same results:

    you can do it as a single set based operation instead:

    SELECT

    object_schema_name(OBJECT_ID) as SchemaName,

    object_name(OBJECT_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: New more powerful servers are slower than old ones?

    also, because of differences in the SQL engine's optimizer between versions, if you upgrade from 2005 to 2008R2 like you said, at a minimum you need to updating statistics,...

    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 me remove key lookups from the query below

    we'd need to see the actual execution plan to see if you can make it faster;

    I think what Sean Lange referred to, you want to try and convert the ...

    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 me remove key lookups from the query below

    can you show us all the indexes on w_entity_document_test_new and the actual execution plan?

    did your covering index include all teh columns in the query?

    ie

    CREATE INDEX IX_tezt

    ON w_entity_document_test_new ...

    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: return zero for months where no data exsits

    Greg Snidow (1/4/2013)


    Lowell (1/4/2013)


    you need a Calendar table of some sort which gives you the arraay of all possible months;

    from that you change your query to select from that table,...

    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 - 4,156 through 4,170 (of 13,460 total)