Forum Replies Created

Viewing 15 posts - 211 through 225 (of 291 total)

  • RE: Identity Insert

    Just thought I would check, you do know that only one table can have the IDENTITY_INSERT option set to ON during any given users session don't you?

    Also if you disconnect...

  • RE: Identity Insert

    Oops!  I made the same mistake as Jeff in his post.  I got distracted by trying to find how to identify the identity columns and did not follow through on...

  • RE: Identity Insert

    I thought this an interesting enough problem that I went and searched for an answer and found a post by Jeff Moden at http://p2p.wrox.com/topic.asp?TOPIC_ID=52760 that accomplishes what you want:

    SELECT so.Name...

  • RE: delete of .mdf files

    Ok, I have got to know, why would you want to, or need to?  Just curious what circumstances would prompt this necessity.

    James.

  • RE: URGENT HELP

    I've looked through your previous posts and your questions are all over the place, but some appear to be more than typical homework and could be problems encountered at work,...

  • RE: Code to populate an inventory transactions table

    --Assuming you have "inventory tables similiar to the following:

    --(you should post DDL for all tables involved when looking for this type of help)

    declare @invItems_ table (itemNo_ int, itemName_ varchar(20))

    declare...

  • RE: Spanish Day Name Of Week from given date in sql server 2005

    Here is a quick example that I have tested using a "datename" table.  You would of course want to add keys, indexes, etc to the table, but, well you get...

  • RE: Spanish Day Name Of Week from given date in sql server 2005

    The easiest way is with "datepart" and a case statement, as in the following:

    select

    (case datepart(dw

  • RE: Select...Into and Identity columns problem

    I just saw your followup post.  As far as I know the "Select * into ..." has always copied the definition of the original columns to the new table.  If...

  • RE: Select...Into and Identity columns problem

    Anders is correct, one of the columns in the original table your did the "select * into .." from had an identity column.  The properties of that column were transfered...

  • RE: Date ranges: per calendar week

    Thanks for the feedback Jeff.  I enjoy working out some of the T-SQL problems posted in the forum.  In addition to keeping in practice, I also get to see alternative...

  • RE: Access to SQL Server Query Issue

    You have to understand what actually occurs when doing this type of update.  You original update used a "from" line with an inner join.  This results in a "JOINED" (composit)...

  • RE: BCP error -Unable to open BCP host data-file

    Did you open the permissions on the output file location?  Just trying to eliminate the obvious first.

    James.

  • RE: Access to SQL Server Query Issue

    If table A has a 1 to many relationship with table b, then your first query is actually updating each row in table A that has multiple relationships in table...

  • RE: Store proc

    Does AppointmentDate contain time information, or is the time portion all "zeros"?  If it has time values then your query will never return anything.  See the "second" select statement in...

Viewing 15 posts - 211 through 225 (of 291 total)