Viewing 15 posts - 10,201 through 10,215 (of 13,469 total)
if there is a trigger on your destination table, @@identity could return the identity from that other table instead of the one you inserted; that's why you need to use...
December 23, 2009 at 11:51 am
it's a tricky problem; if you give me a username and password, I can use any application i can get my grubby fingers on to connect with.
the easiest solution is...
December 23, 2009 at 11:06 am
I think the key is the expected output; if you can accept a single column with a string which contains the values, or do you still have to have up...
December 23, 2009 at 8:44 am
a key question is are their foreign keys tied to the current identitiy?
if there are, it makes it a lot harder, since you'd have to update those child foreign keys...
December 23, 2009 at 8:13 am
i'm thinking some overnight import/update process is failing; there's no "Activity record" or "Account Owner" as far as SQL is concerned; it really jumps out to me that some unattended...
December 23, 2009 at 7:43 am
looks like a business rule error in your application, not anything from SQL itself; I'd guess you have an app that is writing to the error log, instead of sya,...
December 23, 2009 at 7:23 am
i've seen this requirement before:
check out the Check Constraint example i made here, aptly named "ThereCanBeOnlyOne"
http://www.sqlservercentral.com/Forums/Topic789104-145-1.aspx
it uses a check constraint to make sure zero or one of the columns has...
December 23, 2009 at 6:46 am
a default sets the value of the column, so common sense would make you think of columns that cannot have the same value more than once.
i'd test it to be...
December 21, 2009 at 7:30 pm
Joe-420121 (12/21/2009)
The following procedure is OK?1. Create Table [backup12212009] with BIGINT Indentity
2. using SSIS export data from old table to [backup12212009]
3. Delete old table
4. Rename backup12212009
Can do as above?
if there...
December 21, 2009 at 1:01 pm
that is exactly why you'd want to not store a date as a number: 20091221 you can kind of read as a date, but what if the value is 20091250...
December 21, 2009 at 11:26 am
you'll want to use the GUI in SSMS;and change it to bigINT; the GUI will create a new table witht he proper structure, migrate the data, migrate all the foreign...
December 21, 2009 at 11:02 am
it depends on what your "number" is going to be;
SQL natively keeps the number of days since 01/01/1900:
select convert(decimal(12,0),getdate()) = 40167
select convert(decimal(12,4),getdate()) = 40166.5383
after the decimal point, it is the...
December 21, 2009 at 10:56 am
fill factor depends on the flavor of inserts, so it's not something that can use a rule of thumb/assumption;
for example, if the primary key of a table is date...
December 21, 2009 at 9:29 am
thanks for the input guys;
for my first pass of fixes, i used gvim, but it's not the kind of utility i'm used to...i prefer text editors that open multiple files,...
December 21, 2009 at 9:22 am
dates can seem tricky until you get used to them.
never convert a date to varchar or anything...always keep them in datetime .
this will give you the Monday of the current...
December 21, 2009 at 6:08 am
Viewing 15 posts - 10,201 through 10,215 (of 13,469 total)