Viewing 15 posts - 46 through 60 (of 90 total)
Common issue understanding the ways of the Foreign Key.
Every now and then if I haven't done one in months... I gotta go look!
Now which way does this thing go? ...
May 13, 2008 at 6:28 pm
Aha, I think I understand now. How about this...
SELECT ParcelID from Field_Data where ParcelID not in
(SELECT ParcelID from GIS_Data)
Are any rows returned? Do all of the records...
May 13, 2008 at 6:18 pm
More for you Paul....
The script I built was just so I can conceptually show you a simple example with your names. Run this script against a test blank test database.
It...
May 13, 2008 at 5:44 pm
Hi Paul,
I guess this comes down to the guts of a Foriegn Key. What you are saying in your design is that you don't want any records in the...
May 13, 2008 at 5:36 pm
A primary key is not needed, but a unique constraint at minimum.
CREATE TABLE GIS_Data
(ParcelID int)
CREATE TABLE Field_Data
(ParcelID int)
INSERT into GIS_Data
select 1 union
select 2 union
select 3 union
select 4 union
select 5...
May 13, 2008 at 5:16 pm
9004 is a corrupted log file. See http://msdn.microsoft.com/en-us/library/aa337407.aspx
You may try...
move your .ldf file out to a temp directory.
IN Management Studio right-click> attach > add you .mdf file
Remove the log...
May 13, 2008 at 4:52 pm
I borrowed a bit of logic from Pinal Dave http://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/
It will generate a random startdate and enddate between a range of dates. So in this example, setting @DateRangeStart to...
May 13, 2008 at 3:56 pm
The best QotD's are the one's that cause such outrage! Just think of this... these contoversial questions cause us all to go investigate, research, etc. Personally, you can...
April 24, 2008 at 12:30 pm
Found it! these folks ran accross the same issue. Looks like taking SQL resource offline from cluster administrator first does the trick.
http://www.sqlservercentral.com/Forums/Topic485250-357-1.aspx#bm485257
April 23, 2008 at 1:21 pm
What a puzzle! And I can't seem to find anything about it documented anywhere. Sort of a catch-22 right? Start the SQL instance in single-user mode, but some...
April 23, 2008 at 11:30 am
I've been playing around with it trying to get grasp on PIVOT as well:
create table #temp
(month int,
category int,
value int)
insert into #temp
select 1,1,10 union
select 2,2,5 union
select 2,1,10 union
select 3,2,15 union
select 4,1,10...
March 27, 2008 at 6:36 pm
Hi Edwin,
You could try running clusprep.exe
It runs some checks to see if you are properly configured for clustering.
I wonder if maybe you don't have a problem with...
March 27, 2008 at 4:31 pm
Hi ezhil,
I battled with this one for a while. Try this out...
sp_MSforeachdb 'USE ? EXEC (''CREATE PROCEDURE TestProc AS BEGIN SELECT 1 END'')'
The only way I could get...
March 27, 2008 at 4:11 pm
Working on the same issue here, and have started playing with some queries using AdventureWorks. But yes.. you are correct. The idea is that new filegroups are created...
March 18, 2008 at 8:07 pm
If in multiple columns and you've got leading or trailing spaces:
CREATE TABLE #NAMES
(FirstName varchar (25),
LastName varchar (25))
INSERT INTO #NAMES
SELECT 'Bob ','Johnson ' UNION
SELECT ' Bob',' Johnson' UNION
SELECT...
March 18, 2008 at 7:36 pm
Viewing 15 posts - 46 through 60 (of 90 total)