Viewing 15 posts - 6,286 through 6,300 (of 7,187 total)
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...
October 5, 2007 at 7:31 am
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
October 5, 2007 at 7:03 am
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...
October 5, 2007 at 4:34 am
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...
October 4, 2007 at 7:59 am
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...
October 4, 2007 at 7:28 am
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...
October 4, 2007 at 7:07 am
Frances
If you take the second "as [Name]" out of your second query, it should work.
John
October 4, 2007 at 6:53 am
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...
October 4, 2007 at 6:41 am
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...
October 4, 2007 at 2:09 am
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...
October 3, 2007 at 4:47 am
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
October 3, 2007 at 4:00 am
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...
October 1, 2007 at 6:04 am
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...
September 7, 2007 at 8:56 am
Joe
LOL indeed! t does stand for table, but as I explained, I could have used any other letter(s) instead.
John
September 7, 2007 at 8:02 am
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...
September 7, 2007 at 6:58 am
Viewing 15 posts - 6,286 through 6,300 (of 7,187 total)