Viewing 15 posts - 211 through 225 (of 7,164 total)
I have seen holidays stored as bit-columns on traditional calendar tables that contain one row for each date and have seen them normalized out to separate tables. Thanks for sharing...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 16, 2016 at 12:41 am
select datefromparts(year(getdate())-1,1,1) as beginning_of_last_year,
datefromparts(year(getdate())-1,12,31) as end_of_last_year;
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 16, 2016 at 12:33 am
michael_okonji (2/15/2016)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 16, 2016 at 12:24 am
I am not sure why are you involving xp_cmdshell in this. If you execute your command-line in an SSIS Execute Process Task and capture the output to a variable or...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 16, 2016 at 12:13 am
DOes your real City tale only have Malaysian cities in it? I am guessing not, but in this small example there are only 695 rows in the city table and...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 11:57 pm
This person asked if we could put the production database code into a VCS. Not as a way of tracking development tasks, but as a way of auditing production and...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 11:04 pm
For someone who has made so much hay off helping others slay RBAR processing, I don't blame you one iota for not wanting to review something you have no opportunity...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 9:46 pm
Start by running Upgrade Advisor against your database to see if any red flags are raised, e.g. deprecation announcements or features that been dropped from the product in use.
https://msdn.microsoft.com/en-us/library/ms144256(v=sql.110).aspx
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 6:01 pm
It can skip databases: https://www.mssqltips.com/sqlservertip/2201/making-a-more-reliable-and-flexible-spmsforeachdb/
It can be very disruptive. Scary fact: Maintenance Plans used to rely on the proc, may still.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 5:51 pm
At the bottom of your dynamic proc change you needed to change this:
and InjectedDate Between + '''@DateFrom +'''And''' +@DateTo ''
to this:
and InjectedDate Between ''' + convert(varchar(100),@DateFrom) +'''And''' + convert(varchar(100),@DateTo) +...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 5:16 pm
Ramesh Saive (3/6/2009)
There is an undocumented system procedure that executes any T-SQL query in all databases.EXECUTE sp_MSforeachdb 'EXECUTE sp_spaceused'
Just in case anyone else happens to stumble on this thread, this...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 9:32 am
Wow, this thread has come back from the dead not once, but twice now!
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 9:30 am
Perry Whittle (2/15/2016)
Orlando Colamatteo (2/13/2016)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 7:19 am
Can you try it in order from most rows to least, see Jeff's follow-up post to mine. The thought being to reduce the set as much as possible as early...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 15, 2016 at 6:56 am
I do know from experience that you can add a column to a table with no immediate effect but,
True, provided the column is nullable, my understanding is also that...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
February 14, 2016 at 10:50 pm
Viewing 15 posts - 211 through 225 (of 7,164 total)