Forum Replies Created

Viewing 15 posts - 196 through 210 (of 530 total)

  • RE: Query runing slow

    Could this be a networking problem? Maybe your testserver1 has a slower connection for some reason.

    First of all you can check response times using PING. Another possible issue is discovery...

  • RE: Variable Issue

    You want something like a wildcard to match filenames. Don't think that is possible with BULK INSERT.

    The only way I can think of is using xp_cmdshell, checking if a file...

  • RE: Doing Short Circuiting in WHERE clause

    Just reread your question, if you want to do the opposite, meaning that you pass in parameters for FirstName and LastName, you can use the same construct :

     
  • RE: Doing Short Circuiting in WHERE clause

    Not exactly using CASE, but this should do the trick :

    
    
    SELECT *
    FROM MyTable
    WHERE IsNull(FirstName, <Name to look for>) = <Name to look for>
    AND IsNull(LastName,...
  • RE: Why is SQL Server ignoring me?!

    If you 'add' two values of different data type, SQL Server will convert one of them so they are both the same.

    I don't know the exact reason why SQL Server...

  • RE: many login and logout

    If you are 'sure' that this login is not allowed, try blocking the user. Someone is bound to start complaining... Hope it's not your boss

  • RE: Inner Joins

    Yep. Mind you, if you do not include a join condition (ON ...) that binds table 1 and table 2, the data from table 1 will be duplicated for each...

  • RE: Please help me!!

    Duplicate thread!! Solution can be written in a single select statement :

    
    
    SELECT
    (DATEDIFF(d, <start date>, <end date>)/7) +
    CASE WHEN DATEPART(dw, <start date>) = 6
    ...
  • RE: IF's and INNER JOINS

    Just a small thingy in the query of jpipes. You need to switch the Count(*) = @counter to @counter = count(*)

  • RE: Conditional DELETE

    I would try to import the Excel sheet in a (temporary) table and then do the join that way. Probably offers the best performance.

    If that's not possible, you could use...

  • RE: how to pass result from a Stored Procedures

    You can also use OUTPUT parameters for the stored procedure. This allows you to 'return' any datatype and to return more than one variable.

    
    
    CREATE PROCEDURE OutputVars
    @Output1...
  • RE: Please Help me!!!

    Calculate the number of days between them and divide that number by 7.

    Next, you will have to do some additional math to check if your interval starts / ends on...

  • RE: many login and logout

    Is there a VB application connecting to the server? Or maybe a developper working on one?

    It is not all too uncommon to start and stop a connection for each database...

  • RE: Using a variable value as an object name

    Using the dynamic SQL Statement is the only solution.

    Be careful when using this technique, since the execution plan of the statement will not be cached. This will impact the performance...

  • RE: join help

    I don't know exactly what you are trying to do, but it seems to me this is normal behaviour, due to your data.

    If we are talking about one ccr_name in...

Viewing 15 posts - 196 through 210 (of 530 total)