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. 
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 27, 2004 at 8:05 am
Actually this depends on the requirements, which haven't been stated yet.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 27, 2004 at 4:09 am
Thanks! Nothing beats first-hand information, Scott! ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 27, 2004 at 1:50 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. ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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....
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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 ![]()
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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....
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
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...
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 22, 2004 at 3:56 am
See, if this helps explaining in detail what noeld meant:
http://www.sommarskog.se/dynamic_sql.html
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 22, 2004 at 1:36 am
Have a look at DBCC CHECKTABLE in BOL.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 22, 2004 at 1:16 am
Viewing 15 posts - 1,381 through 1,395 (of 5,356 total)