Forum Replies Created

Viewing 15 posts - 6,286 through 6,300 (of 7,187 total)

  • RE: table transferring

    Still need more information. The tables that you want to copy - are they cleared down and repopulated every day? Or do they have new rows added every...

  • RE: table transferring

    Replication? DTS? There's a couple of options for you, but we'll need a bit more information before being able to provide any solid advice.

    John

  • RE: Create a batch file to run the sql statement

    Are you asking how to pass a parameter to a batch file, or how to connect to SQL Server from a command prompt? If it's the latter, look up...

  • RE: Copying table

    There are lots of options in that dialog box, one of which is to script out the primary key constraint. Have a play with those options, and see if...

  • RE: Copying table

    I'm not clear about whether your table already exists in the second database and you just want to copy the data. If so, just use DTS or INSERT INTO...

  • RE: Copying table

    There must be different degrees of "exactly the same" otherwise you wouldn't need to do this...

    Seriously, though, just script out the table and then run the script against the second...

  • RE: select query with criterial in multi column

    Frances

    If you take the second "as [Name]" out of your second query, it should work.

    John

  • RE: Variable in Select

    If you declare a variable, it is only visible in the context of your connection. If you then use EXEC @select_var to run some code that contains the name...

  • RE: SELECT Statement Qst.

    Sandy

    It's doing what you ask it to. SELECT * means "select all columns". SELECT 'x' means "select the value 'x'" (regardless of what data is actually in each...

  • RE: Increment non identity column in INSERT query

    Yes, just create a temporary table with an identity column and insert from table A into that. Then find the max ID value from table B and insert into...

  • RE: DATE TIME Issue

    Kiruba

    Because you've converted your dates to varchar, it's comparing string values and not date values. In those circumstances, '03/10/07' will always be greater than '01/01/08'.

    John

  • RE: Newsletter Changes

    I agree with Mattie. Please can we go back to the old way of having threads only appear on the newsletter once. That way readers don't have to...

  • RE: Complex (to me) SQL Query statement help

    Joe

    That looks as if it will fit the bill.  Unfortunately, I'm off home now and I have three weeks out of the office, so I probably won't be able to...

  • RE: Complex (to me) SQL Query statement help

    Joe

    LOL indeed!  t does stand for table, but as I explained, I could have used any other letter(s) instead.

    John

  • RE: Connection Broken when a specific column is selected

    Rohit

    This information about your error is available in Books Online.  Have you checked your error message and run DBCC CHECKDB?

    A

    system assertion check...

Viewing 15 posts - 6,286 through 6,300 (of 7,187 total)