Viewing 15 posts - 6,931 through 6,945 (of 7,191 total)
I thought we were talking about foreign keys? At least that is what Darren's original question refers to. I'm afraid I don't understand how you can have a foreign key...
July 24, 2006 at 8:15 am
Gift
Am I understanding you correctly? Are you saying that, to create a foreign key, the name of referencing and referenced columns must be identical? Is this new to SQL 2005,...
July 24, 2006 at 1:45 am
Darren
I'm afraid I'm not familiar with the SET TO NULL option. But you can't have cascading deletes for the reason I mentioned above. And you may find that you still...
July 21, 2006 at 9:08 am
So I'm guessing you're getting the error message when you try to create the second foreign key constraint? I'm also guessing that you are using the following code to attempt to...
July 21, 2006 at 8:39 am
No, I don't think so. I think you've got some sort of circular reference going on. But without being able to see what the FKs do, I can't help you. ...
July 21, 2006 at 7:09 am
Darren
Do you have Query Analyzer? You can use the Object Browser to expand the database, then expand each table. Find the Constraints you are looking for, then right-click and this...
July 21, 2006 at 6:16 am
Can you not have the stored procedure insert directly into the DataBaseSizeReport table? Or you could have it insert into the same temp table and then copy the data from...
July 21, 2006 at 6:08 am
Darren
Please will you post the SQL to create those two constraints, and any other foreign key constraints inolving either of those two tables.
Thanks
John
July 21, 2006 at 4:10 am
This worked for me:
--Table
CREATE TABLE #t(dbname sysname, logsize decimal, logspace decimal, status INT)
--Insert
INSERT INTO #t(dbname, logsize, logspace, status)
EXEC ('dbcc sqlperf(logspace)')
--Results
SELECT * FROM #t
John
July 21, 2006 at 4:02 am
Claudia
Is 192.168.195.10 the publisher or the subscriber? Is it possible that you have a case-sensitivity issue here (maybe one of the tables is called Region and the other REGION)? You...
July 21, 2006 at 3:23 am
This is far too big a question to answer in a few lines. Make sure that you have enough memory and disks and that they are properly configured. Make sure...
July 21, 2006 at 2:04 am
Claudia
Sounds like you've got a table called Regions in the published database but not in the subscriber. Check the list of articles in the publication, and make sure that all...
July 21, 2006 at 1:59 am
Ade
I know this doesn't answer your question, but it may make your life easier. Why are you shelling out the SQL statement @Cmd to isql? Why don't you run it...
July 21, 2006 at 1:43 am
Danster
That would work, so long as your stored procedure's result set consists of only one row. I think my original idea for making sure you only update what you've just...
July 20, 2006 at 12:15 am
Dylan
Try this.
John
--Table CREATE TABLE #eh_batch_reference (eh_id_pk INT, eh_order_id_fk INT, eh_edi_reference VARCHAR(20), eh_batch_reference VARCHAR(20), eh_order_sent tinyint, eh_completed_date datetime) --Data INSERT INTO
July 19, 2006 at 4:37 am
Viewing 15 posts - 6,931 through 6,945 (of 7,191 total)