Viewing 15 posts - 6,406 through 6,420 (of 7,597 total)
kapil_kk (8/30/2013)
ScottPletcher (8/29/2013)
ALTER TABLE dbo.tblemployeeADD ident int IDENTITY(1, 1) NOT NULL
Edit: Added "NOT NULL"
You are adding a new column with IDENTITY property and it works..
The thing is that we cant...
August 30, 2013 at 9:53 am
Float only takes 4 bytes to store if you specify a precision of 24 or less.
August 29, 2013 at 4:48 pm
WHY IS THE LEN OF THE FLOAT 4?!
It takes 4 bytes to store a float value (up to 24 digits).
August 29, 2013 at 4:28 pm
DOH, just realized, the proc should check for an explicitly specified schema name and parse out the names before adding brackets:
alter PROC [dbo].[sp_getrecords]
(
@TableName sysname
)
AS
declare @SchemaName sysname
set...
August 29, 2013 at 3:55 pm
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
Viewing 15 posts - 6,406 through 6,420 (of 7,597 total)