Forum Replies Created

Viewing 15 posts - 46 through 60 (of 74 total)

  • RE: Creating a Column and setting a default value

    You have to create a Default object, then bind it to an appropriate Column object using the Default object's BindToColumn method. I quote from BOL:

    To create a SQL Server...

  • RE: Convert columns into rows

    Steve's solution will (of course) work but I would question whether your specified output set is actually what you want. As stated, you are losing information about which figure corresponds...

  • RE: Help using TOP n

    Not sure why people are offering examples with sysobjects etc. What you want here is just a correlated subquery:

    Assuming View A has columns PersonName, PersonID

    View B has columns PersonID, DiaryEntry,...

  • RE: SQL Query Analyzer Results Different Than Clients

    If you just want VB to display a certain number of decimal places, you should use something like

    Format(variable, "0.0000")
  • RE: Dynamic SQL vs. Stored Procedure

    Assembler is faster than VB. Which would you rather use to code a Windows app?

     

  • RE: Think like a DBA

    Personally, I would prefer the NULL conversion to be done in a data access layer of some kind - after all, who is to say there will never come a...

  • RE: splitting 1 field into multiple fields

    You need to decide what your business rules dictate should happen. For instance, with Mr E G Ford, what do you want to end up with in firstname? 'E', and throw...

  • RE: Query Help

    noeld, your solution has produced the correct answer this time but is assuming properties of the data that we don't know for sure - with the sample data shown it...

  • RE: Best way to check for the existence of a record

    'Cheating' way: Define a unique index that includes all columns. Insert your records one by one. When you get a 'unique index constraint violated' error, ignore it and go on...

  • RE: Conditional Statements in WHERE Clauses

    I would be interested to see the relative performance of the article's method versus the following approach, which is equally powerful but (I think) can be optimised much more easily...

  • RE: Error in a SQL Server query ?

    That is exactly the problem. The 'ON' clause has no knowledge of the aliasing done on other tables.

    I did have a lengthy rewrite in progress here, based on the general...

  • RE: Trigger timing issue

    Conceptually I am not sure there is any way to do this. After all, the point of an update trigger is to make a certain set of operations appear to...

  • RE: Selecting multi values from Views in a join? help!

    I know you have an answer; I would just like to say that on purely aesthetic grounds I would prefer

    select A.pId from tblPrp A

    inner join FacilityText F1 on A.pId =...

  • RE: Exists or Not Exists that is the question

    For simple cases the db engine might well build the same execution plan for two syntactically different T-SQL statements that arae semantically equivalent. But in general it takes experimentation with...

  • RE: ALL-IN-ONE BOX

    Oh sure, if this is a development 'play' server go right ahead and put everything on it - I'm sure I'm not the only developer out there whose machine is...

Viewing 15 posts - 46 through 60 (of 74 total)