Viewing 15 posts - 1,381 through 1,395 (of 5,356 total)
A look at the BOL chapters that have been mentioned here, should help you figuring out, what you did wrong with SCOPE_IDENTITY() and why this didn't work for you.
December 28, 2004 at 1:49 am
I don't know VB.Net, but see if this helps a bit:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad_1_server_1zuc.asp
December 27, 2004 at 8:05 am
Actually this depends on the requirements, which haven't been stated yet.
December 27, 2004 at 4:09 am
There should be no need to use something like DATEADD. Since DATEPART returns an INTEGER you can simply do:
SELECT
DATEPART(SECOND,GETDATE())+1
to add a second. ![]()
December 27, 2004 at 1:15 am
< vbg > Actually I'm missing Kenneth's usual 'It depends...' comment. ![]()
IIRC, read IDENT_CURRENT in BOL. There's an example of when to use what....
December 27, 2004 at 1:10 am
Thanks for the explanations! Seems like a very long weekend for Scott Cate
I re-registered and hope they will be back soon.
December 27, 2004 at 12:41 am
This is not directly related to Java, but see, if it helps:
http://www.microsoft.com/resources/documentation/sql/2000/all/reskit/en-us/part3/c1161.mspx
December 22, 2004 at 2:44 pm
There is no black or white answer to this question. That really depends on what you want to do with these columns. For monetary units and calculations certainly DECIMAL is...
December 22, 2004 at 2:15 pm
I like this idea, though for obvious reasons won't maintain one myself. If you decide so, consider establishing a RSS feed for them ![]()
December 22, 2004 at 2:04 pm
Here we go:
create database test_me
go
use test_me
go
declare @i int
declare @stmt nvarchar(4000)
create table t_master(c1 int primary key default 1)
set @i=1
while @i<=1009
begin
set @stmt = 'create table t_child'+cast(@i as nvarchar)+' (c1 int foreign key...
December 22, 2004 at 12:17 pm
Sir, yes, Sir! This is understood! ![]()
Just made a small script to test this. All tables and references will be created. No error message....
December 22, 2004 at 4:42 am
Damn, didn't think of this. Never tried that before with that much FK's, but this could very well be the reason. But what really interesting is, how did you manage to create...
December 22, 2004 at 3:56 am
December 22, 2004 at 1:36 am
Viewing 15 posts - 1,381 through 1,395 (of 5,356 total)