Forum Replies Created

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

  • RE: declaring variable

    Hi Emma,

    sorry but it doesn't work. if I use your syntax i'm receiving

    'Incorrect syntax near '@comp_failed' probably because of the set keyword missing.

    if I add the set I'm getting...

  • RE: Search a DB

    thanks a lot

  • RE: Grouping Question

    I found the solution

    SELECT

    type_of_due = CASE

    WHEN datediff(day, date1, getdate()) <=30 then 'Normal 30'

    WHEN datediff(day,...

  • RE: Grouping Question

    I created this select statement, that is returning the values that I need. Only thing remaining is grouping

    SELECT

    CASE

    WHEN datediff(day,...

  • RE: Grouping Expression

    Thank a lot to both of you. Both solution work. Still Klaas-Jan I don't know if I really need the group option in your select statement. It's working also without...

  • RE: Performance Problem

    Thank's a lot.

  • RE: OutPut Parameter

    Apparently is has to do something with the cursor location.

    I changed the code to this

    set cn = Server.CreateObject("ADODB.Connection")

    set cmd = Server.CreateObject("ADODB.Command")

    set objrs = Server.CreateObject("ADODB.Recordset")

    cn.CursorLocation = adUseClient ' Uncomment this line...

  • RE: OutPut Parameter

    set cmd = Server.CreateObject("ADODB.Command")

    cmd.ActiveConnection = "Provider=SQLOLEDB;Server=local;Database=INTRA;UID=sa;PWD="

    cmd.CommandText = "sp_inventory_Class_click"

    cmd.CommandType = 4

    cmd.Parameters.Append cmd.CreateParameter("@clickclass",adChar,adParamInput,2, Label)

    cmd.Parameters.Append cmd.CreateParameter("@countnr",adInteger,adParamOutput)

    set objrs = cmd.Execute

    response.write cmd.parameters("@countnr")

  • RE: DTS Script

    I found the solution:

    Function Main()

    if DTSSource("COPY") <> "1" then

    Main = DTSTransformStat_SkipInsert

    ...

  • RE: Select statement

    Thanks!

    I was using where supplierid = null. 🙁

    Durug

  • RE: Update Statement

    I tryed the same statement and I got this error when I tryed in QA before posting this question

    String or binary data would be truncated.

    The statement has been terminated.

    So...

  • RE: SQL 7.0 SP3 and XML

    Thank you guys for your time. I will try tomorrow to see what can I do with it (my sql statements are pretty long to be added in the URL...

  • RE: DTS permission. Urgent Please!

    I found here a topic on the issue that I have:

    http://support.microsoft.com/default.aspx?scid=kb;en-us;Q252987

    When you execute a DTS Package from an ASP page, the package executes in the security context of...

  • RE: DTS permission. Urgent Please!

    Yes! The dtspkg is there. If the package and the asp file is on the same machine (X or Y) everything works well. The problem is only when I split...

  • RE: where clause

    Thanks a lot!!!

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