Forum Replies Created

Viewing 15 posts - 1,891 through 1,905 (of 2,007 total)

  • RE: Query for logins with "CHECK_POLICY=OFF"

    No problem. Also, this might help

    DECLARE @WeakPwdList TABLE(WeakPwd NVARCHAR(255))

    INSERT INTO @WeakPwdList(WeakPwd)

    SELECT ''

    UNION ALL SELECT '123'

    UNION ALL SELECT '1234'

    UNION ALL SELECT '12345'

    UNION ALL SELECT 'abc'

    UNION ALL SELECT 'default'

    UNION ALL SELECT 'guest'

    UNION...

  • RE: Query for logins with "CHECK_POLICY=OFF"

    SELECT name

    ,type_desc

    ,default_database_name

    FROM sys.sql_logins

    WHERE is_policy_checked = 0

    ??

  • RE: SSIS Expression

    Kwisatz78 (6/24/2010)


    HI there can anyone enlighten me on what the following expression is doing?

    ISNULL([NU SHA Code]) ? (@[User::SHACodeFilter] == "") : (@[User::SHACodeFilter] == "") || ([NU SHA Code] == @[User::SHACodeFilter])

    Ii...

  • RE: Copying Table1 to Table2

    I read this question differently to the posters above me, so my solution is different.

    From what I read, you want to copy the entire contents of table1 into table2, then...

  • RE: Funtion to calculate turn arround time time between two dates

    *NOTE* I didn't write any of this.

    Function 1

    CREATE FUNCTION dbo.F_table_date (@FIRST_DATE DATETIME,

    ...

  • RE: Decimal to datetime

    Hey, after recently answering this thread, I found the original one here so I thought I'd share how I solved it.

    I've come across this before, but basically what you have...

  • RE: Keywords as column names

    DECLARE @table AS TABLE(

    VARCHAR(10),

    [SELECT] VARCHAR(10),

    [UPDATE] VARCHAR(10),

    [VARCHAR] VARCHAR(10))

    DECLARE @cnt INT

    --25 rows

    SET @cnt=25

    WHILE @cnt > 0

    BEGIN

    ...

  • RE: Converting bigint value to time

    shanila_minnu (6/22/2010)


    Like this how can i convert 131401986 to 02/09/2005

    Should've posted your question in a new thread. Regardless. . . something like this?

    --DECLARE AND SET VARIABLE

    DECLARE @number AS BIGINT

    SET...

  • RE: Data Cleaning

    Right, modified. Not too happy with it, but it works.

    --First, lets build some test data

    DECLARE @table TABLE(

    data VARCHAR(20));

    DECLARE @cnt INT

    --2,500,000 rows

    SET @cnt=2500000

    WHILE @cnt > 0

    BEGIN

    ...

  • RE: Data Cleaning

    --First, lets build some test data

    DECLARE @table TABLE(

    data VARCHAR(20));

    DECLARE @cnt INT

    --2,500,000 rows

    SET @cnt=2500000

    WHILE @cnt > 0

    BEGIN

    SET @cnt=@cnt - 1

    ...

  • RE: Month/Year

    --Lets create some test data

    DECLARE @table AS TABLE(

    Begin_Journey_Date DATETIME,

    Container_Key INT IDENTITY)

    INSERT INTO @table (Begin_Journey_Date)

    SELECT '2010-01-01'

    UNION ALL SELECT '2010-05-01'

    UNION ALL SELECT...

  • RE: Basic Script Help!

    omd (6/21/2010)


    Chris Morris-439714 (6/21/2010)


    What are you trying to do here? Insert new rows into shellorganisation, or update existing rows?

    Hi,

    I'm trying to add a value (that value being Y) to the...

  • RE: Basic Script Help!

    First, lets build some test data.

    DECLARE @shellorganisation AS TABLE(

    org_name VARCHAR(50))

    INSERT INTO @shellorganisation (org_name)

    SELECT 'DO NOT USE ABCDE'

    UNION ALL...

  • RE: Incremental value based on duplication of fields

    DECLARE @table AS TABLE(

    k1 INT,

    k2 INT,

    k3 VARCHAR(2))

    INSERT INTO @table (k1,k2,k3)

    SELECT 17, 18, 'AA'

    UNION ALL...

  • RE: Begin Tran...Commit Tran with Exec SQL Insert Cmd

    Well, lets see shall we? 😉

    USE TestingDB

    DECLARE @sqlcmd AS VARCHAR(4000)

    DECLARE @theErrNbr AS VARCHAR(500)

    CREATE TABLE table1 (

    colA VARCHAR(50),

    colB VARCHAR(50))

    CREATE TABLE...

Viewing 15 posts - 1,891 through 1,905 (of 2,007 total)