Forum Replies Created

Viewing 15 posts - 901 through 915 (of 13,460 total)

  • RE: Tuning SQL Query

    here's some of the things i could think of off the top of my head:

    1. Is the query itself SARG-able?( search arguments in WHERE statements will use an index?)

    look for...

    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: DDL Trigger - Initial Load of Table used to track Database Changes

    without your table definition so we know what you are auditing, we cannot help much, but what you can do is simply insert into your audit table, from the sys.tables...

    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: Computed column with leading static number

    nilknarf (6/17/2016)


    Trying create a column with leading code 12345 along with id number. 12345 999999999.

    so, a string that happens to contain numbers then, since you included a space?

    i...

    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: Computed column with leading static number

    franklinkeith (6/17/2016)


    static number (12345) + ID number

    SELECT 12345[highlight="#ffff11"]00000[/highlight] + ID, so as long as your Id is less than 99999, it fits your criteria.

    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: SSIS 2014 Project deployment using TFS

    sunil.mvs (6/15/2016)


    we have started new team of datawarehouse in our company.

    Team started working on SQL Server 2014 and TFS .

    They developed packages using project deployment...

    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: Data coming in from Financial Statements:

    SQLPain (6/15/2016)


    On the report a field is populated from a column X whose datatype is int. the problem is we don't if that number is a percentage or a amount,...

    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: Licensing Question

    Lowell (6/15/2016)


    my understanding is similar to George's:

    services consume licenses, but tools and connectivity do not. that's reinforced by the same tools being part of a separate downloadable install package.

    only when...

    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: Licensing Question

    my understanding is similar to George's:

    services consume licenses, but tools and connectivity do not. that's reinforced by the same tools being part of a separate downloadable install package.

    only when 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 Merge replication disorder on mergered process.

    you keep missing the point about how tables do not have a natural or default order in SQL server.

    they are treated as unordered rows of data.

    all the rows are...

    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 lite to MS SQL migration

    there is a paid oledb provider from cherrycitysoftware.com(since they cost $, i will not bother with a link) ; with that you could create a linked server or import 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: SQL Server 2012 table structure

    we need an example of duplicates making it in.

    when i test, i get an error violating the PK, which would be expected.

    insert into [Test_A]([V],[CA])SELECT '1','2'

    insert into [Test_A]([V],[CA]) SELECT '1','2'

    Msg 2627,...

    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 the SELECT stmt logic please ?

    ok, in that case, i would cross join the default value, and select it in the isnull:

    SELECT M.member_name,

    M.member_plan,

    ...

    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 the SELECT stmt logic please ?

    great job on providing sample data.

    it looks like a simple isnull is needed, am i right?

    SELECT M.member_name,

    M.member_plan,

    ...

    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: Missing Icons in Management Studio 2016

    brad.mason5 (6/14/2016)


    Anyone install latest management studio for SQL Server 2016?

    Have issues with icons not displaying?

    On a side note: How do you add images to the body? I add 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: OR in the where clause or two select statements and a union

    it also looks to me like you could combine the WHERE statement into a single query, that might be more efficient too:

    aww nevermind, i didn't notice the IS NOT NULL...

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