Forum Replies Created

Viewing 15 posts - 436 through 450 (of 1,109 total)

  • RE: password field in syslogins - SQL 2000 SP4

    It is also fascinating that you can change the font of the output based on the string you are displaying:

    CREATE TABLE foo (a INT, c NVARCHAR(20), d INT)

    INSERT INTO...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: password field in syslogins - SQL 2000 SP4

    Bryansky (2/17/2008)


    Hi all,

    anyone encountered this behavior:?

    When select * from syslogins, and in text result, the password field has some Chinese character, not in HEX format like in sysxlogins. Any ideas...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Problem Selecting Rows with MAX(date)

    The following is ugly, but could do it:

    SELECT a.ID1

    , a.ID2

    , a.CreateDate

    FROM table1 a

    WHERE ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: IF...Else Triggers

    eleanor.vanace (2/15/2008)


    The 'Yes' section now works perfectly, but the 'No section send tqo empty e-mails.

    Also, the last END statement had to be removed in order to pass the syntax...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: IF...Else Triggers

    try

    CREATE TRIGGER [APPROVAL2] ON dbo.Results_Appr1

    FOR INSERT

    AS

    IF ( SELECT COUNT(*)

    FROM inserted

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: To reduce the size of log file for an Axapta Database

    faheemlatif (2/15/2008)


    Hi,

    Please run this script on your DB, And sleep without tention-:)

    --******************************************

    exec sp_dboption 'DB_NAME','trunc. log on chkpt.','ON'

    exec sp_dboption 'DB_NAME','AUTOSHRINK','ON'

    checkpoint

    BACKUP LOG DB_NAME WITH TRUNCATE_ONLY

    DBCC SHRINKDATABASE (DB_NAME)

    checkpoint

    exec sp_spaceused

    --******************************************

    Ouch!!! I would...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: ANSI Joins and the WHERE clause

    Performance here will be the same (but you have tiny tables, no indexes, ...) In both cases there will be a full table scan, ...

    If you are interested in exploring...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Server level DDL trigger for DROP_DATABASE

    Do you get the print message?

    When you do not get the database name, what is the content of the eventdata.

    On my test server your approach seems to works well.

    It is...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How can i download any file like zip or pdf or txt or from internert

    pprajapati (2/14/2008)


    But i requite excat query

    suppose i have to download file from

    http://www.google.com/pwf.pdf

    to directory c:\files\pwf.pdf...

    ..

    You could use the ftp provided with Windows, in this case create a file foo.ftp...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: ANSI Joins and the WHERE clause

    Alan G (2/14/2008)


    Hi, If you use ANSI joins in a select statement, are there any occasions when you would still need to use a WHERE clause?

    Thanks.

    It is easier to show...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How can i download any file like zip or pdf or txt or from internert

    pprajapati (2/14/2008)


    How can i download any file like zip or pdf or txt or from internert

    using TSQL or DTS Package...

    In T-SQL you could use xp_cmdshell to execute a command...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Join/merge two tables..?

    Martin Larsson (2/14/2008)


    Hi!

    I can't seem to find a way to "join" two tables in one result set. It's kind of difficult to explain this, but I will try...

    I've got two...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: List month names

    select top(12) identity(int, 0,1) AS nr into #tally from sys.all_objects

    DECLARE @startDate DATETIME

    DECLARE @endDate DATETIME

    SELECT @startDate = '03/03/2007'

    , @endDate = '08/08/2007'

    -- set it...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Creating NEW Users and Listing Existing User Names

    sankarnarayanan.s (2/13/2008)


    My 1st question.

    I want to Create User for Particular Database.

    How can I create New user?

    2nd Question

    How to get the User names List?

    On SQL Server 2000 use sp_adduser (see http://technet.microsoft.com/en-us/library/ms181422.aspx)

    On...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How to drop an autogenerated contraint

    For constraints, indexes and foreign keys you can use sp_rename. Since these objects are rarely referenced by name in other textual database objects, and since they are mostly not textual...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

Viewing 15 posts - 436 through 450 (of 1,109 total)