Forum Replies Created

Viewing 15 posts - 13,246 through 13,260 (of 13,456 total)

  • RE: Convert RTF data

    ok i just found an example on another forum that might help:

    create function dbo.RTF2TXT(@in varchar(8000)) RETURNS  varchar(8000) AS

    BEGIN

    DECLARE @object int

    DECLARE @hr int

    DECLARE @out varchar(8000)

    -- Create an...

  • RE: Convert RTF data

    i've used a quick and dirty vb app that has a RichTextBox control on it. it has a single function; I pass it an ADODB.Field, which it places int eh...

  • RE: transform hand written data

    sounds like yet another outsourcing to India to save money

  • RE: Data type for Gender

    i typically use a char(1) with a check constraint to allow only two values:

    ie ALTER TABLE BLAH ADD GENDER CHAR(1) NULL CHECK (GENDER='M' OR GENDER='F')

  • RE: SQL ERROR

    I've seen this error in ADO when you stick a string into a varchar that is smaller than the string...ie sticka  30 character string into a varchar(20), and the ADO...

  • RE: Magic Table

    The magic tables are the virtual tables available in a trigger:

    ie the [INSERTED] and [DELETED] tables, which can be referenced within a trigger so that you can add additional logic...

  • RE: Design question (subclassing)

    i would do this with three tables: as new/differet items are added, if they cannot use an existing attribute to describe them, it is added to the lookup table.

    A similar...

  • RE: Surprising Problem

    could you have an uncommitted transaction that was created during testing, but never committed or rolled back?

  • RE: Is it possible to dynamically change Database properties?

    in a nutshell, yes; you can change anything dynamically.

    see sp_dboption in the BOL; also look in master and look at any of the stored frocs that start with sp_db or...

  • RE: Local variable as seed in an identity column

    while the table definition doesn't allow variables, the DBCC command to change the starting value does:

    declare @C1 int

    set @c1=99

    create table #sometable(id1 int IDENTITY(1, 1))

    DBCC CHECKIDENT( [#sometable],RESEED,@c1)

  • RE: Continuous SQL SERVER Errors

    this might help: i believe that error  Operating system error 21(The device is not ready.) encountered. means that the path to the device(in this case a log file) does not...

  • RE: Password Field

    see http://www.sqlservercentral.com/scripts/contributions/610.asp for the stored procs:

    create table ExampleTbl(Operator int , Password varchar(40) , AR varchar(40) )

    insert into ExampleTbl(operator,password,ar) values (1,dbo.RC4('realpass','seedstring'),'x')

    select Operator,dbo.RC4(password,'seedstring'),ar from ExampleTbl where Operator=1

    select Operator,dbo.RC4(password,'wrongstring'),ar from ExampleTbl where...

  • RE: Operating System Command Job step Default Directory

    i'd like to see the code of the job step, but i bet this will get you going in the right direction:

    Perform an action when a file exisits

    That's the...

  • RE: Page Access Error

    either access the page via http://localhost to see the real .NET error, or do exactly what the error message tells you to do...change web.config to have customErrors mode="Off"

    when customErrors...

  • RE: Operating System Command Job step Default Directory

    cant you just check for the existance of the file, or that the filesize is > 8 bytes or something before PKZIP is called?

    if the file doesn't exist or meet...

Viewing 15 posts - 13,246 through 13,260 (of 13,456 total)