SQL Server

Technical Article

RE: unique values

  • Reply

Is this what you want? CREATE TABLE [dbo].[Test] ( [ColA] [int] NOT NULL , [ColB] [varchar] (5) NOT NULL , [ColC] [money] NOT NULL) GO ALTER TABLE [dbo].[Test] WITH NOCHECK ADD CONSTRAINT [PK_Test] PRIMARY KEY CLUSTERED ([ColA],[ColB]) GO

You rated this post out of 5. Change rating

2003-06-25

Technical Article

RE: How to print uniqueidentifier or binary data type?

  • Reply

The following works for me: select 'job_ID: ' + cast(job_ID as varchar(100)) from sysjobs Also the following works: declare @job_id uniqueidentifier select top 1 @job_id = job_id from sysjobs print 'job_ID: ' + cast(@job_ID as varchar(100)) Is it possible your variable @job_id is NULL? ie. you haven't fetched a value into it?

You rated this post out of 5. Change rating

2003-06-24

2 reads

Technical Article

RE: implement parent and child in build of materials “

  • Reply

Yogi, I believe you are on the right track with the proposed table structure. Of course, it needs some additional fields, but I suppose you only mentioned the important ones. If I read your structure correct you would have a BOM in your tblBOM, let's say bomId = CAR. In the tblBomProduct table, you would […]

You rated this post out of 5. Change rating

2003-06-24

Technical Article

RE: implement parent and child in build of materials “

  • Reply

NPeeters is right on when he says this will become difficult to manage...Anyway, that said, you could implement a structure like so: CREATE TABLE Product ( ProductID INT NOT NULL IDENTITYT(1,1) , ProductDesc VARCHAR(150) NOT NULL ) -- CREATE TABLE ProductDependent ( Product INT NOT NULL , Dependent INT NOT NULL ) -- CREATE TABLE […]

You rated this post out of 5. Change rating

2003-06-24

1 reads

Technical Article

RE: implement parent and child in build of materials “

  • Reply

OK this is the nub of Manufacturing control systems. You have to make a seperation in your mind between products and Bills Of Material (BOM's) You're most of the way there in identifying that you need a BOM table. You must also cater for the fact that a Product could have more than one BOM […]

You rated this post out of 5. Change rating

2003-06-24

1 reads

Technical Article

RE: Best practice when to use an index

  • Reply

If I understand things correctly, using an index is at least 2 reads - one (or more) for the index and one for the page containing the data. If this is right, then it is only worth having an index if the whole table is more than 2 data pages. The actual number of rows […]

You rated this post out of 5. Change rating

2003-06-24

1 reads

Technical Article

RE: Service Pack 3a on Cluster Environment

  • Reply

We have had many many problems with service packs and clusters. We manually apply the service pack to each node. There is a known issue with service packs files don't get copied over to the second node at all. HP support should have articles on this big time. If you do a search you will […]

You rated this post out of 5. Change rating

2003-06-23

Technical Article

RE: Differences in Data between Replicated Database

  • Reply

If you can identify the rows, you could manually do the inserts/deletes to the subscriber, then update all affected rows on the subscriber to let the changes propagate. Are you sure the transactions aren't still queued in distribution? Andy http://qa.sqlservercentral.com/columnists/awarren/

You rated this post out of 5. Change rating

2003-06-23

Technical Article

RE: Rounding Problem

  • Reply

Not answering the question, but the concept is too cool! May be my inexperience, but I've not seen a numbering system like this before. Is there an official name for this. Twelvish?

You rated this post out of 5. Change rating

2003-06-20

1 reads

Blogs

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers