Viewing 15 posts - 5,476 through 5,490 (of 6,036 total)
BULK INSERT
March 20, 2006 at 6:55 am
If it's uniqueidentifier then it's not varchar, it's binary(16).
Treat it as it is, not as it seems to you.
P.S. Substring works for binary strings as well.
March 20, 2006 at 6:51 am
Did you actually check it? Did some tests?
If this table is more comfortable to read for you, it does not mean it always faster to operate for SQL Server.
March 20, 2006 at 6:48 am
from OPENQUERY(MOTHRA,
'select *
from MOTHRA.INFOED_PEOPLE where mothraid not in (''00350077'', ''00072066'')') a
March 19, 2006 at 9:22 pm
BOL:
Copies a data file into a database table or view in a user-specified format.
BULK INSERT [ [ 'database_name'.] [ 'owner' ].] { 'table_name' FROM 'data_file' }
[ WITH...
March 19, 2006 at 3:55 pm
Use ROWTERMINATOR = 'DN:' in BULK INSERT
March 19, 2006 at 2:37 pm
Why you need temp table at all?
Create FUNCTION GetNumberOfPostsInForum(@ForumId int)
returns int
as
begin
declare @NumberOfPostsInForum int
select @NumberOfPostsInForum=count(*)
from dbo.GetTopicsOfForum(@ForumId) T
INNER JOIN Posts ON Posts.TopicId= T.TopicId
return @NumberOfPostsInForum;
end
March 19, 2006 at 2:29 pm
Because char(2) definitely not enouph for country.
What will code "AR" say to you about name of the country?
And if a person lives in USA it does not mean this person...
March 18, 2006 at 2:22 pm
So, you do have separate table for states anyway.
And for referential integrity you must have FK constraint to State in Person table.
Because you limit capabilities of your system only to...
March 17, 2006 at 8:23 pm
> It is perfectly acceptable to have the state name in the person record, instead of a stateid
Will you have list of states in your database?
Will you allow to enter...
March 17, 2006 at 9:28 am
What about me?
I was not born in any of states.
Can you make a record about me in your system?
March 17, 2006 at 9:01 am
My example is right.
You were trying to assign Custome Number to Person entity.
I told that Customer Number belongs to another entity.
Now you agree that Customer Number is a property...
March 17, 2006 at 8:42 am
Point is:
changing of Customer Number or becoming a VIP does not make you another Person. Your PersonId suppose to stay the same in any system.
And if you update a record...
March 17, 2006 at 7:57 am
Gender - yes, No.1;
customer number - what is this? Customer of what?
marital status - how many of them?
social security number - it's not a personal property, it's reference from...
March 17, 2006 at 7:29 am
Viewing 15 posts - 5,476 through 5,490 (of 6,036 total)