Viewing 15 posts - 12,646 through 12,660 (of 14,953 total)
First, it is possible to modify an existing column to make it an Identity. That might solve your problem easily.
Second, to help you with the trigger, we would need...
July 24, 2008 at 9:32 am
You might want to take a look at ApexSQL Diff (www.apexsql.com), or the RedGate Compare and Data Compare products.
I use Apex's product for migrating structure, code and data between QA...
July 24, 2008 at 9:29 am
To drop those indexes, you first need to drop the PK constraint. In Management Studio, you will find those under Keys, under the table. Of course, you'll probably...
July 24, 2008 at 8:18 am
You can have the trigger test for updated rows where the ID (or other PK) is the same, but other columns (even just one) are not the same. That...
July 24, 2008 at 8:15 am
I always recommend doing pivot operations in a front-end application, like Excel or Reporting Services, instead of in SQL. They do it better, more easily, and faster.
July 24, 2008 at 8:12 am
Is this something you will be doing once, or doing repeatedly?
If once, the Import/Export wizard will be fine. If repeatedly, then you'll need to either save the import package...
July 24, 2008 at 8:09 am
MrBaseball34 (7/24/2008)
AND (((@PaymentDtTmStart IS NULL)
AND (@PaymentDtTmEnd IS NULL))
...
July 24, 2008 at 8:00 am
You'll have to add the primary key to a Where clause in the trigger.
July 24, 2008 at 7:59 am
(Your sample data doesn't seem to match your requirements. Take a look at the dates where the value is 6, they go 15, 17, 20, but you have a...
July 24, 2008 at 7:56 am
Michael Earl (7/23/2008)
When did everyone become so efficient that they started using acronyms or abbreviations for everything?Oh, sorry...
WDEBSITTSUAOAFE?
Hey, the Romans started it! It's all their fault, with their "SPQR"...
July 24, 2008 at 7:48 am
I'm looking at the BOL data on DDL triggers, and I don't see Truncate Table as one of the actions. Am I overlooking it?
July 23, 2008 at 2:16 pm
Steve Jones - Editor (7/23/2008)
Worse case, you set...
July 23, 2008 at 12:45 pm
Wouldn't know about a bug in the driver. I use temp tables for that kind of thing. It's not like I'm expecting SQL Server to manage transactions in...
July 23, 2008 at 11:39 am
I have SQL Server Agent send e-mails based on whether the job succeeded or failed. I have them go into different folders in Outlook based on the server and...
July 23, 2008 at 11:38 am
Viewing 15 posts - 12,646 through 12,660 (of 14,953 total)