Forum Replies Created

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

  • RE: insert an array of user data into database

    Do you want to pass an array? like exec  'ACJG,12547896,2006/01/01' comma or something seperated.

    Then your stored proc must be like this

    CREATE PROCEDURE add_dependent

    @incomming_array varchar(255)

    as........ 

    Working with arrays IMHO should be avoided...

  • RE: Splitting TB database

    IMHO. Depending on timelines etc. Doing it that way will mean that you have to attach the mdf. file twice and at 4 TB will take very long. Would it not...

  • RE: Truncate table with an EXISTS

    Hi

    You can use this

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[table01]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

    truncate table [dbo].[table01]

    Tip

    In EM highlight all of the tables and generate a script...

  • RE: User email address string length

    Just a shot in the dark...I need to see the tables in the database.

    However did you try to look at the tables in the database as each column in a...

  • RE: User email address string length

    Your post is not complete.....

  • RE: Get Curent Users PC Name / IP Address

    try select  HOST_NAME()

    Don't know how to get IP

  • RE: Views

    I would put the view in a stored procedure with an input parameter called @Show_links

    Then apply the following logic...

    If @Show_links =0

    then

    Select distinct......

    end

    If @Show_links =1

    then

    Select .........

    end

    I hope this helps

     

     

  • RE: sp_attach_db has too many arguments specified

    Also check your file extention .MDF  vs .NDF

  • RE: Bad Eyes

    I have also had problems with my eyes burning. Many years ago I went to an optometrist and he said that I had no problems with my eyes. He then gave...

  • RE: 64-BIT troubles with extended stored procedures

    Mike ,

    I now have the 3rd party dll problem. I don't know too much about the 64-bit platform and I need to register a 32-bit dll. There is no

  • RE: 64-BIT troubles with extended stored procedures

    Most days am am just stupid but today I am an idiot. My user is a SYSADMIN but after I read your post I simply gave my login access to...

  • RE: 64-BIT troubles with extended stored procedures

    Thanks. Seeing that it is a totally new rebuilt platform and new istallation with no funnies loaded. Maybe this is a MS bug? Will make a call for MS to...

  • RE: 64-BIT troubles with extended stored procedures

    Hi

    Thanks for your reply. We have SQL 64BIT SP4 loaded on a clean system and the xp is   master..xp_cmdshell.   

    We are running WOW but don't know how to workaround

  • RE: delete items not in file

    Hi,

    If the csv file is not to large and you have not imported it you could use the following....

    DELETE dbtable

    FROM dbtable AS d LEFT OUTER JOIN

    OpenRowset(

    'MSDASQL',

    'Driver={Microsoft Text Driver...

  • RE: delete items not in file

    HI, TRY THIS.....

    Before you run it maybe you can change the delete to select * to test.

    DELETE dbtable

    FROM         csvtable RIGHT OUTER JOIN

                          dbtable ON csvtable.id = dbtable.id AND csvtable.supplier =...

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