Viewing 15 posts - 2,656 through 2,670 (of 14,953 total)
You're welcome.
December 13, 2011 at 8:05 am
Unless you have permission to modify the table (Alter Table permission), you can't truncate. And there's no such thing in SQL Server as a "before trigger". Only "after"...
December 13, 2011 at 8:03 am
DECLARE @String VARCHAR(100) = 'Physician->Scotland->Scotland North->NOS431 Core Medical Training';
SELECT LEFT(@String, LEN(@String) - CHARINDEX('>-', REVERSE(@String))-1)
December 13, 2011 at 7:58 am
Are you designing a table in the GUI? If so, set the column to an Identity. You do that in the Column Properties at the bottom of the...
December 13, 2011 at 7:55 am
JonFox (12/13/2011)
join CalendarPeriod cp on (cp.CalendarDate = OrderDate and CalendarPeriod = @Period) or (@Period = ‘All’)
That works fine if @Period != 'All', but as...
December 13, 2011 at 7:52 am
Aha! That makes more sense.
Use the "Set Language" option in the script to force US English in that case. Unless you can change the server setting without breaking...
December 13, 2011 at 6:18 am
(Just got back from a vacation, hence delay in answering.)
You can use sp_help_job to get that, but why do you need it? If the script is being run by...
December 13, 2011 at 6:13 am
Don't bother with date/time formatting in the query, unless you absolutely have to. The presentation layer is where that should happen. Allows for localization, personal preferences, et al.
December 12, 2011 at 2:42 pm
It's one of those things where it looks really good on paper, but usually fails miserably in actual use.
Company I used to work for used virtual deletes and virtual updates....
December 12, 2011 at 2:40 pm
Evil Kraig F (12/12/2011)
GSquared (12/12/2011)
michael.french 172 (12/12/2011)
December 12, 2011 at 2:27 pm
You're welcome.
In that case (size of DB), either log shipping or snapshot replication will be best. Probably log shipping, using the Standby options so the database can be queried...
December 12, 2011 at 2:18 pm
Have you narrowed down whether the whole dataset is failing, or just a few rows? If just a few rows, what does the data in them look like? ...
December 12, 2011 at 2:00 pm
Transactional replication is more about real-time or near-real-time synchronization.
What you want is either snapshot replication, log shipping, or just plain ship a full backup over and restore it nightly. ...
December 12, 2011 at 1:58 pm
austin.wimberly (12/12/2011)
Would this also apply to Oracle? Sorry, I should have posted that in the beginning of the thread.
You wouldn't use GetDate in Oracle, since it's a T-SQL extension....
December 12, 2011 at 1:20 pm
Are you merely inserting new records or are you updating existing records at the same time?
If just inserting new records, I'd be more inclined to operate off a timestamp (either...
December 12, 2011 at 1:17 pm
Viewing 15 posts - 2,656 through 2,670 (of 14,953 total)