Viewing 15 posts - 106 through 120 (of 469 total)
Does the error message on login (or logged to the error log) hold any clues as to what may be going on?
April 26, 2012 at 12:58 pm
Does the account have access to it's default database?
April 26, 2012 at 12:45 pm
You can write a script to look at sys.partitions and then call the alter index command only on objects with more than 1000 rows. A better bet may be...
April 26, 2012 at 11:36 am
Is this SQL being compiled by an outside script? If it is we'll need to know what value is in $(runDate) when it's passed to SQL when you're having...
April 26, 2012 at 10:41 am
You may need to modify this to suit your purposes but here you go. This will get server level logins:
select [AccountName] = sp.name,
...
April 26, 2012 at 8:17 am
Are you looking to report on that or to create that?
April 26, 2012 at 7:59 am
Using a CTE may work for this if that's an option. Get the count in the CTE and the sum it in the main query. If you want...
April 26, 2012 at 7:58 am
Steve Jones - SSC Editor (4/25/2012)
Nothing moves user accounts over.
Probably not an option here but there are contained DBs in SQL 2012.
April 25, 2012 at 1:58 pm
Adam Machanic wrote a great proc for this. You can read about it on his blog where he did a whole month on monitoring:
April 25, 2012 at 1:42 pm
I tried creating a synonym for the function but that requires the schema as well so no luck there. I think you're completely out of luck on this one.
April 25, 2012 at 1:38 pm
I would contact the vendor about this. If it is their software that's causing it they'll know it better than we do and will be able to change it....
April 25, 2012 at 1:30 pm
This does require a bit of a redesign, but why not keep the warehouse inventory levels in a different table? It probably shouldn't be in the same table as...
April 19, 2012 at 3:00 pm
It's certainly not the most elegant solution but this will work:
SELECT
Product,
SUM(CASE
WHEN Warehouse = 1 THEN Sales
ELSE 0
END) AS SalesofWarehouse1,
SUM(CASE
WHEN Warehouse = 3 THEN Sales
ELSE 0
END) AS SalesofWarehouse3,
isnull((select top 1 Inventory...
April 19, 2012 at 2:32 pm
You have no idea how tempted I was to say, "as long as the update isn't an update," but I didn't want to do anything that could confuse the explanation.
April 19, 2012 at 11:34 am
TravisDBA (4/19/2012)
So all that "Don't do this" is just a bunch of hot air in my opinion.:-D
So you would argue that behavior on forums or other social media sites doesn't...
April 19, 2012 at 10:26 am
Viewing 15 posts - 106 through 120 (of 469 total)