Forum Replies Created

Viewing 15 posts - 16 through 30 (of 91 total)

  • RE: Insert hash Record

    check if you are looking for this..

    USE TEMPDB

    GO

    declare @hash varbinary (255)

    CREATE TABLE tempdb..h (id_num int, hash varbinary (255))

    SET @hash = pwdencrypt('123') -- encryption

    INSERT INTO tempdb..h (id_num,hash) VALUES (1,@hash)

    SET @hash =...

  • RE: Insert hash Record

    check if you are looking for this..

    USE TEMPDB

    GO

    declare @hash varbinary (255)

    CREATE TABLE tempdb..h (id_num int, hash varbinary (255))

    SET @hash = pwdencrypt('123') -- encryption

    INSERT INTO tempdb..h (id_num,hash) VALUES (1,@hash)

    SET @hash =...

  • RE: Insert hash Record

    check if you are looking for this..

    USE TEMPDB

    GO

    declare @hash varbinary (255)

    CREATE TABLE tempdb..h (id_num int, hash varbinary (255))

    SET @hash = pwdencrypt('123') -- encryption

    INSERT INTO tempdb..h (id_num,hash) VALUES (1,@hash)

    SET @hash =...

  • RE: get Count(*) to return 0

    try with Left join and group by....

  • RE: Restore option-During cutover

    Redundant Post...

    why dont you continue in the old post...same query again..

    http://qa.sqlservercentral.com/Forums/Topic826786-338-1.aspx

  • RE: Delimited file import

    try this..

    BULK INSERT testtbl

    FROM 'f:\orders\lineitem.txt'

    WITH

    (

    FIELDTERMINATOR =' |',

    ...

  • RE: Mostly Used Stored Procs

    Was busy in one production issue. sorry for the late reply. Thanks all for replies...

  • RE: CSV Files

    Thanks Jeff for your clue on xp_DirTree..It really helps....

  • RE: CSV Files

    Instead, You can use bulk insert to load files, if you are not comfortable with SSIS.

    Check if the below code helps you.

    Create procedure usp_ImportMultipleFiles @filepath varchar(500),

    @pattern varchar(100), @TableName varchar(128)

    as

    set...

  • RE: performance issue and rebuilding of indexes

    Two things..

    1) DMV Not working...

    I have copied and pasted your code in Query window and it executed successfully. may you...

  • RE: Use calculated column name in query again in the same query

    For getting faster response, please post readily consumable sample script.

    for now i have created a table with dummy data and calling the calculated price column at multiple places in the...

  • RE: Create a trigger on a column

    Alter the trigger to work only for Insert (remove update).

    Change for Insert, update to for Insert.

    You create another trigger for update if you want any other transaction to happen on...

  • RE: Use "like statement" in stored procedure

    Instead...

    to make the code work with varchar variable..

    you can change the code

    from

    EXECUTE sp_executesql @SSQL

    to

    Exec(@SSQL)

    --Jus

  • RE: Tricky Problem with SET LANGUAGE, please help

    check if this works for you.........changed your code a bit to make it work..

    drop table languages

    drop table daytime

    create table languages (id int, name varchar(20))

    insert into languages select...

  • RE: Invalid Substring error msg

    Can you post sample data along with...

    For testing, I have tried with following variables and works fine.

    declare @o_bal decimal(10,3)

    declare @Outstanding_Bal decimal(10,3)

    declare @P_Amount decimal(10,3)

    set @o_bal=10

    set @Outstanding_Bal = 5

    set @P_Amount = 5.5

    SELECT...

Viewing 15 posts - 16 through 30 (of 91 total)