Viewing 15 posts - 2,341 through 2,355 (of 13,460 total)
i found this interesting, and am about 90% there with an example solution.
my problem is if there is a text representation of a binary string in the xml, how do...
Lowell
May 1, 2014 at 6:21 am
there's probably more to the question, but the charindex function finds the starting position of a string within another string.
DECLARE @FindPharase varchar(max) =' I would like to thank whomever<span style=\""font-family:courier\">...
Lowell
May 1, 2014 at 5:30 am
my first guess: the table is a heap, and does not have a clustered index.
in the case of a heap, if you update data, or delete and reinsert individual rows...
Lowell
April 30, 2014 at 11:17 am
there's an exisitng option for the COPYTO='\\jons-laptop\SharedFolder\SQLBackups\' that is already a part of Native Sql backups,as well as litespeed and redgate backups.
can't you just add that to your backup command,...
Lowell
April 30, 2014 at 10:43 am
as long as you bullet proofed the code to make sure all tables already exist, your trigger is pretty close to working, but it must be a FOR TRIGGER, not...
Lowell
April 29, 2014 at 12:28 pm
in the SSMS grid, in order to force visibility of the data , for display purposes only,Carriage Returns and Line Feeds are turned into spaces; however the data truly still...
Lowell
April 29, 2014 at 11:12 am
without more details, all we can do is guess.
the most likely culprit is you have databases that have the recovery model set to FULL, but are failing to take regular...
Lowell
April 29, 2014 at 6:28 am
you'd probably be much better off using BULK INSERT over bcp + xp_cmdshell anyway:
--in via bulk insert
BULK INSERT INV_StageTable FROM 'c:\Test\Aut_2014-04-22.csv'
...
Lowell
April 29, 2014 at 6:14 am
you cannot pass a windows username and password. it's just not allowed.
you can pass a SQL username and password, or use the -T for trusted connection, which uses...
Lowell
April 29, 2014 at 6:10 am
there are quite a few script contributions here on SSC; some are detailed, some script out as commands, some are more overview/report like, so it really depends on what you...
Lowell
April 28, 2014 at 9:55 am
a4apple nailed it: your inner quote needs to be double single quoted to work, or remove the single quotes to allow comparison to an integer.
:
use msdb
if exists
(select sysjobs.name as...
Lowell
April 28, 2014 at 8:24 am
well, as you can see from my example code, i generated my best guess from the existing data.
you can do the same, obviously; i would assume that somewhere, someone has...
Lowell
April 28, 2014 at 8:17 am
the best way is to create a view, which would calculate that information on demand.
Best practice is to never add a column containing agregates in a table row, since...
Lowell
April 28, 2014 at 7:22 am
my screenshot is from a Win7 machine that had the SQL 2012 Developer Edition, with the full suite of SQL + SSAS/SSIS/SSRS installed.
no extra SDK's or anything, AFAIK.
i'd think you...
Lowell
April 28, 2014 at 7:09 am
changing the collation of the database is only a tiny 1% piece of the puzzle.
every varchar/char/nvarchar/nchar/text column in the database has it's own collation, that is not affected just because...
Lowell
April 28, 2014 at 6:44 am
Viewing 15 posts - 2,341 through 2,355 (of 13,460 total)