Forum Replies Created

Viewing 15 posts - 6,886 through 6,900 (of 13,460 total)

  • RE: List Collation on database

    i don't think the collation is going to affect you at all, you should use the default server collation, you just have to use nvarchar columns everywhere instead of varchar,...

    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: List Collation on database

    the function below returns all possible colaltions on your server ...much more than i care to digest .

    the second query is just the collations currently in use.

    hope that helps:

    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: update the table according to other table value

    Frances L (8/23/2011)


    easy way to write this sp

    I want to update one table field value according to other table value.

    table a

    ID Certfication

    2 ACNS-BC

    3 CCRN

    if table a 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: Error Message - There is already an object named 'SystemDateTable' in the database

    Jnrstevej (8/23/2011)


    Thanks for your reply Lowell and kvishu83

    @Lowell its just a portion of the SP I've created. You are completely right with your advise it has solved the problem:-) 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: Has the culture of this web site changed?

    in some cases, that's absolutely true; after answering the same posting question over and over again, some folks get jaded;

    I myself got snarky a while back and when someone posted...

    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 set all user database to simple recovery model

    just a day or so ago someone asked for the same thing;

    see this topic for the discussion and a working solution:

    http://www.sqlservercentral.com/Forums/FindPost1162705.aspx

    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: Bulk Insert with Dates

    shouldn't your function return a datetime instead of a char(8)?

    anyway, you just wrap it with the function you wrote:

    here's two ways, depending on if you change the function to return...

    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: Error Message - There is already an object named 'SystemDateTable' in the database

    the code you posted is not creating the table SystemDateTable

    i assume what you psoted is just a portion of what you are doing, right?

    in what you did paste, you 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: object_id(what) .. returns diffrent value depending on user

    you should be able to find what the issue is pretty easily;

    if you change the object id below to the one you are looking for, what do you get?

    on my...

    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: Bulk Insert with Dates

    your variable is too small

    DECLARE @sql nvarchar(1000)

    but the code you pasted is at least 1065 chars, depending on t table name.

    change it to nvarchar(max) to be safe and try again.

    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: Bulk Insert with Dates

    some of your dates are not dates...probably blank strings for death date(a reasonable assumption would be not all patients die or get transferred)

    something like this:

    ...

    CASE

    WHEN ISDATE(SUBSTRING(BulkColumn, 41, 8)) =1

    THEN...

    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: Bulk Insert with Dates

    since you have everything in a staging table, shouldn't you just convert the columns explicitly?

    -- Substring input patient

    set @sql = N'SELECT

    CONVERT(int,SUBSTRING(BulkColumn, 1, 4)) AS patid

    ,SUBSTRING(BulkColumn, 5, 1) 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: BCP Slow Export on Updated Large (100 Mill) Table

    I'm guessing the new columns( with defaults or not?) caused a lot of page splits of the data.

    I'm thinking rebuilding the indexes on the table would improve the perforamnce...

    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: Incremental load - using timestamp reliable?

    Shurkadze (8/22/2011)


    What if you have a row modified in OLTP with a column value changed that is not mapped to DW. The data then should not be moved to Data...

    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: Execution Plans: Key Lookup = Add Index

    GilaMonster (8/22/2011)[hrNo, not always.

    ...up

    Gail I was looking more for a rule of thumb, I'm sure that just like you identified, there are exceptions where the key lookup is better...testing would...

    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,886 through 6,900 (of 13,460 total)