Forum Replies Created

Viewing 15 posts - 346 through 360 (of 377 total)

  • RE: one value from a dynamic sql

    http://support.microsoft.com/default.aspx?scid=KB;EN-US;q262499

    At the bottom is one of their code samples, that I think is most helpful.

    Russel Loski, MCSD

    DECLARE @SQLString NVARCHAR(500)

    DECLARE @ParmDefinition NVARCHAR(500)

    DECLARE @IntVariable INT

    DECLARE @Lastlname varchar(30)

    SET @SQLString = N'SELECT @LastlnameOUT = max(lname)

                      ...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: How to use --> EXIST/Not Exist

    Here is one thing to consider:  check the ANSI_NULLS settings for the database.

    This setting is described in Database Options in books online.

    Russel Loski, MCSD

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Text in Access is nvarchar in SQL!??!??

    My ritual when moving Access tables to SQL Server is to first run the import wizard in SQL Server.  Then using Enterprise Manager I write the SQL for the tables. ...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Why does query run so long?

    What are you trying to do with this query?

     

    Russ

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Why does query run so long?

    Try outer join syntax?

     

    SELECT distinct tr.Prcs_dte

    FROM tbl_Tracking tr left outer join Acct_Stats asts

    on tr. prcs_dte = asts. prcs_dte

    where asts. prcs_dte is null

     

    This may work faster.

    Russel Loski, MCSD

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: Two field DISTINCT combination

    I'm not sure I understand what you are trying to do.  The query you have will return a list of unique [page] for all of the records since by definition...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: No errors and no data either

    There is one piece that is not in the exception log file (I think that is what you are talking about):

    The column sysdtssteplog.progresscount contains the number of records that were...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: loading dts package through command line

    Is your backend script different from VBScript?

    There is some scripting tool that will allow you to run visual basic script from a command line.  You could also run this as...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: loading dts package through command line

    I have done this using VB code.  I created this code in Access VBA after setting a reference to Microsoft DTS Package.

    Dim pkg As DTS.Package2

    Set pkg = New DTS.Package2

    pkg.LoadFromStorageFile "

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: XML parsing error:

    I think that this was longer than 4000 characters.  I changed the type to

    DECLARE @l_XMLDoc_Nva  VARCHAR(4000)

    The errror suggested that the last element closers were begin cut off.

    I changed it to

    DECLARE...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: No errors and no data either

    You can log the package application.  I believe that it will record the number of records affected.

    The Log the package option is set by FIRST DON"T HAVE ANY OBJECT SELECTED...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: XML Parsing into SQL Server

    I am more comfortable using OPENXML in a custom SP.  But that is more because it is all I have tried.

    I have not found a nice way to use DTS...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: abt IN operator

    The first item is looking for a FK_ClientID that has the form:  '!2OiC','!3zje'

    It treats the variable as one item in that list.  If you had "in (@x, @x1, @x2)" then it...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: OPENXML Issue

    To be honest, I have no clue what is going on.  By going to a temp table, you eliminate one unknown.  Let's say that going to a temp table doesn't...

    Russel Loski, MCSE Business Intelligence, Data Platform

  • RE: OPENXML Issue

    Just to reduce the variables in this, could you use a temporary table to hold the id that you currently have in the doc?  Move the OpenXML out and replace...

    Russel Loski, MCSE Business Intelligence, Data Platform

Viewing 15 posts - 346 through 360 (of 377 total)