Forum Replies Created

Viewing 15 posts - 301 through 315 (of 463 total)

  • RE: Not able to login to SQL 2005 Studio

    deepzzzz (10/15/2009)


    The error is

    Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest. (mscorlib)

    That looks...

    ---------------------------------------------------------------------------------

  • RE: sp_fileexist

    The answer to this really is to have the service run under a domain account with the correct privileges to access the UNC path.

    Thanks.I am with Howard on this.

    ---------------------------------------------------------------------------------

  • RE: sp_fileexist

    BrainMan (10/15/2009)


    Yea, the CLR was my next stop. I haven't tried that yet. Can the CLR play outside the SQL sandbox?

    Yes I think so. By setting the Permission level to...

    ---------------------------------------------------------------------------------

  • RE: Convert Varchar to Int

    I guess the values in the THEN clause should all be of same data type!

    Here, first three case you are assigning integer values (1,2 and 3) and the last one...

    ---------------------------------------------------------------------------------

  • RE: datetime stored as integer, please help!

    Thats because you are mixing both of our suggestions!

    try this in your where clause

    where finalcalledpartynumber = ('386') OR callingPartyNumber = ('386')

    AND dateTimeOrigination >= @StartInt

    AND dateTimeOrigination<= @EndInt

    ---------------------------------------------------------------------------------

  • RE: datetime stored as integer, please help!

    GSquared (10/15/2009)


    One reason I worked it the other direction is that it gets rid of the functions in the Where clause. That's usually a good idea for performance. ...

    ---------------------------------------------------------------------------------

  • RE: datetime stored as integer, please help!

    ohh sorry, dint see Gsquared's response!

    ---------------------------------------------------------------------------------

  • RE: datetime stored as integer, please help!

    Sorry if I've not understood ur requirement, but does this work?

    drop table t1

    Create table t1 (tim int, rem varchar(100))

    select 86400

    INSERT INTO t1 VALUES (1251781074, 'day1')

    INSERT INTO t1 VALUES (1251781074...

    ---------------------------------------------------------------------------------

  • RE: Not able to login to SQL 2005 Studio

    and the error is?

    ---------------------------------------------------------------------------------

  • RE: sp_fileexist

    BrainMan (10/14/2009)


    I've probably answered my own question. Looks to me like it's due to the fact that SS 2005 is running under "LocalSystem", and LocalSystem really cannot see the outside...

    ---------------------------------------------------------------------------------

  • RE: How to copy datas into temp tables?

    Is it possible to paste your query here please?

    ---------------------------------------------------------------------------------

  • RE: How to copy datas into temp tables?

    Requirement is not clear as such.. but is this what you are looking for?

    SELECT <Your coulmns....n>

    INTO #tableB

    FROM TableA

    ---------------------------------------------------------------------------------

  • RE: Select records if a MAX() condition is true in a seperate table

    Sorry if I've not understood your requirement clearly, but is this what you are looking for?

    SELECT * FROM

    (SELECT *, ROW_NUMBER() OVER (PARTITION BY Customer_ID ORDER BY SEQUENCE_NO desc) AS...

    ---------------------------------------------------------------------------------

  • RE: Pls Help ....Script to List the Database Objects With Specific Keyword

    I guess you are looking for this?

    Select * from sysobjects

    Where id in (Select id from

    syscomments Where text like '%urcolumn%')

    not sure if it works on 2000 as i dont...

    ---------------------------------------------------------------------------------

  • RE: Doing a subselect from a temporary table

    your welcome 🙂

    ---------------------------------------------------------------------------------

Viewing 15 posts - 301 through 315 (of 463 total)