Viewing 15 posts - 13,441 through 13,455 (of 13,838 total)
Yikes, way too much code for me to trawl through while doing my day job!
Leaving the function as it is, are you able to put the function call (only) in...
July 20, 2005 at 8:57 am
No - looks OK from what you've said. Can you post more info (eg the stored proc definition) so that we can the help further?
July 20, 2005 at 8:37 am
OK - so have you run out of growing space?
July 20, 2005 at 8:33 am
Use EM if you really have to, but check out this thread first and maybe you'll not worry about it
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=98351
Doing this in T-SQL is non-trivial and not recommended.
July 20, 2005 at 8:31 am
Does look like a space problem - perhaps with the db itself. Have you checked to see whether the 'Automatically grow file' property has been set (check the data file...
July 20, 2005 at 8:24 am
Seems to me that you might not have gone far enough in your normalisation quest. I suggest that you should have something like the following tables:
Patient(PatientID, Name, DOB, etc etc)
AandEVisits(VisitID, PatientID,...
July 20, 2005 at 8:17 am
Check out this link for some ideas:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=169&messageid=146618
July 15, 2005 at 9:47 am
Yes - do you want to warn them first or just torpedo them?
July 15, 2005 at 9:18 am
Is the remote server running in 'mixed' mode, or using Windows authentication only?
(Right click the server in Enterprise Manager, properties, Security, Authentication.)
Regards
July 15, 2005 at 9:15 am
Apart from msdb, model, master and tempdb, what 'System' databases do you have in mind?
Regards
July 15, 2005 at 4:49 am
This code does it in one pass.
declare @InsertParentID int
set @InsertParentID = 2 --or whatever value you need to insert
insert into table1(parentID, itemID)
select @InsertParentID, (select max(t1.itemID) + 1 from table1 t1...
July 15, 2005 at 3:02 am
You can also try
select * from child c
left join parent p on c.childID = p.parentID
where p.parentID is null
and see which is faster.
July 14, 2005 at 8:37 am
It was fixed in time for me to get it right
July 14, 2005 at 8:34 am
How about coming at this from another angle. Could you write some script, or maybe an executable would be better, that creates a single spreadsheet containing the ~1000 records and...
July 14, 2005 at 6:00 am
Viewing 15 posts - 13,441 through 13,455 (of 13,838 total)