Viewing 15 posts - 6,421 through 6,435 (of 7,608 total)
Sean Lange (8/29/2013)
ScottPletcher (8/29/2013)
create PROC [dbo].[sp_getrecords]
(...
August 29, 2013 at 3:35 pm
I was thinking of creating a script file and calling that from a stored procedure on every database?
Yes, that should work, although it's a lot of extra work and...
August 29, 2013 at 3:32 pm
Jay Purvis (8/29/2013)
Especially when the builds were released only a month...
August 29, 2013 at 3:29 pm
if my statement that I started with begin Tran errors out, will that transaction stay open till I do rollback or commit?
Yes. Once a transaction begins, it must either...
August 29, 2013 at 3:26 pm
Is it possible?
No.
You can't make an IDENTITY skip a specific value(s).
If you start at -1 and increment by 1, there is always the possibility you will get a 0 in...
August 29, 2013 at 3:19 pm
Here's an idea: let the proc get the schema name for you :-), then you don't even have to type it in at all!
create PROC [dbo].[sp_getrecords]
(
@TableName sysname
)
AS...
August 29, 2013 at 3:10 pm
Row selection is controlled by "only" 4 tables:
FROM
...
August 29, 2013 at 9:41 am
ALTER TABLE dbo.tblemployee
ADD ident int IDENTITY(1, 1) NOT NULL
Edit: Added "NOT NULL"
August 29, 2013 at 9:22 am
Isabelle2378 (8/27/2013)
August 27, 2013 at 4:13 pm
Sean Lange (8/27/2013)
Isabelle2378 (8/27/2013)
My tables do not have primary keys and as I understand it, transactional replication requires primary keys so my question is: Has anybody found a 3rd...
August 27, 2013 at 3:45 pm
You might need to use ROW_NUMBER() instead, if there is any chance of a gap/missing number in the EntryID column (note that by definition identity columns can have gaps in...
August 27, 2013 at 1:26 pm
Hmm, no point in maintaining indexes for 11 months in which they are not being used.
But 30 days? That's a different q. Typically it depends on the size...
August 27, 2013 at 1:23 pm
In Oracle, a TRUNCATE indeed cannot be rolled back. [Oracle uses a fundamentally different way of handling table allocations that would make it essentially impossible for Oracle to rollback...
August 27, 2013 at 1:18 pm
GilaMonster (8/27/2013)
davidandrews13 (8/27/2013)
August 27, 2013 at 1:12 pm
mahavidhya24 (8/26/2013)
L TRIM removes all the white space from the starting of the pattern and R TRIM removes all the white space at the end of the pattern.:-)
Sorry, but that's...
August 26, 2013 at 3:45 pm
Viewing 15 posts - 6,421 through 6,435 (of 7,608 total)