Viewing 15 posts - 2,896 through 2,910 (of 13,469 total)
whether the command was run with ONLINE or not is not saved anywhere, I'm pretty sure.
peek at this scripting example, it essentially the same way i do it:
http://www.sqlservercentral.com/scripts/Indexing/63620/
generate the script...
November 22, 2013 at 10:12 am
the size of the vendor database is one of the things i'd like to know up front;
that's a decent initial indicator for me.
if the entire database is say, 500 meg,...
November 22, 2013 at 9:20 am
abhas (11/22/2013)
I am ahving a table which contains around 150 columns and millions of rows.
Now I am facing challenge to find among those which records are updated?
there is no...
November 22, 2013 at 6:45 am
RTaylor2208 (11/22/2013)
1. If you run the trace without filters for a short period of time do you see any of the events you want to capture being...
November 22, 2013 at 6:30 am
this is much better:
IF EXISTS (SELECT OBJECT_ID('tempdb.dbo.#tmp'))
DROP TABLE #tmp
CREATE TABLE [dbo].[#tmp] (
[DBName] NVARCHAR(128) ...
November 21, 2013 at 3:27 pm
gchappell (11/21/2013)
November 21, 2013 at 3:00 pm
terrencepierce (11/21/2013)
November 21, 2013 at 2:07 pm
/*
(No column name)(No column name)Comment
14123abcFishing lake 123abc
19876poiElk Hunting trail 876poi
*/
;WITH MyCTE([Comment])
AS
(
SELECT 'Fishing lake 123abc' UNION ALL
SELECT 'Elk Hunting trail 876poi' UNION ALL
SELECT 'Non qualifying comment'
)
SELECT PATINDEX('%[0-9]%',Comment),
SUBSTRING(Comment,PATINDEX('%[0-9]%',Comment),30), --assuming only 30 chars...
November 21, 2013 at 1:00 pm
Abu Dina (11/21/2013)
Hi Lowell,
Not sure this is going to work for order number A1002
Thanks.
you are right; after i saw your post, i realized i misread the requirement and that...
November 21, 2013 at 7:29 am
with a set list of databases, you could create a view that does multi database calls like this:
CREATE VIEW [dbo].[VW_PERSON_DETAIL]
AS
SELECT
'Database1' AS DB,
...
November 21, 2013 at 7:25 am
great job providing the DDL!
i'm assuming the key indicator here is the OrderQty - ReceivedQty columns to determine the status.
this seems to work for me in limited testing:
select * ,
orderStatus...
November 21, 2013 at 7:13 am
the issue here is an orphaned user: that is, you have a SQL login [sw] , but you restored the DATABASE from another server....that local.sw <> restoreddb.sw , based on...
November 20, 2013 at 2:53 pm
Snargables (11/20/2013)
November 20, 2013 at 2:30 pm
it might be the product of someone who thought to keep their database design as if it were secret and proprietary, and have no PK's so you can't deduce the...
November 20, 2013 at 11:45 am
briancampbellmcad (11/20/2013)
I went to Services and found nothing relating to SQL Server.
in that case, it sounds like you only have the SQL server Manangement Studio tools, and not a local...
November 20, 2013 at 10:01 am
Viewing 15 posts - 2,896 through 2,910 (of 13,469 total)