Forum Replies Created

Viewing 15 posts - 4,201 through 4,215 (of 13,460 total)

  • RE: conver numeric data to string data in ssis

    there's a couple of script contributions:

    there's several threads on the same subject as well.

    http://www.sqlservercentral.com/search/?q=number+to+words

    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 querying column containing an asterisk

    garth i could not get a result to work the way you said; we would need something equivilent to this to test with:

    With TableA (,col)

    AS

    (SELECT 1,'1308064*8' UNION ALL

    SELECT 2,...

    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: Trigger to update existing records

    UPDATE SET [col] = [col]

    Seriously? that is the trigger body? updating the column to itself, with referencing the INSERTED virtual table?

    Remember we are not in your cube looking...

    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: Trigger to update existing records

    Minnu (12/20/2012)


    Am having a table called products with 4 columns, whenever any new insert or update happens,

    column "Product_Name_Expiry" will be udpated with prouduct_Name : Product_expriry_date.

    IDProduct_NameProduct_Expiry_Date ...

    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 Grant differen Permission to SP, Scalar, Table-valued and inline functions.

    something like this?

    note you have to modify the role everytime a proc/function is dropped and created, or new ones added.

    CREATE ROLE MyExecProcRole;

    CREATE ROLE MyExecFuncRole;

    --GRANT EXEC permissions to all SPs 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: Are the posted questions getting worse?

    If the Mayans were so good at predicting the future, wouldn't there still be Mayans left?

    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: Syntax for transfering data from one table to another

    yes exactly...listing the specific columns, which would of course be unique to your table and text files.

    for your other question, i don't see any value to fiddling with the 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: Substring Query to pull firstname and lastname out of one column

    well, one way is to use the delimitedSplit8K function to chop the string into bitesize peices.

    from there, you might need to cross apply, modifying the WHERE statement to limit 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: Syntax for transfering data from one table to another

    well it depends on the details Brian;

    in situations where the target table does not exactly match the columns (different column order, subset of columns)

    you can attack it a different way:...

    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: Syntax for transfering data from one table to another

    BULK INSERT works well, BCP IN,The Import DaTa Wizard or a full blown SSIS package are your options I can think of offhand.

    here's a simple example of bulk insert:

    CREATE 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!

  • RE: Trigger to update existing records

    Minnu (12/19/2012)


    Yes,

    i want to update pre-existing data,

    at present trigger is firing for only newly updated or inserted records.

    i want Trigger should be fired one time for pre-existing data....

    Please help

    well, here's...

    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: Trigger to update existing records

    Minnu (12/19/2012)


    Hi Team,

    Am having a trigger, which will update a column when insert / update occurs,

    for new inserting or updating records trigger is working fine, but

    am having a table, which...

    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: Hectic Key Combination Shortcuts (Ctrl+K and ++)!

    Abrar Ahmad_ (12/18/2012)


    [font="Verdana"]Lowell, your support was superb, but is there any solution to the following new issue :doze:

    That in previous releases i can define shortcut keys for my own purpose...

    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: Datawarehouse recomended trace flags that need to be set to help performance

    neither of those two flags are going to have any significant performance gains:

    minimally logged inserts:

    http://www.google.com/search?q=sql+server+trace+flag+610&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&rlz=

    grow the files at once:

    http://www.google.com/search?q=sqlserver+trace+flag+1117&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&rlz=

    I'm skipping over the possibility of undersized hardware, memory, or slow disks...

    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: download AdventureworksDW2008R2

    Google says it can be found here:

    http://adventureworksdw2008.codeplex.com/releases/view/86762

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