Viewing 15 posts - 6,226 through 6,240 (of 13,460 total)
in SQL, that's the IDENTITY() property;
you can script it like this:
CREATE TABLE MYTABLE(
ID int IDENTITY(1,1) NOT NULL PRIMARY KEY,
OtherCollumns varchar(30 )
if you have SSMS for SQL Express, you can design...
Lowell
December 13, 2011 at 7:56 am
a visualization and explanation form a forum post on the same subject:

Lowell
December 13, 2011 at 7:54 am
Al the SQL Browser Service is what makes a SQL instance "visible", but that is not required. i don't think it's included in express versions, anyway.
It sounds like you already...
Lowell
December 13, 2011 at 7:47 am
we have an app here which supports either Oracle and SQL Server as the behind the scenes DBMS.
I'll be the first to say I do not know how to tune...
Lowell
December 13, 2011 at 5:42 am
Dev and John i thought we might be overthinking the complexity of the original post, and wanted to throw the view possibility out there as well;
It seemed to me he...
Lowell
December 12, 2011 at 6:49 am
i'd recommend forgetting about putting the count in the table.
instead, create a view that is uesed to calculate the count based on a join; then the count is correct every...
Lowell
December 12, 2011 at 6:33 am
dogramone (12/11/2011)
Lowell
December 11, 2011 at 8:15 pm
look up SQL server ranking functions, specifically ROW_NUMBER() and the OVER(PARTITION BY) predicate; that can do it, as well as
RANK and DENSE RANK;
if it was just an arbitrary #...
Lowell
December 10, 2011 at 8:16 am
richardkel (12/10/2011)
In my case I have an ERP system that needs to supply a plant control system with customer, pricing and order information. This information needs to get to...
Lowell
December 10, 2011 at 8:03 am
search the scripts section for "ProperCase" or "InitCaps" foir other examples, there's some out there that look for things like "O'Brian" and "St.James" or "David-Jones".
here's just one of...
Lowell
December 9, 2011 at 2:45 pm
Pam do you youse a calendar table for the on off entries, or just a schedule assumption (ie biz hours mon-fri);
i tested the concept with my calendar table, no...
Lowell
December 9, 2011 at 2:33 pm
and post upgrade, to address how statistics are used differently in the updated sql engine:
1. rebuild all indexes.
2. UPDATE STATISTICS [EachTableName] WITH FULLSCAN
nothing worse than to upgrade to a monster...
Lowell
December 9, 2011 at 1:12 pm
just saw you said no xp_cmdshell;
in that case, unless you can install a CLR, theres no way to do this from TSQL. xp_cmdshell is the only thing i know that...
Lowell
December 9, 2011 at 12:56 pm
a very bassic example using the "md" command for make directory;
note in this example, the parent "Test" directory needs to already exist.
DECLARE @Results table(
ID int identity(1,1) NOT NULL,
TheOutput varchar(1000))
CREATE...
Lowell
December 9, 2011 at 12:52 pm
create them on the server, based on a query?
what if they already exist?
what would the query you run look like? (is it really Select myname from mytable?) what columns/data...
Lowell
December 9, 2011 at 12:40 pm
Viewing 15 posts - 6,226 through 6,240 (of 13,460 total)