Viewing 15 posts - 2,836 through 2,850 (of 13,469 total)
dan-572483 (12/6/2013)
Then why would my simple recovery model databases not come online with copies of the original log files in the new location?
does the startup account of SQL server have...
December 6, 2013 at 8:48 am
This way be an object name, and optionally parameters after object name
exec @sqlStr
THIS way, you can execute a string command: note the parenthesis!
exec(@sqlStr )
December 5, 2013 at 2:36 pm
As I understand it, there will be no significant impact at all;
if you look at the execution plan, all objects are extracted out to their four part naming convention anyway;
I...
December 5, 2013 at 2:02 pm
On The server NJACCOUNTING01, look at the indexes on the table marlin_test.dbo.apdoc
an index like this would greatly help the query, i believe:
CREATE INDEX IX_apdoc ON dbo.apdoc(Crtd_DateTime,DocType,VendId) INCLUDE (user1,vendid)
see what indexes...
December 5, 2013 at 12:43 pm
Tina there's quite a few things i'd do differently as far as the naming of tables and columns; Tables don't need tbl_ in front of the name, and the PK...
December 5, 2013 at 12:31 pm
here's an adapted example of some code i use to check for invalid objects; this will recompile your procs/functions/views to allow you to point to a different database.
at the end,...
December 5, 2013 at 11:49 am
ok, here's a cursor example adapted a bit to your requirements;
YOU will have to modify it to manage any date conversions/formats to varchar, as well as gracefully handle nulls, because...
December 5, 2013 at 11:39 am
also, wouldn't it be better to send an email simply stating there is an alert/facilities are down,a nd direct them to a web page for details?
December 5, 2013 at 9:46 am
ok, so how many rows does your query return?: and please confirm that if that returns 100 rows, you want 100 emails, one per row? is that what you are...
December 5, 2013 at 9:40 am
wheelsthatgrip (12/5/2013)
I am using dbmail to send out the results of a query. The results are being sent to SMS users so the output has to be limited...
December 5, 2013 at 8:50 am
details. you'll wnat to provide details if you wantany meaningful answers.
inside the trigger, you compare the columns in the virtual tablees INSERTED and DELETED to each other.
ie
IF EXISTS (SELECT 1...
December 5, 2013 at 8:47 am
Ratheesh.K.Nair (12/5/2013)
We have a DB user names Supply . Application will hit the DB with this username.
Is there anyway to find the hit happening to the database?Thanks in...
December 5, 2013 at 7:20 am
Gail i just tried that, but cannot seem to get the object_id;
for a temp table, i can get object_id('tempdb.dbo.TableName') no problem, but is there a trick for table variables?
this is...
December 5, 2013 at 7:13 am
navimir (12/5/2013)
output of the trigger shows tablename,user and timestamp
Is it possible to display the column name,old value and new value??
There are around...
December 5, 2013 at 6:40 am
rightontarget (12/4/2013)
but then I will have to edit every procedure to make sure that joins point to test instance of the database.
so your procedures are using three part naming...
December 5, 2013 at 6:23 am
Viewing 15 posts - 2,836 through 2,850 (of 13,469 total)